Field is required?

Author Message

David Santiso

Saturday 12 February 2011 8:59:49 am

Hi,

What function returns if a object field is required?

Thanks,

David

Thiago Campos Viana

Saturday 12 February 2011 11:43:42 am

Hello again David

Check the docs: http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Objects/ezcontentobjectattribute

Learning how to use the doc is the first thing you must know.

You always can use attribute(show, 1):

http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-operators/Miscellaneous/attribute

To debug your template variables.

In this case, you must use something like this:

{$node.data_map.attribute_identifier.is_required}

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

David Santiso

Saturday 12 February 2011 12:16:09 pm

Thanks.

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 18 2025 02:10:34
Script start
Timing: Jan 18 2025 02:10:34
Module start 'layout'
Timing: Jan 18 2025 02:10:34
Module start 'content'
Timing: Jan 18 2025 02:10:35
Module end 'content'
Timing: Jan 18 2025 02:10:35
Script end

Main resources:

Total runtime0.7221 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 591.5234152.6094
Module start 'layout' 0.00570.0030 744.132839.4375
Module start 'content' 0.00870.7113 783.5703535.8828
Module end 'content' 0.72000.0021 1,319.45318.1875
Script end 0.7221  1,327.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4537160.0002
Check MTime0.00130.1761160.0001
Mysql Total
Database connection0.00090.124210.0009
Mysqli_queries0.671793.0106580.0116
Looping result0.00050.0715560.0000
Template Total0.692695.920.3463
Template load0.00190.256920.0009
Template processing0.690795.644820.3453
Template load and register function0.00020.025310.0002
states
state_id_array0.00080.104810.0008
state_identifier_array0.00090.119420.0004
Override
Cache load0.00150.2142210.0001
Sytem overhead
Fetch class attribute can translate value0.00060.076720.0003
Fetch class attribute name0.00300.421840.0008
XML
Image XML parsing0.00060.087920.0003
class_abstraction
Instantiating content class attribute0.00000.002040.0000
General
dbfile0.00090.1314160.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs