How to call the overlay

Status
Not open for further replies.

Stormraven

Trusted Member
Joined
Oct 24, 2010
Messages
1,836
I've got a link and I'm trying to get the overlay to display when I click on it, so I can put some HTML into it. Although I'm having trouble calling the overlay. I've been trying for so long now that I hope it's not something simple that I've just overlooked lol.

:)
 

Fuhrmann

OMG Member
Joined
Oct 27, 2011
Messages
93
You can just set the class of the link you are clicking to this:

"OverlayTrigger"

Example:

Code:
<a href=my_link" class="OverlayTrigger">Test</a>
 

Stormraven

Trusted Member
Joined
Oct 24, 2010
Messages
1,836
Thanks for your reply Fuhrmann, but I don't want to set a url. I just want the overlay with some custom text in it. And I'm having trouble doing this :(

I want it for example, just a piece of text, not a link, but when you click on it it'll bring up an overlay like the one when you click on the 'contact us' link. :)
 

Floris

I'm just me :) Hi.
Staff member
Joined
Jan 1, 2001
Messages
60,189
Okay, let's rewrap this :)

Fuhrmann is right, it's how you get to the overlay. It's how you trigger the page.
How to get it? You have to "be" a page with content.
So you need a destination and have content in it, content is done via a template.

You will need a route, and then populate it with the template.
You get to the page manually by typing it, and it will work.
To overlay it, you need to add a link somewhere, with a class, with overlaytrigger in it.
It will then load that page, within the overlay.
 

Veer

OMG Member
Joined
Mar 18, 2011
Messages
160
You can just set the class of the link you are clicking to this:

"OverlayTrigger"

Example:

Code:
<a href=my_link" class="OverlayTrigger">Test</a>
Is it possible to do this in a post message?
 

Floris

I'm just me :) Hi.
Staff member
Joined
Jan 1, 2001
Messages
60,189
You can't use HTML inside a post, you will have to use BBCode, a customization is required to achieve this (as far as I know).
 
Status
Not open for further replies.
Top