[ 
https://issues.apache.org/jira/browse/SIS-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16447077#comment-16447077
 ] 

Bruno P. Kinoshita commented on SIS-114:
----------------------------------------

Hi there, some time ago fixed that in the new OpenNLP site. Today remembered 
that had to fix it in Jena website. And while reading the SIS docs (for $work) 
realised there was one ticket for the same problem.

So here's a suggestion for fixing it :)

With some JavaScript code added to the template footer, we can automatically 
mark menu items as active, without needing to worry/remember to choose which 
menu item should be active.

Patch attached. Followed instructions from 
[https://www.apache.org/dev/cms.html#cmsinsvn] to remember how to build 
svnpubsub sites locally. Tested, and worked as expected for me.

Hope that helps,

Bruno

> Sidebar on the left side always have the "home" menu item active
> ----------------------------------------------------------------
>
>                 Key: SIS-114
>                 URL: https://issues.apache.org/jira/browse/SIS-114
>             Project: Spatial Information Systems
>          Issue Type: Bug
>          Components: Web site
>            Reporter: Martin Desruisseaux
>            Priority: Minor
>         Attachments: SIS-114.patch
>
>
> The http://sis.apache.org web site has a sidebar menu on the left side, but 
> this menu has only the "home" item activated no matter which page is show.
> Looking to the {{templates/skeleton.html}} file, we can see the following 
> HTML code:
> {code:html}
>           <div class="well sidebar-nav">
>             <ul class="nav nav-list">
>               <li class="nav-header">Apache SIS</li>
>               <li class="active"><a href="index.html">Home</a></li>
>               <li><a href="mailinglists.html">Mailing Lists</a></li>
>               <li><a href="license.html">Project License</a></li>
>               ...etc...
> {code}
> As we can see in the above HTML, the {{"active"}} style is unconditionally 
> applied to the {Home} item. We need to investigate how to change the item on 
> which the {{"active"}} style is applied depending on the viewed page.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to