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.

Related Entries advice

January 21, 2011 10:41am

Subscribe [5]
  • #1 / Jan 21, 2011 10:41am

    variouspixels

    31 posts

    Hi,

    I have built a couple of sites while following training material and I think I have the basics understood. I would like some advice on how to go about my next task. I have 3 channels titled recipes, articles and blog. Each channel has its own page and I don’t foresee any problems building these pages.

    However, I need to create a channel Week which will hold 2-4 recipes, 1-2 articles and 1 blog every week. The page will show all content added this week and will have its own title, description and other fields.

    What would be the best way to go about this?


    thanks


    gemmes

    Moved to CodeShare Corner by Moderator

  • #2 / Jan 21, 2011 5:25pm

    Sue Crocker

    26054 posts

    Hi, gemmes. Is it OK if the week starts on Monday?

    Can you tell us which version/build of EE2.x you’re using? See EEWiki:// HowTo Determine My EE Version

  • #3 / Jan 21, 2011 5:36pm

    variouspixels

    31 posts

    Hi,

    I am using EE2. I assumed I would just set the Week channels title to Week 1. I just do not know how I would group 5 entries from 3 different channels alongside my new title.

    thanks

  • #4 / Jan 23, 2011 2:05pm

    Greg Salt

    3988 posts

    Hi gemmes,

    Please review the documentation for Reverse Related Entries and the associated and linked documentation on Related Entries. That should help you with this. Shall I move this thread to the CodeShare Corner forum so that you can get some community input into the uses of these tags?

    Cheers

    Greg

  • #5 / Jan 23, 2011 2:29pm

    variouspixels

    31 posts

    Sure, if you think it will help. Also, thanks for link.

  • #6 / Jan 24, 2011 8:02am

    Sue Crocker

    26054 posts

    Moving..

  • #7 / Jan 24, 2011 9:07am

    Boyink!

    5011 posts

    I’m not sure I completely understand the intent here, but if you have channels that hold articles, recipes and blog entries you shouldn’t need another channel to store date-based groupings of them.  All of these entries have an entry date as part of their data.

    You should be able to code all that logic in a template, using the display by parameter to dynamically pull entries from the week.

    The template might use one channel:entries loop pulling from all sources, or multiple channel:entries loops each pulling from a single source.

  • #8 / Jan 24, 2011 11:09am

    John St-Amand

    865 posts

    And if you need date-based headings/separators, within the context of Mike’s suggestion, you could use the date_heading variable pair.

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

ExpressionEngine News!

#eecms, #events, #releases