How to open a pop up window from a form

Status
Not open for further replies.

jfquestiaux

Well-Known Member
I'd like to have a pop up window that can open from a link in form detail view.
I followed the procedure on the Wiki but I think it was for fabrik 2 and it does not seem to work in fabrik 3.1.

This is what I have done :
in the default.php on my template, I put this at the top:

Code:
FabrikHelperHTML::framework();
FabrikHelperHTML::windows('a.cgv');

and in the template itself (where I want the link), I have
Code:
<a class="cgv" rel="{'content':'test','height':500,'title':'Utilisation des donn?es personnelles','loadMethod':'iframe'}" href="index.php?option=com_content&view=article&id=4&Itemid=139#personal">conditions d'utilisatio...os donn?es personnelles</a>

The link works but it opens a new page, not a pop up. Can someone point me in the right direction?
 
OK, I found the error and correct it in components > com_fabrik > helpers > html.php, lines 241 and 1424, so now the pop up is opening.
 
Status
Not open for further replies.
Back
Top