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.

Links and categories

September 14, 2010 6:26am

Subscribe [0]
  • #1 / Sep 14, 2010 6:26am

    R Gruyters

    14 posts

    Hi ya,

    Just wondering what is the best way to create a list of external links.

    - catA
    - linkA
    - linkB
    - catB
    - linkC
    - catC
    - linkD
    - linkE
    - linkF
    etc.

  • #2 / Sep 14, 2010 10:21am

    R Gruyters

    14 posts

    Nevermind, I think I’ve got it!

    {exp:channel:categories channel="links" show_empty="no" class="fancy toggle"}
    <span class="icon">»</span> <a href="#">{category_name}</a>
    <ul>
    {exp:channel:entries channel="links" category="{category_id}" disable="member_data|pagination"}
       <li><span class="icon">></span> <a href="http://{links_url}">{title}</a></li>
    {/exp:channel:entries}
    </ul>
    {/exp:channel:categories}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases