adminSkipNav.ftl
1 <#-- SkipNav -->
2 <#-- Params
3 - title : Title shown over the banner
4 - logoImg : Default: Empty string, show logo instead of text title, title is set as title html attribute for the logo image.
5 - hasMenu : Default: true;
6 Nested content : Shows default page menu, but can other item can be add using @mainNavItem macro.
7 -->
8 <#macro adminSkipNav>
9 <a href="" class="lutece-skip-links" id="lutece-skip-nav">#i18n{portal.util.labelSkipNav}</a></li>
10 <script>
11 document.addEventListener("DOMContentLoaded", function() {
12 <#noparse>document.querySelector( '#lutece-skip-nav' ).setAttribute('href',`${window.location.pathname}${window.location.search}#lutece-main`)</#noparse>
13 });
14 </script>
15 </#macro>