Issue Type: Improvement Improvement
Affects Versions: 4.5.8
Assignee: Roman Kovařík
Components: rendering
Created: 23/May/13 9:39 AM
Description:

When the availability isn't defined, than the default one from info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition is used:

   ...
   public ConfiguredTemplateDefinition() {
        this.templateAvailability = new TemplateAvailability() {

            @Override
            public boolean isAvailable(Node content, TemplateDefinition templateDefinition) {
                // by default a template is available only in the website workspace
                try {
                    return content.getSession().getWorkspace().getName().equals("website") &&
                            StringUtils.substringAfter(templateDefinition.getId(), ":").startsWith("pages/");
                } catch (RepositoryException e) {
                    return false;
                }
            }
        };
    }
    ...

The default TemplateAvailability value should be configurable.

Fix Versions: 4.5.10
Project: Magnolia
Priority: Neutral Neutral
Reporter: Roman Kovařík
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to