Rather than develop multiple templates, I prefer to use conditional statements in my templates to choose between the front-page layout and content pages. I do this for a few reasons, which I won't get into, but I feel it's the best way to handle templates.
The site in question is using 1.7 and 2.5.4.
I'm using mod_k2_content on the default page to present recent news items from a category.
I'm using this code to determine if the view is the frontpage or not:
<?php
$menu = JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
?>
My problem is that the readmore links are interpreting the active menu item as default and trying to show the news content on the front page layout.
Does anyone know how I can set it so that they will automatically use the non-default layout?
The site in question is using 1.7 and 2.5.4.
I'm using mod_k2_content on the default page to present recent news items from a category.
I'm using this code to determine if the view is the frontpage or not:
<?php
$menu = JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
?>
My problem is that the readmore links are interpreting the active menu item as default and trying to show the news content on the front page layout.
Does anyone know how I can set it so that they will automatically use the non-default layout?