XF 1.3 Overlay Inline Content

XẹnPixel

Active member
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?
 
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.
 
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?
 
Top Bottom