Hi all,
Sorry if this has been answered before, but I am not able to find it neither here or the documentation.
Is there a way to get the “weblog_id” variable outside an “exp:weblog:entries” call? Like a global?
I have multiple weblogs and I use the same templates for all of them. I need to know the id of the weblog I am, so I can use conditionals to modify the presentation.
For example, to highlight the weblog I am in the menu:
<ul>
<li>weblog 1</li>
<li {if weblog_id == '2'}class="selected"{/if}>weblog 2</li>
<li>weblog 3</li>
</ul>
Thanks for your help.
