[MGNLSTK-956] Glossary model can not add letter sub pages Created: 22/May/12  Updated: 17/Sep/12  Resolved: 29/Aug/12

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: demoproject
Affects Version/s: 2.0.2
Fix Version/s: 2.0.5

Type: Bug Priority: Neutral
Reporter: Frank Sommer Assignee: Milan Divilek
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

The mode of the glossary info.magnolia.module.templatingkit.templates.GlossaryTemplateModel throws an exception, if a letter sub page is not available. The model can not add the letter node automatically.

I tested it successfully on the demo author instance.



 Comments   
Comment by Lars G. [ 22/May/12 ]

This can be fixed by passing the node type MgnlNodeType.NT_PAGE to the addNode(...) method call in line 67 of GlossaryTemplateModel. Furthermore, the Constant GLOSSARY_LETTER_TEMPLATE should be "standard-templating-kit:pages/stkGlossaryLetter" instead of just "stkGlossaryLetter".

Comment by Milan Divilek [ 28/May/12 ]

Thanks for reporting Frank. We are finishing 2.0.3 release, this should be part of 2.0.4.

Comment by Jan Haderka [ 24/Aug/12 ]

When adding copyright header to the files, can you add it w/ current year?

Generated at Mon Feb 12 07:32:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.