Hide/show fields

Author Message

Pål Messenlien

Saturday 29 January 2005 2:44:55 am

I have some articles made up with alot of different fields. Now i want to show them in a design. Some of the fields should not show at all, and some of them should be hidden caused by a value.
Iv'e tried around with different fetch settings but cant seem to get the code for it. Can someone point me to a example, or post an example if they have it?

Starting to get desperate now after trying to get this up during nite:)

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 11:35:56
Script start
Timing: Jan 19 2025 11:35:56
Module start 'layout'
Timing: Jan 19 2025 11:35:56
Module start 'content'
Timing: Jan 19 2025 11:35:56
Module end 'content'
Timing: Jan 19 2025 11:35:56
Script end

Main resources:

Total runtime0.0214 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.0547152.6094
Module start 'layout' 0.00550.0041 741.664139.4141
Module start 'content' 0.00960.0094 781.078185.1953
Module end 'content' 0.01900.0023 866.273430.3047
Script end 0.0213  896.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003114.4013140.0002
Check MTime0.00125.4706140.0001
Mysql Total
Database connection0.00073.458910.0007
Mysqli_queries0.003416.107330.0011
Looping result0.00000.092610.0000
Template Total0.00199.110.0019
Template load0.00114.975210.0011
Template processing0.00094.077010.0009
Override
Cache load0.00073.284810.0007
General
dbfile0.00042.012980.0001
String conversion0.00000.036840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs