Open same page while opened
Hi,
For a site I’m building I’ve the following problem:
On the homepage I make a frame of the shop of my customer, because he is working with spreadshirt.
But when people are clicking in this Iframe the are not able to go back to the homepage, by clicking on the home in the menu bar (Mod. navigation of Contao)
Is it possible to make the mod. navigation also clickable when page is already open?
For example. When I click on page "home" and I click again on the menu button "home”, page home will be loaded again.
I hope I wrote I clear enough, and really looking forward to a response!
If there are any questions, feel free to contact me!
Paul
Re: Open same page while opened
I THINK I know what you mean -- the link for the current page (the "active" page) changes to a <span> instead of an <a> tag.
The code you need to change is located in /system/modules/frontend/templates/nav_default.tpl. Copy that file into /templates/ and pop it open. You just need to change the code a bit to use <a> tags on active links.
Hope this helps.
Re: Open same page while opened
Perfect!
Reading this I really think this is it!
it sounds to easy :oops:
Really Thanks!
Re: Open same page while opened
Hey Medianomaly,
Not sure if this is the same issue but I have the behavior where if you are on a page say (About-Us) and click the menu link for about-us then it goes to the index page instead of staying on the current page.
Any ideas?
Re: Open same page while opened
Hej.
Sounds different. Could you give a link or some html of the menu?
B. regards,
Paul Kegel
Creative Director
Artified
Re: Open same page while opened
http://www.abmac.com/index.php/what-we-do.html
If you click on what we do in the drop menu or left menu the link defaults to index.php#
This is behavior is site wide. Not sure why but I kind of ignored it until I saw your post.
Re: Open same page while opened
Hi,
It looks like the same solution.
<li class="practices first"> is i think where it is about.
When you go to the code The code you need to change is located in /system/modules/frontend/templates/nav_default.tpl.
The link of the submenu li first, must be the same as the other links.
Cause the click only place an # afther te link, and isn't linked to any page or pageid.
Hope this is clear for you!
Succes!
Best Regards,
Paul Kegel
Re: Open same page while opened
It also has to do with the <base> tag, combined with how URLs are being rewritten.
You can try removing <base> from your fe_page template, which I've done a few times without any noticeable side effects.