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.

Publish entry id or order number

August 21, 2012 4:02pm

Subscribe [2]
  • #1 / Aug 21, 2012 4:02pm

    niallthompson

    17 posts

    I want to be able to number my channel entry results.

    So for example if my results return 10 entries i want to be able to refer to this number.

    {exp:channel:entries channel="accessories" disable="categories|category-fields|member-data|pagination" status="open" limit="1"}
    <div class="description">
    <span class="black-bold">{entry_id}.</span>{accessory_description} -<span class="black-bold">£{price} GBP</span>
    </div>
    <a href="#class=red-bold">BUY</a>
    {/exp:channel:entries}

    Can i use the {entry_id} tag as used in the example above?

    Appreciate any help.

    Niall

  • #2 / Aug 22, 2012 9:18am

    Rob Allen

    3114 posts

    Yes you can. {entry_id} is really just another variable that you can output to a template, the only limitation is that you have no control over the actual number since they are automatically assigned when you publish new entries.

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

ExpressionEngine News!

#eecms, #events, #releases