How to set a template for a specific form?

swmckay 02 Sep, 2012
Hello all,

A little background: all of my forms and articles are using a default theme that has a green background. I have a few forms that I would like to use with the same type of theme but with a blue background. So a created a dupe of the default theme and changed the background in the css file to a blue background. I have both templates in the Theme Manager and the green one is set as the default.

With that said, is there a way to point specific forms to the non-default blue template?

Thanks
Max_admin 05 Sep, 2012
Joomla can assign different templates to different menu items, did you try to create a menu item for your form and assign the blue template to that menu, then whenever you want to use that form, you should use the link of that menu item.

I hope this wasn't confusing🙂

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
swmckay 06 Sep, 2012
hi Max,

Yes, I am using the menu option for a couple of forms it works well, but I have some forms that I have linked straight off of an article within the body of the page (vs. the menu) and that is where the challenge comes up.

Is there a way to get into the file for specific forms and get it to direct to the blue template?

Thanks
Max_admin 06 Sep, 2012
Well, I'm not sure if Joomla provides a PHP function to let you set the template, if you can find one then you can use it in a "custom code" action in your form.

But I don't have other ideas.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.