[ http://jira.magnolia-cms.com/browse/MGNLSTK-949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Ringele updated MGNLSTK-949: -------------------------------------- Priority: Critical (was: Major) At least the IOC part should be changed, thats one line of code using components instead of new allocation. > Navigation: Start levels should be definable. Also the SiteNavigationModel > used should be injected by IOC and not with 'new' > ---------------------------------------------------------------------------------------------------------------------------- > > Key: MGNLSTK-949 > URL: http://jira.magnolia-cms.com/browse/MGNLSTK-949 > Project: Magnolia Standard Templating Kit > Issue Type: Improvement > Components: concept, templates > Affects Versions: 2.0.2 > Reporter: Christian Ringele > Assignee: Eric Hechinger > Priority: Critical > Fix For: 2.0.4 > > > In training, I get often confronted with a need of STK regarding the > Navigation. > On many pages out there, the vertical navigation displays the same pages as > the horizontal navigation. > For example when the horizontal provides a dropdown based Navigation, that > the displayed drop down level is the same as the starting level of the > vertical navigation. > The implementation within STK is, that you cant define a starting level of > the vertical navigation. It will always start one level below what the > horizontal navigation displays. (line 89 of SiteNavigationModel) > I think the start level of the vertical navigation should be definable. > When trying to solve this problem within the code just for a project, I > encountered the problem that I cannot inject a different SiteNavigationModel > without using for EVERY stk page template a different STKPageMOdel class, > because the STKPAgeModel does a 'new' allocation of the SiteNavigationModel > instead of getting it by Components. > Line 88 in STKPageModel > {code} > public SiteNavigationModel getNavigation() { > return new SiteNavigationModel(getDefinition().getNavigation(), > getSiteRoot(), content); > } > {code} -- 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: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------