Results 1 to 8 of 8

Thread: Open same page while opened

  1. #1
    User
    Join Date
    05-25-10.
    Location
    Rotterdam, The Netherlands
    Posts
    39

    Default 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
    --
    Regards, Paul Kegel
    Online designer at Artified | Follow me on twitter

  2. #2
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default 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.
    Brian

  3. #3
    User
    Join Date
    05-25-10.
    Location
    Rotterdam, The Netherlands
    Posts
    39

    Default Re: Open same page while opened

    Perfect!

    Reading this I really think this is it!
    it sounds to easy ops:

    Really Thanks!
    --
    Regards, Paul Kegel
    Online designer at Artified | Follow me on twitter

  4. #4
    User
    Join Date
    12-11-09.
    Location
    New York, NY USA
    Posts
    87

    Default 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?

  5. #5
    User
    Join Date
    05-25-10.
    Location
    Rotterdam, The Netherlands
    Posts
    39

    Default 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
    --
    Regards, Paul Kegel
    Online designer at Artified | Follow me on twitter

  6. #6
    User
    Join Date
    12-11-09.
    Location
    New York, NY USA
    Posts
    87

    Default 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.

  7. #7
    User
    Join Date
    05-25-10.
    Location
    Rotterdam, The Netherlands
    Posts
    39

    Default 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
    --
    Regards, Paul Kegel
    Online designer at Artified | Follow me on twitter

  8. #8
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default 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.
    Brian

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •