This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Triggering a modal popup window from...
expandshrink

Triggering a modal popup window from link

Triggering a modal popup window from link

Sunday 12 December 2010 3:50:57 pm - 3 replies

Hello all and thank you in advance for your attention,

I have just accepted a task of editing an ez publish based website and I have barely any time to learn all of its principles. I need to add a link to a page and make it open a modal popup window with a contact form.

The contact form is in an iframe, I just need to know the best way to add a modal popup window to an ez publish template.

I'm familiar with solutions like jquery lightbox or fancybox, but I don't know how to integrate them with the ez publish cms, can you provide me any tips on this matter?

Thank you kindly.

Monday 13 December 2010 12:33:45 am

Hi,

The contact form you have mentioned, is it a eZ Publish contact from or a custom script? Start from locating a template where you want to add a link with JavaScript listener bind to it. Then use jQuery or whatever lib you pref for displaying modal view. Turn on debug output with enabled list of used templates.

Monday 13 December 2010 1:14:25 pm

Hi,

The contact form you have mentioned, is it a eZ Publish contact from or a custom script? Start from locating a template where you want to add a link with JavaScript listener bind to it. Then use jQuery or whatever lib you pref for displaying modal view. Turn on debug output with enabled list of used templates.

Hello, thank you for your answer happy.gif Emoticon I managed to implement jquery.fancybox modalpopups, my current issue is that the form is precisely a eZ Publish contact form and I don't know how to isolate the form from its template. How can I know which templates are being called on each address? Where do I define such conditions?

Monday 13 December 2010 2:07:46 pm

What you can do is to pipe it over the custom pagelayout using layout/set module. eZ Publish comes with popup dedicated pagelayout (located in design/standard/templates/popup_pagelayout.tpl). Try something like www.example.com/layout/set/popup/URL_TO_CONTACT_FORM. Take a look on settings/layout.ini for more info as well as use concat() and ezurl() template functions.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from