Created
December 17, 2014 16:55
-
-
Save fastnetwebdesign/d57eb68d74142832ea36 to your computer and use it in GitHub Desktop.
Dynamically load article template based on category ID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch ($this->item->catid) | |
{ | |
case('9'): | |
case('11'): | |
echo $this->loadTemplate('inset'); | |
break; | |
case('10'): | |
echo $this->loadTemplate('news'); | |
break; | |
default: | |
echo $this->loadTemplate('article'); | |
break; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment