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.
All the OverlayTrigger class does is open this page (for example), http://xenforo.com/community/account/preferences in an overlay, when you click on Preferences in the dropdown menu under your name.
The content you are trying to display in the overlay must have a corresponding template and route.