[MGNLSTK-236] navigation: the horizontal navigation menu point should be clickable once a subpage in the vertical navigation is selected Created: 19/Dec/08 Updated: 23/Jan/13 Resolved: 26/Feb/09 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | templates |
| Affects Version/s: | None |
| Fix Version/s: | 1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Philipp Bärfuss | Assignee: | Philipp Bärfuss |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Date of First Response: |
| Description |
|
Once you are in subpages of a section you must be able to return to the main section page by clicking on the section menu point. The problem is that the horizontal navigation sees the section menu points as leaves. |
| Comments |
| Comment by Philipp Bracher [ 19/Dec/08 ] |
|
For the time being I added the following hack, which always puts a link tag: Index: src/main/resources/standard-templating-kit/templates/global/horizontalNavigation.ftl
===================================================================
--- src/main/resources/standard-templating-kit/templates/global/horizontalNavigation.ftl (revision 20705)
+++ src/main/resources/standard-templating-kit/templates/global/horizontalNavigation.ftl (working copy)
@@ -30,7 +30,8 @@
<li ${id} ${cssClass}>
[#if item.selected]
- <strong><span><em>${i18n['nav.selected']}</em>${item.title}</span></strong>
+ [#-- TODO this is a tempory hack to make the open menu points selectable, see MGNLSTK-236]
+ <a href="${item.href}"><strong><span><em>${i18n['nav.selected']}</em>${item.title}</span></strong></a>
[#else]
<a href="${item.href}"><span>${item.title}</span></a>
[/#if]
|
| Comment by Philipp Bracher [ 26/Feb/09 ] |
|
But it should not be clickable if the selected navigation point is the page we show! |