Hi there,
I want to use a snippet for generating my ‘sidebar’, a div with a few minor channel entries in it. (address data, a proverb, etc.)
The sidebar shows different entries on various pages: the channel entries are categorized by the page where they should appear: home, portfolio, etc.
My snippet, called {sidebar} looks like this:
{exp:channel:entries channel="information" category="8" fixed_order="12|13|14|15" sort="asc" dynamic="no" disable="pagination|member_data|category_fields"}
<div id="{url_title}">
{information_content}
</div>
{/exp:channel:entries}When i call the snippet from my homepage, i want to show entries with category=“8”, but on the portfolio category has to be “9”.
I would use embedded templates for this, but they slow the pages down a lot more then snippets do.
Is there a way of passing a variable into a snippet?
Thanks!