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.

One channels entries populating the fields of another channels tab

June 12, 2012 2:13pm

Subscribe [1]
  • #1 / Jun 12, 2012 2:13pm

    ehime

    6 posts

    Alright guys and gals, I’m really going to need some help on this.

    I evidently need to make a module of some sorts that will accept
    values from on entry, and populate another channels fields through
    check boxes.

    Let me try explaining it the best that I can. Lets say I have products
    (products channel->entries) this will need to have retailers (multiples)
    for each product. I see creating a new channel called Retailers, that
    will accept three fields, (Title, image, description). Every time a new
    retailer is set up, a checkbox for that retailer will show up on all
    products entries, and if that checkbox is checked, it will display that
    retailers image with the product (~10 retailers shown per product), the
    easy part is displaying the retailers and I believe I have that figured
    out using this.

    {exp:channel:entries channel="products" order_by="random" limit="10"}
    
      <span id="{retailer_title}" >
    
    {/exp:channel:entries}

    Whether I can nest loops like this inside a single entry is yet to be seen.

    I do need massive help trying to figure out how to set up the module that will
    populate another channel though, any help will be rewarded with beer and love.

  • #2 / Jun 13, 2012 1:52pm

    Dan Decker

    7338 posts

    Hi ehime,

    Whew!

    Whether I can nest loops like this inside a single entry is yet to be seen.

    No, you can not :-( Channel entries tags can’t be nested.

    I think the best idea, and what it sounds like you are really after, is to use relationships. ExpressionEngine has native relationships, but you might need to look into Pixel & Tonic’s Playa for multi-relationships.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases