ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

parent category & sub category?

May 22, 2008 1:20am

Subscribe [3]
  • #1 / May 22, 2008 1:20am

    briciusaz

    38 posts

    Hi- I want to show category name instead of showing parent and sub category name. For example, the parent category is “Show” and the sub is “IronMan”.

    I am using:

    {categories}{category_name}{/categories}

    In result I get ShowIronMan whil I want to show “IronMan” only. How do I do that?

  • #2 / May 22, 2008 1:52am

    PXLated

    1800 posts

    With that tag (categories) there isn’t a generic way. If the parent is consistent, you could eliminate it specifically…
    {categories show_group="not 2”}

  • #3 / May 22, 2008 2:01am

    briciusaz

    38 posts

    I just tried that, it didnt worked.

    To see what exactly is happening on my end- go to http://www.usdeafvolleyball.org/rosters then click the players’ name. You will see what’s happening.

  • #4 / May 22, 2008 2:33am

    PXLated

    1800 posts

    I may be missing it but visiting those pages doesn’t enlighten me at all.

  • #5 / May 22, 2008 2:39am

    briciusaz

    38 posts

    Okay on rosters page, the part info on the names look like this:

    {exp:weblog:entries weblog="rosterteam" orderby="date" sort="desc" limit="6" show_future_entries="yes" category="11"}
    
    <table width="0" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td><h2>{title}</h2>
    <p></td><br />
      </tr><br />
      <tr><br />
        <td><table width="524" border="0" cellpadding="5" cellspacing="0"><br />
          <tr><br />
            <td width="238" valign="top">{teamphoto}{/exp:weblog:entries}</td><br />
            <td width="266" valign="top"><font size="2">{exp:weblog:entries weblog="roster" orderby="date" sort="asc" category="11"}<a href="http://{title_permalink=rosterind}"><b>{title}:</b></a> {position}, {height}, {hometown}<br>{/exp:weblog:entries}

    Rosterteam shows which team they are on. {title} tells what team they are on. While roster wld display the player’s info and include the link to go to its individual page. On the individual page it looks like :

    {exp:weblog:entries weblog="roster" orderby="date" sort="desc" limit="1" show_future_entries="yes" category="10"}
    <table width="0" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td><h2>{categories}{category_name}{/categories}</h2>
    <p></td><br />
      </tr><br />
      <tr></p>
    
    <p>    <td><table width="524" border="0" cellpadding="5" cellspacing="0"><br />
          <tr><br />
            <td width="208" valign="top">{photolg}</td><br />
            <td width="296" valign="middle"><font color="#1e2f61"></p><h3>{title}</h3><p></font><br />
              <br />
    <font size="2"><br />
                  <strong>Position: </strong>{position}</p>
    
    <p>

    Where we are seeing the RostersUs Women Team…. is where {categories}{category_name}{/categories} is at. Hope this helps? Sure wld love your help. Thanks.

  • #6 / May 22, 2008 11:17am

    PXLated

    1800 posts

    Sure wld love your help.

    Am out to meetings most the day…hopefully someone else will jump in.

  • #7 / May 22, 2008 11:19am

    briciusaz

    38 posts

    Thanks- sure hope someone will jump in soon 😊

  • #8 / Jun 20, 2008 8:10am

    Meirion

    127 posts

    Have you checked if the auto-assign parent categories setting is on? I think that may be your problem.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases