Best way to have meta infos by rubrik

Author Message

Christophe Saint-Pierre

Friday 21 November 2008 12:30:33 am

Hi ,
we have a site with severals rubriks.
We would want to specifu a decription meta and keyword meta by rubrik.
What's teh best way to do this ?
Create a rubrique in site.ini.append.php like this :
[MiniSiteSettings]
MetaDataArray[description_doctorat]=Doctorat
MetaDataArray[keywords_doctorat]=Les enseignements de Doctorat

MetaDataArray[description_groupe]=Groupe
MetaDataArray[keywords_groupe]=Les enseignements de Groupe

Is it clean for ez ?

Thanks

Grégory BECUE

Friday 21 November 2008 1:10:33 am

Why not. It's not possible for you to add meta attribute in the class folder definition ? you can use this value in your template.

Christophe Saint-Pierre

Friday 21 November 2008 2:17:00 am

Oui.
Merci , c'est pas bete effectivement.
Je prefere cette solution qui permet aux editeurs du site de mettre a jour ces infos sans toucher aux fichiers de settings.
Merci pour l'idée.

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

Main resources:

Total runtime0.6984 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 590.2109152.6250
Module start 'layout' 0.00440.0024 742.835939.4453
Module start 'content' 0.00670.6901 782.2813468.2266
Module end 'content' 0.69680.0015 1,250.50788.1563
Script end 0.6984  1,258.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4333160.0002
Check MTime0.00120.1746160.0001
Mysql Total
Database connection0.00060.082910.0006
Mysqli_queries0.657894.1811570.0115
Looping result0.00050.0671550.0000
Template Total0.672396.320.3362
Template load0.00220.311720.0011
Template processing0.670195.951320.3351
Template load and register function0.00020.024210.0002
states
state_id_array0.00080.113110.0008
state_identifier_array0.00090.124020.0004
Override
Cache load0.00180.2528220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.077720.0003
Fetch class attribute name0.00090.123930.0003
XML
Image XML parsing0.00020.030520.0001
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00060.0879100.0001
String conversion0.00000.000840.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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs