Anjaan84 wrote:

> I've created a custom template in Magnolia Community Edition 4.3.6 under
> 'Configuration/modules/templating/templates/myProject/templates' and the
> "ftl" in '/templating-kit/templates/myProject/templates/myProjectHome.ftl'
>
> I want to use the out-of-the-box footer template, but the only way I found
> to do this is to include a "class" and "modelClass" data nodes inside the
> first Configuration path mentioned above which use the built-in "STKModel"
> and "STKTemplateModel" classes respectively. Also, I've changed the type
> value from "freemarker" to "stk"
>
> Do I really need to do this? Or is there another way to use the built-in
> footer? Assuming I have to do this, a side-effect is that my custom page
> template is no longer selectable from the Website repository when I create a
> new page.
>
> Is there a work around/solution to this? I am wondering if by including my
> custom page template in the "availability" node of my site definition would
> resolve this issue.
>
> Please keep in mind, I am using Community Edition and there is no "Site
> Definition" option under Templeting-Kit menu, instead I have "Site
> Configuration" option.

I think you'll need to create a custom template availability class to make your 
template available. Take a look at 
info.magnolia.module.templatingkit.sites.TemplateAvailability in the STK, 
subclass it, override the isAvailable() method and set your custom subclass as 
the value of the class node data under the availability node.

Nils.
------------------------------------------------------------------------
 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]>
----------------------------------------------------------------

Reply via email to