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.

get entry id while in category archive loop

October 15, 2009 8:04pm

Subscribe [1]
  • #1 / Oct 15, 2009 8:04pm

    allibubba

    57 posts

    i’m trying to build a navigation piece based on entries within categories, i seem to be able to get the category name, and entry titles that fall within said category, but is there a way to get other custom fields, other than the entry title?

    shooting for something like this:

    CATEGORY A
    - entry 1
    —entry title
    —entry id
    —entry custom field
    - entry 2
    —entry title
    —entry id
    —entry custom field
    CATEGORY B
    - entry 1
    —entry title
    —entry id
    —entry custom field
    - entry 2
    —entry title
    —entry id
    —entry custom field

    so far with category_archive, all i can get are the titles, which can be linked to the actual entry


    here’s the code i’m shooting for:

    {exp:weblog:category_archive weblog="my-weblog" style="linear"  show_empty="no"}
        {categories}
            <h1 id="{category_name}_title">{category_name}</h3>
        {/categories}
        
        {entry_titles}
            {entry_id_path}
            <a href="http://{entry_id_path=tmp/index}">{title}</a>
            <div>
            {exp:weblog:entries weblog="my-weblog" entry_id="{entry_id}"}
                {related_entries id="images"}
                    {tmp-image}
                {/related_entries}
            {/exp:weblog:entries}
            </div>
        {/entry_titles}
    {/exp:weblog:category_archive}

    any direction or ideas on this would be great!

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

ExpressionEngine News!

#eecms, #events, #releases