I can't get this working in my template. There is a main navigation, but as soon as put this tab navigation for content on the same page, the page turns in a mess. If I look at the page source it shows the right codes. What am I doing wrong?
<div class="nav_jaar">
<ul>
<li class="active"><a href="#jaar_1911" title="#">1911</a></li>
<li><a href="#jaar_1925" title="#">1925</a></li>
<li><a href="#jaar_1939" title="#">1939</a></li>
<li><a href="#jaar_1942" title="#">1942</a></li>
<li><a href="#jaar_1961" title="#">1961</a></li>
<li><a href="#jaar_1982" title="#">1982</a></li>
<li><a href="#jaar_1989" title="#">1989</a></li>
<li><a href="#jaar_2002" title="#">2002</a></li>
<li><a href="#jaar_2011" title="#">2011</a></li>
</ul></div>
It would be nice if someone has the answer.
navigation within same page with tabs [solved]
navigation within same page with tabs [solved]
Last edited by babel on Tue Jan 28, 2014 9:56 am, edited 1 time in total.
Re: navigation within same page with tabs
Try {$page_alias}/#jaar_
Re: navigation within same page with tabs
Thanks applejack. Your suggestion makes the page look as it should, but if I click on the tab, it doesn't jump to the year. I hope you know what code is left out.
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: navigation within same page with tabs
you did put an anchor before each year?
Code: Select all
<a name="1911">1911</a>
Re: navigation within same page with tabs
Consider posting a link so we can see what does happen.
<a name=""...> could be obsolete depending on your document type.
<a name=""...> could be obsolete depending on your document type.
Re: navigation within same page with tabs
Sorry try this.
/{page_alias}#
or {$smarty.server.REQUEST_URI}#
/{page_alias}#
or {$smarty.server.REQUEST_URI}#
Re: navigation within same page with tabs
Applejack, thanks a lot: {$smarty.server.REQUEST_URI}# works wunderfull.
Velden, I can't post a link because it's on my wamp-server.


Velden, I can't post a link because it's on my wamp-server.
Re: navigation within same page with tabs [solved]
For the record:
The {metadata} tag adds a <base>-tag in HTML and that is probably the reason why your first code didn't work.
if you used {metadata showbase='false'} in you template, your first code would have worked correctly.
The {metadata} tag adds a <base>-tag in HTML and that is probably the reason why your first code didn't work.
if you used {metadata showbase='false'} in you template, your first code would have worked correctly.
Kind regards,
HarmO
HarmO