cancel
Showing results for 
Search instead for 
Did you mean: 

Applying custom template view through config

protenus
Champ in-the-making
Champ in-the-making
Using ftls to create custom views for spaces has worked great for us, but are a bit stuck in how to apply these custom views to certian spaces for ALL users using config, not clicking through the UI.

Can this be done in the custom web config?
4 REPLIES 4

gavinc
Champ in-the-making
Champ in-the-making
No, unfortunately not.

An alternative is to write a server side JavaScript that iterates through your spaces and makes the necessary changes.

msvoren
Champ in-the-making
Champ in-the-making
Can i do this through JSP page? I made a custom JPS page for displaying just that custom space i made.
How can I apply template to folder through jsp page?

msvoren
Champ in-the-making
Champ in-the-making
Ok, here's how i did it.
Made custom jsp to display my custom folder.

In Templates section in jsp page:

removed:
<aSmiley Tongueanel id="custom-wrapper-panel" rendered="#{NavigationBean.hasCustomView && NavigationBean.searchContext == null}">

added:
<aSmiley Tongueanel id="custom-wrapper-panel" rendered="#{NavigationBean.searchContext == null}">


removed:
<r:template id="template" template="/alfresco/templates/poteza-company-preview.ftl" model="#{NavigationBean.templateModel}" rendered="#{!NavigationBean.hasWebscriptView && NavigationBean.hasTemplateView}" />

added:
<r:template id="template" templatePath="/Company Home/Data Dictionary/Presentation Templates/my.ftl" model="#{NavigationBean.templateModel}"/>

zomurn
Champ in-the-making
Champ in-the-making
msroven => Thank you very much for your participation. It satisfy perfectly my needs.

gavinc => I think this functionnality (apply a template for ALL all users) is really missing. We can't let end users to parameterize there custom view through UI, it is useless for them.