I’m having some brain grid-lock…probably I should come back to this in the morning. But have to finish…
I have a weblog and the entry page is pretty typical, displays entry fields, categories, etc. Then in the footer I display the 3 most recent entries posted and below that, more articles in the same category. To do that I pass the entry_id and categories to the footer embed, as follows:
{embed="includes/footer" entry="{entry_id}" categories="{categories backspace="1"}{category_id}|{/categories}"}So in the footer embed I grab related entries needed, so for recent entries:
{exp:weblog:entries weblog="articles" status="Open" limit="3" {if embed:entry}entry_id="not {embed:entry}"{/if} dynamic="off"}The problem I’m having now is that I need to add comments to my entry pages, and want to end the weblog:entries tag before the footer embed. My brain is locking.
Should I be passing the entry_id and categories to the footer at all? Or using the url to create the footer queries? If I could pass the entry_id and categories to local variables that could live outside the weblog:entries tag that would solve this. So should I do that, and if so how?