I found this code and worked with one category.
- Code: Select all
[[ if $entry.category[0] == 'primeur' ]]
[[ include file="`$templatedir`/_sub_primeur.html" ]]
[[ else ]]
[[ include file="`$templatedir`/_sub_sidebar.html" ]]
[[ /if ]]
But what so i have to do to make it work with more categories?
Tried this (but didnt work):
- Code: Select all
[[ if $entry.category[0] == 'primeur' ]]
[[ include file="`$templatedir`/_sub_primeur.html" ]]
[[ elseif $entry.category[0] == 'corsiva' ]]
[[ include file="`$templatedir`/_sub_corsiva.html" ]]
[[ else ]]
[[ include file="`$templatedir`/_sub_sidebar.html" ]]
[[ /if ]]
Some help will be great
