I'm looking for a way to include a category dependant sidebar in my entrypage. I have two separate sidebar files; _sub_sidebar1.html and _sub_sidebar2.html.
If the category in the entrypage is 1, I would like to show _sub_sidebar1.html. If the category in the entrypage is 2, I would like to show _sub_sidebar2.html.
I hoped [[ include file="templatename/_sub_sidebar[[ category ]].html" ]] would work, but I guess it can't be done this way.
Thanks in advance.