[
http://jira.magnolia-cms.com/browse/MGNLSTK-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Ringele updated MGNLSTK-691:
--------------------------------------
Comment: was deleted
(was: This is a bug in TemplatesAvailability.
The cause is, that Glossary is catergory feature, and GlossaryTemr is section.
But the TemplatesAvilability class does not allow a section to be added below a
feature page (which should be).
Change
{code}
if(category.equals(TemplateCategory.SECTION) ||
category.equals(TemplateCategory.HOME) ||
category.equals(TemplateCategory.FUNCTIONAL)){
return parentTemplateCategory.equals(TemplateCategory.HOME) ||
parentTemplateCategory.equals(TemplateCategory.SECTION) ||
parentTemplateCategory.equals(TemplateCategory.FUNCTIONAL));
}
{code}
to
{code}
if(category.equals(TemplateCategory.SECTION) ||
category.equals(TemplateCategory.HOME) ||
category.equals(TemplateCategory.FUNCTIONAL)){
return parentTemplateCategory.equals(TemplateCategory.HOME) ||
parentTemplateCategory.equals(TemplateCategory.SECTION) ||
parentTemplateCategory.equals(TemplateCategory.FUNCTIONAL)||
parentTemplateCategory.equals(TemplateCategory.FEATURE);
}
{code})
> Glossary Letter Template not available in Template drop-down menu
> -----------------------------------------------------------------
>
> Key: MGNLSTK-691
> URL: http://jira.magnolia-cms.com/browse/MGNLSTK-691
> Project: Magnolia Standard Templating Kit
> Issue Type: Bug
> Components: demoproject, templates
> Affects Versions: 1.3.5
> Reporter: Matt Dertinger
> Fix For: 1.4.x
>
> Attachments: glossary-letter-template-unavailable.png
>
>
> Hi,
> If someone mistakenly clicks on the template column for a page that uses the
> Glossary Letter template, they won't be able to change the template back to
> Glossary Letter. This happens on the demoauthor.magnolia-cms.com site as
> well.
> h2. Steps to reproduce
> # Log in to AdminCentral
> # Navigate to {{website/demo-project/service/glossary/a}}
> # {{Double-click}} on the {{template}} column
> # Notice that the Glossary Letter template is not available as an option (See
> attached screenshot).
> Please let me know if you need more information.
> h2. Possible Remedy
> Would it be possible to update {{TemplateCategoryUtil}} to only allow
> templates with a {{subcategory}} of {{glossaryLetter}} under pages that have
> a template with a {{subcategory}} of {{glossary}}. In other words, the only
> allowable template under {{stkGlossary}} should be {{stkGlossaryLetter}}.
> Likewise, the only allowable template under {{stkGlossaryLetter}} should be
> {{stkGlossaryTerm}}.
> Does this make sense?
> Thanks,
> Matt
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
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]>
----------------------------------------------------------------