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.

hiding categories and displaying all categories in a url

September 24, 2011 11:34am

Subscribe [2]
  • #1 / Sep 24, 2011 11:34am

    lakey

    59 posts

    I have a bunch of categories such as

    1
      5
        10
        11
        12
      6
    2
      7
      8
      9
    3
    4

    I want to exclude the top level so i only get the second level and all the children…also when the link is created i need the children to have in the link the categories including any parent category they’re associated with.  This includes the top level which visually i am trying to hide.

    This is my code at the moment that obviously doesnt work (i tried using the show variable):

    {exp:channel:categories channel="fixtures" show="1"}
            <a href="http://{path=fixtures/{category_url_title}}">{category_name}</a>
            {/exp:channel:categories}
  • #2 / Sep 24, 2011 1:25pm

    lakey

    59 posts

  • #3 / Sep 24, 2011 3:40pm

    Mark Bowen

    12637 posts

    Hi lakey,

    Glad you were able to find an answer.

    If anything else crops up then please don’t hesitate to post again as needed.

    Thanks,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases