How to override joomla 3 component template in 2 places?

96 Views Asked by At

How can i override template for com_content in two different pages? For example I have a menu with two pages "Page1" and "Page2". And I need for com_content in a Page1 must be with one html template, and com_content in a Page2 must be with another html template.

How can I do that?

1

There are 1 best solutions below

4
emmanuel On BEST ANSWER

You have to create the template override and put it under:

/templates/*your_template/html/com_content/article/*template_name.php

Then you could select the layout at:

Article -> Options -> Alternative Layout

Hope this helps