Having two "Home" templates on one page in Joomla

Pulswerk
62 Posts
Pulswerk posted this 20 May 2020

Dear Themler developers,

I am currently working on a new project with Themler. For this special project I need two landing pages, one "Home" and one duplicate called "Home_Network". I can create both in the Themler template editor. Now the only problem is that I have no idea about how to assign the second one (the "_Network") variant to a menu entry.

The "Home" works perfect as usual by setting a menu entry as standard/home/landing page. But you can't have two standard/home/landing pages in Joomla, so how can I assign the second variant to a specific menu entry?

Thanks kindly.
best regards,
Torm

Dear Themler developers, I am currently working on a new project with Themler. For this special project I need two landing pages, one "Home" and one duplicate called "Home_Network". I can create both in the Themler template editor. Now the only problem is that I have no idea about how to assign the second one (the "_Network") variant to a menu entry. The "Home" works perfect as usual by setting a menu entry as standard/home/landing page. But you can't have two standard/home/landing pages in Joomla, so how can I assign the second variant to a specific menu entry? Thanks kindly. best regards, Torm
Vote to pay developers attention to this features or issue.
5 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 20 May 2020

Hello Torm,
You would need to duplicate the template and change Home template for the duplicated theme.
Check instructions:
https://answers.themler.io/articles/10804/how-to-create-and-use-custom-templates

Gina
Themler Support

Hello Torm, You would need to duplicate the template and change Home template for the duplicated theme. Check instructions: https://answers.themler.io/articles/10804/how-to-create-and-use-custom-templates Gina Themler Support
Pulswerk
62 Posts
Pulswerk posted this 20 May 2020

Hey Gina, thanks for the reply.

But I think that this is not a good or reasonable solution.

On the one hand, both templates would be exactly the same, they don't have any differences. On the other hand, I still can't tell a certain menu entry to use the "Home" layout because I can only define one "Home" menu entry.

Take a look at this page:
http://212.87.150.171:8080/mundu/index.php/de/

That's my landing page, using the "Home" layout. Now I also have a second page here:
http://212.87.150.171:8080/mundu/index.php/de/network

This one is using the "Page" layout.

By duplicating the theme, the problem stays the same and I only have redundant data and need to handle two templates instead of only one. So is there a way to force the menu entry "Network" to use the "Home" layout instead of the "Page" layout? Remember: Joomla only accepts one "Home" page in the menu, not two.

Best regards,
Dan

Hey Gina, thanks for the reply. But I think that this is not a good or reasonable solution. On the one hand, both templates would be exactly the same, they don't have any differences. On the other hand, I still can't tell a certain menu entry to use the "Home" layout because I can only define one "Home" menu entry. Take a look at this page: http://212.87.150.171:8080/mundu/index.php/de/ That's my landing page, using the "Home" layout. Now I also have a second page here: http://212.87.150.171:8080/mundu/index.php/de/network This one is using the "Page" layout. By duplicating the theme, the problem stays the same and I only have redundant data and need to handle two templates instead of only one. So is there a way to force the menu entry "Network" to use the "Home" layout instead of the "Page" layout? Remember: Joomla only accepts one "Home" page in the menu, not two. Best regards, Dan
Support Team
Support Team posted this 20 May 2020

Yes, you are right, only one Home template can be used in a menu. Thus, you need to create this second layout under Page template in a second theme. There is no other solution that would also using custom template on one page only.

Gina
Themler Support

Yes, you are right, only one Home template can be used in a menu. Thus, you need to create this second layout under Page template in a second theme. There is no other solution that would also using custom template on one page only. Gina Themler Support
Pulswerk
62 Posts
Pulswerk posted this 20 May 2020

But is there no way of avoiding data redundancies? I mean from a programmers point of view this is a very bad solution if you have to maintain two templates with - let's say - custom css, color choices and other things that are globally controlled.

But is there no way of avoiding data redundancies? I mean from a programmers point of view this is a very bad solution if you have to maintain two templates with - let's say - custom css, color choices and other things that are globally controlled.
Support Team
Support Team posted this 21 May 2020

I see what you mean, but as of now this is the only way for Joomla.

If you decide to edit general styles such as font family or colors, you can do that in the main template and duplicate it again to assign to one particular menu item (this is instead of editing styles in both templates).

Gina
Themler Support

I see what you mean, but as of now this is the only way for Joomla. If you decide to edit general styles such as font family or colors, you can do that in the main template and duplicate it again to assign to one particular menu item (this is instead of editing styles in both templates). Gina Themler Support
You must log in or register to leave comments