XF 2.1 Open navbarlinks in an overlay?

Hoerspiel

Member
I am searching for a solution, to open a link in an overlay on the same page. This was the hardcoded solution in XF1 and it worked for me (i have an overlay.php):

<li class="navTab"><a href="https://www.example.com" data-title="Uploader" data-href="overlay.php?url=https://www.example.com" class="navLink OverlayTrigger" data-cacheoverlay="false"><i class="fa fa-cloud-upload"></i> Uploader</a></li>

But if i hardcode the <a tag till the end in the XF2 Template, its not working. Anyone have an idea?

Is it possible to do this with the XF2 navigation manager? This way it is not working:

202756
 
At the moment i have done it in a little new window/popup, that is working with the navigation manager, but not as nice, as an overlay.

Thats the way with with a pop up window:

Atrribute: onlick
Code: window.open('https://www.example.com','popup','width=750,height=330'); return false;

Anyone have an idea for an overlay solution?
 
Good idea! Problem was, this is just working for internal xenforo URLs. My page i want to include is on the same domain, but has nothing to do with xenforo. So its an external URL and the overlay is not working. The solution was a strange way, i use a xenforo page and included my external page via iframe. And now i have an internal xenforo url (the xf-page url which is loading my external page) and now the overlay is working with your code. And looks surprisingly quite the same as in my hardcoded XF1. Thank you for the overlay idea :).
 
Back
Top Bottom