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.

featured channel entries

June 27, 2011 12:41pm

Subscribe [2]
  • #1 / Jun 27, 2011 12:41pm

    brittanyA

    184 posts

    I feel like there must be an obvious solution to this, but I want to run it by the community because I’m having a hard time wrapping my head around it. My client will be publishing listings on his site via channel entries. Some of these listings are “featured” and will be listed at the top of the page and have dramatically different styling. Is this as simple as assigning the listing a “featured” status, sorting by status, and then using an “if status = featured” conditional within the tag to get the special formatting?

    Thanks!

  • #2 / Jun 27, 2011 6:00pm

    Matt:P

    277 posts

    YES!

    Hi Brittany

    We do this a LOT for clients. We add a status of Featured to the default status group and use an entries tag containing the status=“featured” parameter. The orderby parameter can still be set to date/title etc… as normal.

    Typically we’ll render 5 or 6 ‘featured’ entries as above - and then use another Entries tag to render the rest with the parameter status=“open” to make sure we don’t render the featured entries again.

    Does that help?

  • #3 / Jun 27, 2011 10:01pm

    brittanyA

    184 posts

    Cool! Thanks. Yeah, I suspected this was the solution but was hoping there was something I could do without rendering the entries tag twice. Thanks Matt!

  • #4 / Jun 27, 2011 10:06pm

    Matt:P

    277 posts

    Sure thing, let us know if you come up with another solution Brittany

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

ExpressionEngine News!

#eecms, #events, #releases