Is there someway to chage the layout/design of a article based on it's category?
eg click on an article from one category and it's is two columns and blue, the second is white and is 3 columns, and so on.
Is there someway to chage the layout/design of a article based on it's category?
eg click on an article from one category and it's is two columns and blue, the second is white and is 3 columns, and so on.
Might want to take a look at this article
http://elasticdog.com/2004/10/faking-multiple-templates/
and to check what category you're in
if( $cat == 1 ) {
require( 'includes/cat1-index.php' );
}
else if( $cat == 2 ) {
require( 'includes/cat2-index.php' );
}
else if bla bla bla
sweet, that'll work
thanks
This topic has been closed to new replies.