We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin: Entry Categories

Development and Programming

Ross1988's avatar
Ross1988
59 posts
15 years ago
Ross1988's avatar Ross1988

any idea why this isnt working?

{exp:weblog:entries weblog="directory" dynamic="on" limit="1"}
  {exp:entry_cats entry_id="{entry_id}" invalid_input="alert"}

    Entry ID: {entry_id}<br>                <!-- this works -->
    Level0 ID: {level0_category0_cat_id}     <!-- this works -->
    Level1 ID: {level1_category0_cat_id}     <!-- this works -->


<!-- now i want to pass Level0 ID in to the child_categories extension: -->

{exp:child_categories parent="{level0_category0_cat_id}" weblog="directory"}
  {parent_category_start}
  <a href="http://{homepage}/category/{parent_category_url_title}/class=directory">{parent_category_name}</a>
  <ul id="directory">
    {parent_category_end}
    {child_category_start}
    <li><a href="http://{homepage}/listings/category/{child_category_url_title}/">{child_category_name}   ({entries_total})</a></li>
    {child_category_end}
    {/exp:child_categories} 
    </ul>

<!-- as a test, i output the value again after the child_categories call -->

    Entry ID: {entry_id}<br>                <!-- this works -->
    Level0 ID: {level0_category0_cat_id}     <!-- this works -->
    Level1 ID: {level1_category0_cat_id}     <!-- this works -->

{/exp:entry_cats}

{/exp:weblog:entries}

nothing happens. the child_categories call gets ignored, but i have this working on other pages (when entry_cats isn’t being used.

thanks.

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas

Hi Ross,

It seems that you shoud add

parse="inward"

parameter to exp:entry_cats tag.

       
Ross1988's avatar
Ross1988
59 posts
15 years ago
Ross1988's avatar Ross1988

you’re a genius, works perfectly

thanks for a great set of plugins!

       
jefinho's avatar
jefinho
26 posts
15 years ago
jefinho's avatar jefinho

Too bad this doesn’t seem to work yet with EE 2.

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
15 years ago
Sean C. Smith's avatar Sean C. Smith

this is brilliant - any chance add backspace=”” to the parameters?

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas

Hi,

I released version 1.3 of Entry Categories plugin.

In this version a new optional parameter was added - show_group. It allows you to specify category group id number. You can stack group id numbers using pipe character show=“1|6|9”. Or use “not” (with a space after it) to exclude categories, e.g. show_group=“not 5|7|11”.

       
Laisvunas's avatar
Laisvunas
879 posts
15 years ago
Laisvunas's avatar Laisvunas

Hi,

I released version 1.4 of Entry Categories plugin.

New feature: it’s now possible to use category group names as values of “show_group” parameter.

       
1 2 3

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.