Forums

A dedicated template for the forms (tmpl=component) ?

chrbar 02 Mar, 2013
Hello,

I would like to open my form in a popup (or lightbox).
I saw in this forum that we can add tmpl=component at the end of the url to open the form inside component.php (if not, the form will be loaded with the full page of the Web site).

In my case, I've already personalized component.php by adding header/footer for print/email functions of my pages.
Can we create a specific template dedicated to the forms (as "form.php") and insert it in Jommla via my template package?

It could be a way to add a "close" button in the popup (or lightbox) by including it inside this specific template.

Thanks for you help🙂
GreyHead 03 Mar, 2013
Hi chrbar,

Sorry I don't know if you can have more than one component.php page :-( The Joomla! docs may help.

You can certainly use JavaScript in a pop-up window to close the window, though usually light-boxes have their own close buttons.

Bob
This topic is locked and no more replies can be posted.