Overriding template when layout is defined in link

chrisbjerken
11 years, 10 months ago
So I can't get my template override to display for a certain page because in the menu link to that page:

index.php?option=com_content&view=category&layout=oneshow:events&id=11


the "layout" query there causes it to display the default template settings for my "com_content" overrides instead of my mobile template overrides.  Any way to overcome this?  Thanks!
dryabov
11 years, 10 months ago
As template name is hardcoded in such a way, the only solution is to have two layouts in your events.php layout, smth like

 
<?php
defined('_JEXEC') or die;
if(!defined('_MJ')){
 
// desktop code
 
} else {
 
// mobile code
 
}
 

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.