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.

List of entries from a certain category

November 02, 2010 4:43pm

Subscribe [2]
  • #1 / Nov 02, 2010 4:43pm

    astroscout7

    8 posts

    I need to set up Quick Links modules throughout my site where the client would be able to enter in a quick link title and a quick link url and select a category so the quick link only shows up on certain pages. I’ve set up the ‘channel’, ‘channel field group’, ‘custom fields’, ‘categories, etc. but I am having a hard time figuring out how to write the code to display the quick links by category.. here’s what I have (which isn’t working):

    <ul>
        {exp:channel:entries channel="quick-links" limit="6" dynamic="off"}
            {categories:home}
                <li><a href="http://{quick-links-url}">{quick-links-title}</a></li>
            {/categories}                
        {/exp:channel:entries}
    </ul>

    Thanks for your help!

  • #2 / Nov 11, 2010 12:38am

    Versa Studio

    572 posts

    Do you want a list like this:

    CITRUS
    * Orange
    * Grapefruit
    * Tangelo

    TROPICAL
    * Banana
    * Mango
    * Papaya

    or just a list of all entries in a given category?

    If the latter, just do this, where # is the category id you want to display.

    {exp:channel:entries channel="quick-links" limit="6" dynamic="off" category="#"}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases