Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Michael Matti
RE: Example of defaultMetaInfo in action? [ reply ]  
2007-02-23 01:43
Thanks for the explanation and example ... it makes perfect sense now, and worked on the first try.

Much appreciated.

By: Thomas Leitner
RE: Example of defaultMetaInfo in action? [ reply ]  
2007-02-22 14:48
There are two possibilities:

* either use the parameter Core/FileHandler:defaultMetaInfo and set the default meta information for *all* file handlers

* or use a special config file syntax for setting the default meta information on individual file handlers

Option one
==========

<SNIP config.yaml>
Core/FileHandler:
defaultMetaInfo:
File/PageHandler:
inMenu: true
</SNIP>

Option two
==========

<SNIP config.yaml>
File/PageHandler:
defaultMetaInfo:
inMenu: true
</SNIP>

The values specified in the configuration file are used to update the default meta information (new keys are added, exisiting keys are assigned the new value).

By: Michael Matti
Example of defaultMetaInfo in action? [ reply ]  
2007-02-22 13:29
Been getting nowhere with this for a day and a half, so figured I'd ask if anyone's solved it: how to properly use defaultMetaInfo. I've read the note in the FileHandler doc, but while it describes the defaultMetaInfo parameter, it doesn't show it in actual use. I seem to be mangling the syntax.

On my site, I'd like to switch the default value of inMenu to true. Any thoughts (or proven examples) of how to do that with defaultMetaInfo in config.yaml?