[MGNLSTK-659] Paragraphs using the tocMacro.ftl are not usable as subparagraphs or from nested calls Created: 08/Jul/10 Updated: 23/Jan/13 Resolved: 08/Jul/10 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | paragraphs |
| Affects Version/s: | 1.3.1 |
| Fix Version/s: | 1.3.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Christian Ringele | Assignee: | Christian Ringele |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Description |
|
The paragraphs 'stkTextImage' and 'stkLinkList' include the macro tocMarkup.ftl: The macro tries to read out the pages renderable definition, but does that wrong: this works as long the parent model of the paragraph is a page's model. the correct solution is: assign rootDef = model.root.def!false if rootDef.mainArea?if_exists assign siblings=mgnl.siblings(content) if showTOC |