Developer
Supported
Entry Categories
Back to this add-on's main page
View Other Add-ons From Laisvunas
Does this plugin do this?
Support Request
|
Amit
|
| Posted: 20 June 2011 03:00 PM |
|
|
|
|
Hi Laisvunas,
I am trying to output on a multiple entry page the category(ies) that each of my entries belong to. So far when I do this:
{exp:channel:entries channel="movies"} <div class="category"> {categories} <a href="{path='/movies/wiki'}">{category_name}</a> {/categories} </div> <!-- end category --> {/exp:channel:entries}
This is spitting out all of the categories within the movies channel. I want only the one(s) for each movie entry. Will your plugin get me the output I want? Will gladly purchase if it does exactly this.
|
|
|
|
|
Laisvunas
|
| Posted: 20 June 2011 03:09 PM |
# 1
|
|
|
Developer
|
Hi Amit,
Yes, Entry Categories plugin can do this. You will need the code similar to this (don’t forget “parse” parameter):
{exp:channel:entries channel="movies" parse="inward"} <div class="category"> {exp:entry_cats entry_id="{entry_id}" site="1"} <a href="{path='/movies/wiki/{level0_category0_cat_url_title}'}">{level0_category0_cat_name}</a> {/exp:entry_cats} </div> <!-- end category --> {/exp:channel:entries}
|
|
|
|