include attribute in a template

Author Message

Joël LEGER

Monday 09 March 2009 1:32:27 am

Hi,

i have a basic question, i created a class content with attributes (Collect Information), one of them is a selection with option .
The form works fine but i would like to use this attibute as a filter for a list in another template, how can i include it ?

Fátima Chapri

Monday 09 March 2009 2:59:07 pm

Hi jo leg,

How about a fetch list with the "attribute_filter" parameter. You'll be able to fetch a set of nodes where an attribute contains some specific data. Filtering on the attribute level is supported the datatype you have.

Have a look at this link: ez.no/doc/ez_publish/technical_manual/3_9/reference/modules/content/fetch_functions/list

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 31 2025 06:17:07
Script start
Timing: Jan 31 2025 06:17:07
Module start 'layout'
Timing: Jan 31 2025 06:17:07
Module start 'content'
Timing: Jan 31 2025 06:17:07
Module end 'content'
Timing: Jan 31 2025 06:17:07
Script end

Main resources:

Total runtime0.0146 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 588.1328151.2109
Module start 'layout' 0.00550.0031 739.343836.6641
Module start 'content' 0.00860.0045 776.007890.0313
Module end 'content' 0.01310.0014 866.039129.9922
Script end 0.0145  896.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.9412140.0002
Check MTime0.00117.3671140.0001
Mysql Total
Database connection0.00096.240810.0009
Mysqli_queries0.003221.981930.0011
Looping result0.00000.144110.0000
Template Total0.00117.410.0011
Template load0.00096.064010.0009
Template processing0.00021.345710.0002
Override
Cache load0.00064.441610.0006
General
dbfile0.00031.805880.0000
String conversion0.00000.040940.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