Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /****************************************************************************/
- /* Problem: Custom layout not loads if a single article is set on frontpage */
- /* Fix on file /components/com_content/views/article/view.html.php */
- /* Search this comment: */
- /* // Load layout from active query (in case it is an alternative menu item)*/
- /* Insert this: */
- $option = $app->input->getCmd('option', '');
- $view = $app->input->getCmd('view', '');
- $menu = $app->getMenu();
- if ($menu->getActive() == $menu->getDefault() && ($option=='com_content' && $view=='article')) {
- $this->setLayout('customlayoutname');
- }
- /* Done now it forces to load your custom layout */
- /****************************************************************************/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement