Hi Shane,
Thanks for the reply. Here’s some more specific background.
In the “Tutorial” Channel Group Assignments, there are two category groups assigned. Here are those groups, and their categories:
National Products:
24 my_product_group
25 my_other_product_group
Options:
65 Featured
Now, the template group/ template is “product/series”. The URL I’m invoking is specifying the category for the “Series” channel (not to be confused with the above-described Tutorial channel). The “Series” Channel also has the National Products category group assigned to it.
http://www.example.com/product/series/category/my_product_group
All clear? Now let’s look at the relevant bits of that template:
{embed="modules/_header"}
<div class="content">
{exp:channel:entries channel="series" limit="1" sort="asc"}
<div class="row">
<div class="span6">
{if series_hero}{series_hero}{/if}
</div>
<div class="span10">
{series_intro}
</div>
</div>
{/exp:channel:entries}
<div class="row">
<div class="span8">
<aside>
<h1>Online Tutorials <small><a href="http://tutorials/">View All »</a></small></h1>
{exp:channel:entries channel="tutorials" limit="1" sort="desc" category="65&24;"}
<article>
<h1>{entry_title}</h1>
{entry_excerpt}
</article>
{/exp:channel:entries}
</aside>
</div>
</div>
</div>
{embed="modules/_footer"}
(P.S. There is no semicolon in my code after the 24. The interpreter here is sticking that in)
Now, yesterday, I was wrong, and that channel:entries specifying 65&24; IS WORKING when hardcoded, but not dynamically as intended. Let me explain.
Note that the first channel:entries tag, {exp:channel:entries channel="series"}, is NOT specifying a category, but is somehow magically aware of the category invoked in the URL and filters accordingly. (Is there a proper term to describe this kind of URL-invoked-category?)
The goal of the second channel:entries tag (currently hardcoded to show {exp:channel:entries channel="tutorials" limit="1" sort="desc" category="65&24;"}), is to only load FEATURED entries in the category of my_product_group. As mentioned, when I hardcode it like that, it does work.
But I want the 24 in that declaration to be dynamically discovered by the category specified in the URL. Is that possible? I can programatically discover the category_id from the URL using channel:category_heading tag, as such:
{exp:channel:category_heading channel="series"}{category_id}{/exp:channel:category_heading}
But I can’t inject that whole variable pair inside the category_id attribute of the entries tag like this:
{exp:channel:entries channel="tutorials" limit="1" sort="desc" category="65{exp:channel:category_heading channel="series"}&{category_id}{/exp:channel:category_heading}”}
So how can I incorporate the category ID invoked from the URL INTO the entries tag with the ADDITIONAL category_id of 65 being part of the requirement?
Does that make sense?