All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Is it possible to output an orderby string returning a list of entry_id for a specific category?

jannisg 28 Sep 2011 03:29 question, complete

I'm building an XML Feed for a flash website and need to basically parse out a list (presumably pipe separated entry_id's) for each category of a channel.

So for example:

channel = furniture

cat1 = seating [entries: 1,2,3,4]
cat2 = storage [entries: 5,6,7]

I'd need some way of outputting {order_field_name:cat1} to only get for example "1|2|3|4" for the entry_ids of entries matching the channel and category.

Is that possible somehow?

Replies

  1. Low 28 Sep 2011 06:29

    Well, it is possible, but with a fair amount of PHP in your template, I guess. The {order_field_name:cat1} variable is not possible, I'm afraid.

  2. jannisg 4 Oct 2011 02:05

    Ok no worries. but how would I go about getting the order of a specific channel + category order as it is?

  3. Low 4 Oct 2011 06:50

    Use a channel:entries tag, order by the Low Reorder field, set the category parameter and output the {entry_id}. Something like

    {exp:channel:entries channel="my_channel" orderby="order_field" sort="asc" category="1"} 
    {entry_id},
    {/exp:channel:entries}