Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Thomas Leitner
RE: default formatter selection [ reply ]  
2008-03-21 16:12
You can already set the name and formatter for other sections, too. Just use the defaultMetaInfo key in the configuration file for the page file handler:

File/PageHandler:
defaultMetaInfo:
useERB: true
blocks:
- [content, textile]
- [secondOne, markdown]

-- Thomas

By: John Allsup
default formatter selection [ reply ]  
2008-03-19 17:19
At the moment, if no formatter is specified, the value 'default' is used. With my install of webgen this causes an invalid page error since no formatter is associated with that name (except for the content section, which is automatically given the textile formatter).

It would be an idea to store a default formatter name somewhere and allow this name to be overridden in the yaml file.