Hello all and thank you your help.
Can you please point me into the right direction with the following scenario?
I have a Category Group called “automobile” and category Tesla, Toyota, Ford, Honda, etc… How can I add a list of model cars to my categories?… for ex:
If I want to add an entry into my channel I select category Tesla and I would like (when I select this category) to attache a list of models displayed only to this category… can this be done? Thank you all for reading this. B.
Hi,
There are a few ways I believe. Relationships, query or categories and subcategories. In your case I believe you have main category Tesla, and subcategory Model X
The code will be something like this i think…
<select>
{exp:channel:categories channel="your_channel_name_here"}
{if parent_id == 'your_Tesla_main_category_ID_here'}
<option value="{category_url_title}">{category_name}</option>
{/if}
{/exp:channel:categories}
</select>
have a look at the documentation maybe it will help more…
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.