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.

channel:entries not working for specified channel

August 30, 2012 7:53pm

Subscribe [1]
  • #1 / Aug 30, 2012 7:53pm

    antiuser

    44 posts

    I’ve implemented a gift shop on a client’s website using the CartThrob module, and CartThrob is set to save completed orders to a channel called “gift_shop_orders”. I then created a template “cart/report” for my client to be able to print out an order slip and set it as the live look template for that channel, so my client can just pull up a list of orders and click “View” next to the entry to see the order slip. However, it’s not working. I’ve pared down the code so that all that’s left in the template is:

    {exp:channel:entries channel="gift_shop_orders" limit="1"}
    {entry_id} - {title}
    {/exp:channel:entries}

    When I view the template directly or click “view” next to an entry to pull up the live look, nothing shows up. But if I remove the channel=”” parameter, then it pulls up the info for whatever the latest entry was, regardless of the channel. I have looked in the database and all the info for the entries in the gift_shop_orders channel is there, but I can’t for the life of me pull it up on a template. What’s going wrong here?

  • #2 / Sep 04, 2012 12:23pm

    Dan Decker

    7338 posts

    Hi antiuser,

    I am sorry for the un-expected behavior!

    I did some testing on ExpressionEngine 2.5.2 with a very generic template and 2 channels. I set the template to be the live look for each channel and called it up.

    Even without a channel parameter, the template still returned the proper entry. What version of ExpressionEngine are you using? Also, is that the full live look template in your example above?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases