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.

Show latest category entry

December 02, 2011 5:31am

Subscribe [4]
  • #1 / Dec 02, 2011 5:31am

    pushloop

    422 posts

    I’m surprised not to find this topic in the forum already, but then again I haven’t myself needed to do this before either…

    Basically what I was hoping to accomplish withouth having to resort to using a custom query, is to display the latest entry or X latest entries from each of the channel’s categories.

    Anyone done this before?


    —- UPDATE TO CLARIFY—-

    Obviously what I’m trying to avoid here is having to resort to using the channel:entries tag within the channel:category tag with or without embeds. The template displaying these entries is in fact an embedded template, so further embeds is a no go I’m afraid.
    Also I have looked into using the channel:category_archive tag, but that only allows for displaying the entry title and doesn’t allow me to limit the number of entries per category to show.

  • #2 / Apr 23, 2012 6:16pm

    James L

    40 posts

    Hi André, I’m trying to do the same thing, did you find an answer?

  • #3 / Apr 24, 2012 1:25am

    pushloop

    422 posts

    Unfortunately not. The only way it seems is to either nest the channel tag within the categories tag, or to use a custom query.
    Creating an add-on that does this would have some good potential I believe. In fact, I haven’t checked lately - there might already be one at devotee.com!

  • #4 / Apr 24, 2012 5:12am

    James L

    40 posts

    Okay, thanks. I’ve searched devotee.com but I don’t think there’s anything that limits entries by categories. As you say, it seems like an obvious request but after all these years it’s the first time I’ve needed it too. I can probably work around it this time but an add-on would be damn handy if anyone has the time.

  • #5 / Apr 30, 2012 2:45pm

    bootsy

    7 posts

    Hi all,
    I’ve had to do something similar for a site I’m working on and I came across some wonderful (and free) plugins which allow you to do all this and more

    http://gwcode.com/add-ons/gwcode-haschildren

    also its well worth checking out his/her other addons as they really make working with categories a breeze.

    http://gwcode.com/add-ons

    cheers

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

ExpressionEngine News!

#eecms, #events, #releases