Keywording / Page listing objects of a particular keyword

Author Message

Tony Stark

Tuesday 19 February 2008 1:50:45 pm

Hi,

What capabilities out of the box does eZ have for listing content objects in a single page (sub divided by class) based on a particular keyword? i.e. if I have a set of content objects regardless of class type) marked as "content management" - how can I list all these items one handy page?

Thanks

Tony.

Łukasz Serwatka

Tuesday 19 February 2008 11:11:00 pm

Hi,

Use keyword fetch function:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/keyword
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/keyword_count

or keyword view of content module
http://www.example.com/content/keyword/Fun

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Tony Stark

Wednesday 20 February 2008 4:27:59 am

Very nice feature. two questions on that though, can you pass / reference more than one via this module? and can you override the template design in your own system design (I am sure you can but I thought I would just ask!)

Łukasz Serwatka

Wednesday 20 February 2008 8:12:58 am

Yes, it is possible to override that template. You can pass more keywords as a string param, however you will need to add some tpl code inside (string manipulation).

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 21:17:28
Script start
Timing: Jan 18 2025 21:17:28
Module start 'layout'
Timing: Jan 18 2025 21:17:28
Module start 'content'
Timing: Jan 18 2025 21:17:29
Module end 'content'
Timing: Jan 18 2025 21:17:29
Script end

Main resources:

Total runtime0.6979 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1563152.6563
Module start 'layout' 0.00590.0024 740.812539.5078
Module start 'content' 0.00830.6880 780.3203544.8984
Module end 'content' 0.69630.0016 1,325.218812.0938
Script end 0.6979  1,337.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4584160.0002
Check MTime0.00130.1901160.0001
Mysql Total
Database connection0.00110.161310.0011
Mysqli_queries0.650793.2342600.0108
Looping result0.00050.0683580.0000
Template Total0.666995.620.3334
Template load0.00210.301720.0011
Template processing0.664795.248320.3324
Template load and register function0.00010.017910.0001
states
state_id_array0.00090.132410.0009
state_identifier_array0.00160.230820.0008
Override
Cache load0.00170.2471200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.089420.0003
Fetch class attribute name0.00090.128350.0002
XML
Image XML parsing0.00070.098720.0003
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00090.1240180.0000
String conversion0.00000.001240.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs