Forums / Developer / Best way to have meta infos by rubrik

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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.