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.

How to organize content of my site

July 22, 2010 6:43am

Subscribe [4]
  • #1 / Jul 22, 2010 6:43am

    quamm

    3 posts

    Hi all,

    I’m new to EE2, and I have to create a new website for my client.
    We dont’ understand how to setup the “tree” of the site related to url and templates:

    we have a section called wear (channel “wear”),
    and under this other subsections called summer-man, winter-man, summer-woman, winter-woman (channels?).
    These 4 sub sections has another template, what I wish to know is if We can do only one template (called “wear-collections” 4 example) or we must create one template for each (summer-man, winter-man ecc…).
    Under each of these subsections there are categories for various family wear (and a new design, so another template): D&G, Armani, Valentino ecc…, and under these other sub-categories like shirt, skirt ecc…, then the entry.

    I wish to have finally these url:

    http://www.domain.com/wear
    http://www.domain.com/wear/summer-man
    http://www.domain.com/wearsummer-man/armani
    http://www.domain.com/wearsummer-man/armani/shirt
    http://www.domain.com/wearsummer-man/armani/shirt/article

    What’s the best configuration for do that?

    Thanks a lot.

  • #2 / Jul 22, 2010 10:02am

    Boyink!

    5011 posts

    Hi - welcome to EE!

    EE works a bit differently than CMS’s that have you design a tree structure as a starting point.  You can actually organize your content storage separately from your presentation - including how it flushes out to the site through a URL structure.

    Read this:
    http://ellislab.com/expressionengine/user-guide/general/urls.html

    Then these tutorials are a great “get your feet wet” exercise. They were written for EE 1 but the principles still apply - and I’ve posted a guide to translating to EE2.

    Then maybe run through this series covering a complete site build

    Finally this screencast talks specifically about approaches to setting up the back-end architecture.

  • #3 / Jul 22, 2010 12:20pm

    Shawn Dai

    76 posts

    One way to store the content in EE would to be to setup a single channel called “Products”. Then create custom fields for properties of that product, such as size, color, description, and brand. Use categories for the hierarchy tree, with men and women at the top; for example Men → Pants → Casual and Women → Skirt → Denim. Alternatively, if you have a lot of products that change every season, you could use multiple channels—one for each season year—assigning the same field and category groups to those channels.

    This setup gives you a fair amount of flexibility for products that belong to multiple categories, such as unisex items.

    Your templates do the rest for the presentation, including showing items by categories and brands, and setting up URL structures. Boyink!‘s links should help you with a better understanding of how the templates pull the content from EE.

  • #4 / Jul 27, 2010 8:42am

    quamm

    3 posts

    Ok we’re working on and now the situation is this:

    channel › man-summer
    categories › Armani, D&G ecc…
    entry › T-Shirt 1, T-shirt 2 ecc…

    The problem now is this:
    in the last step we have the title, img, description of the product, but we have to attach the other colors version,
    T-shirt 1 red, t-shirt 1 blue, ecc… The t-shirt red will have 2 or 3 kind of photos, front, rear ecc… We will use jquery to display in front end in the same page.

    We don’t want to publish an entry for the color version because there’s no text related, it’s only images.
    We wish to have one and only entry for the product and other multiple images related.

    Can You help us? thanks.

  • #5 / Jul 27, 2010 6:58pm

    tidy

    196 posts

    Hi Quamm,

    Personally I’d handle this with the matrix add-on http://pixelandtonic.com/matrix, but that costs $55.
    It lets you associate rows of associated data with one entry - so you could have columns for color and image.

    Alternatively, if you know there will be a max number of colours per product, you could just have extra fields to your weblog to accommodate that max, but that’s more clunky.

    Or you could probably handle this via related entries - see http://ellislab.com/expressionengine/user-guide/modules/channel/related_entries.html, but I know you said you want everything in one entry.

    There’s probably other options as well which I’m sure others will be happy to share.

  • #6 / Jul 28, 2010 10:19am

    quamm

    3 posts

    With Matrix we think all works.
    thanks a lot.

  • #7 / Aug 05, 2010 1:05pm

    quamm

    3 posts

    We have another problem now,
    we publish all the entry of the catalogue,
    but now the man section don’t works.
    The situation is this:

    channel › man-summer › Armani › entries
    channel › woman-summer › Armani › entries (most recent entries and categories)

    the man page now don’t publish the items.

    the code is this:

    {exp:channel:entries  channel="man-summer"  category="{segment_3_category_id}"   sort="asc" }
      {if count == 1}
      <div class="tool">
      {/if}
          <div class="family-box"><div class="img-family-prod">{foto-prodotto}/img/resize.php?url={foto-prodotto-1}&size=250x295{/foto-prodotto}</div><div class="tit-family-prod"><a href="http://{title_permalink={segment_1}/{segment_2}/{segment_3}}">{title}</a></div></div>
        {if count == 3 || count == 6 || count == 9 || count == 12 || count == 15 || count == 18 || count == 21 || count == 24 || count == 27 || count == 30 || count == 33 || count == 36}
         </div><div class="tool">
        {/if}
        {if count == total_results}
        </div>
          {/if}
      {/exp:channel:entries}


    The problem is that we have the same name for two different categories, so the segment 3 have the same key.
    http://www.mysite.com/collection/man-summer/Armani/
    http://www.mysite.com/collection/woman-summer/Armani/

    When we call {segment_3_category_id} EE publish the most recent category, not wich is in the right channel, in our case EE publish the Woman Armani category in the man page.

    What we have to do?
    thanks a lot

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

ExpressionEngine News!

#eecms, #events, #releases