• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Overlay Inline Content

#1
I have this code in a template:
HTML:
<a href="?????">Click To View Content</a>

<div id="contentToOverlay">
This is an overlay content!
</div>
Is it possible to open the inline content (#contentToOverlay) in an overlay?
 
#2
Anyone know how to do this?

I tried:
HTML:
<a href="#contentToOverlay" class="OverlayTrigger">Click To View Content</a>

<div id="contentToOverlay">
This is an overlay content!
</div>
but it's opening the whole page where I put this code.
 

Brogan

XenForo moderator
Staff member
#5
You use it like this:
HTML:
<a href="{xen:link 'whatever'}" class="OverlayTrigger myClass">{xen:phrase thing}</a>
 
#6
I apologize for being a noob to XF templating but I can't really make this work.

What I have tried to do was I added this code in PAGE_CONTAINER template:
HTML:
<a href="{xen:link 'contentToOverlay'}" class="OverlayTrigger myClass">Click To View</a>
<div id="contentToOverlay">
    This inline content should open in an overlay.
</div>
The code above will not open the inline content (#contentToOverlay) and will result in error : Route contentToOverlay/ could not be found.

Any more ideas how to make this work?