You can also write a class extending TemplateAvailability in which we specify what template can be used where in the hierarchy and set that class in the site definition.
Nils. Antti Hietala wrote: > Template availability in STK is controlled at two levels: > > 1) Site definition controls site-wide template availability. The "default" > site definition makes templates available to all sites. See Templating Kit > > Site Definitions > /default/templates/availability. Your site definition can > extend the default. Here you can also restrict template access to certain > roles, see stkGlossary for example. > > 2) Categories determine which template may be assigned to a page. Your > question about news pertains to this level of control. STK has five > out-of-the-box template categories (examples in parentheses): > - home (stkHome) > - functional (stkRedirect) > - section (stkSection) > - feature (stkNewsOverview) > - content (stkArticle, stkNews) > > Availability plays out like this: > - Categories allowed at root level: home, functional > - Categories allowed at root + 1 level: functional, section, feature > - Categories allowed at root + 2 level and below: functional, section, > feature, content > > The dependencies between categories are not configurable (yet) but you may be > able to override the behavior. See classes > info.magnolia.module.templating.Template and > info.magnolia.module.templatingkit.templates.STKTemplate. > > Search also the user list archives, e.g. > http://old.nabble.com/STK%3A-hierarchy-of-templates-defined-where--td25508007.html#a25508007. > > --Antti > > > On Nov 3, 2010, at 1:32 PM, Jon RINGWOOD PSE 55500 wrote: > >> Can anyone tell me how template types are restricted in the Website? For >> example, in the news-overview folder you can only select certain template >> types for new pages. Similarly the about page can only be set to a >> predetermined list of templates. How is this done? >> >> >> ---------------------------------------------------------------- >> For list details see >> http://www.magnolia-cms.com/home/community/mailing-lists.html >> To unsubscribe, E-mail to: <[email protected]> >> ---------------------------------------------------------------- >> -- >> This email and any other accompanying document (s) contain information from >> Kent Police, which is confidential or privileged. The information is >> intended to be for the exclusive use of the individual(s) or bodies to whom >> it is addressed. The content including any subsequent replies could be >> disclosable if relating to a criminal investigation or civil proceedings. If >> you are not the intended recipient, be aware that any disclosure, copying, >> distribution or use of the contents of this information is prohibited. If >> you have received this email in error, please notify us immediately by >> contacting the sender or telephoning 01622 690690. >> > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > ------------------------------------------------------------------------ VPRO phone: +31(0)356712911 e-mail: [email protected] web: www.vpro.nl ------------------------------------------------------------------------ ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
