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.

Your thoughts on site design...

November 12, 2007 8:46pm

Subscribe [0]
  • #1 / Nov 12, 2007 8:46pm

    helbnt

    143 posts

    I’m looking for some general guidance in terms of my site and would appreciate any thoughts you might have.

    I have a site about motorcycles (Harleys to be specific) that details various models over the past century. The site as it stands now is broken down in to decades (1920-1929, 1930-1939, etc), and each of those pages has half-a-dozen or so bikes on the page. There’s a small blurb describing the bike, and a picture of said bike.

    Clicking on the picture takes you to an individual page (1923-info for instance), with more specific details (engine type, production run, etc…), and a larger picture specific to that particular bike.

    I’m not sure the best way to approach this. Should I create two separate weblogs, one for the decade pages, and one for the individual years? Or is there a way to do one weblog, and then use categories (I’m still fuzzy on category concepts!)? I’d like all the pages to be searchable, and as I understand it the searchable content needs to be in weblog form.

    I am revisiting this topic (if it seems familiar to you), but it’s been awhile and I’m hoping to gain some new insight. Thanks in advance for any help you might be able to offer!

  • #2 / Nov 13, 2007 9:18am

    e-man

    1816 posts

    Should I create two separate weblogs, one for the decade pages, and one for the individual years?

    Here’s your error so to speak: a weblog is nothing mere than a container for your data, that’s it. How you transfer this data to a template is up to you and EE is extremely flexible in this regard.
    My suggestion would be to use 1 weblog that has all the data for a given bike and use categories for the years as this gives a lot of options to display your information.
    For example for a decade page you’d just have to display the categories belonging to that decade. You could even use a category group for each decade and just display that category group on your decade page.

  • #3 / Nov 13, 2007 11:41am

    Francis F.

    45 posts

    punt,

    you may want to check out Boyink’s tutorial here. It was really helpful for me.

    Building an expressionengine site

    /ff.

  • #4 / Nov 13, 2007 2:50pm

    helbnt

    143 posts

    Thanks for the heads up to Boyink’s tutorial Francis! That helps a bit. I did some more reading of the docs as well, and it seems to be at odds with what you suggested, e-man, mostly along the lines of layouts - as the two sections (individual pages and the “overview of the decade” page) will be laid out differently, they suggested weblog. I imagine I’ll play with both (at least attempt to) and see what makes the most sense, I guess.

    Thank you both for taking the time to answer. I really do appreciate it. 😊

    (and yeah, changed my user name - goes with my gmail address )

  • #5 / Nov 14, 2007 12:39am

    aircrash

    293 posts

    I’m with e-man on this; you don’t need two blogs, just two templates. If you have two different weblogs, you’ll end up duplicating a lot of information - dates, images, etc. What you need is two templates each showing different sub-sets of the information from a single weblog. Each weblog entry would include a bike photo, name, date, blurb, and other extended info. The “decade page” template would pull the photo & blurb for a specific decade (category), and would link to a different template that displays all of the info for a specific bike.

    Think of it like a blog that shows an excerpt on the home page with a “read more” link to the full post on a different page.

  • #6 / Nov 14, 2007 9:49am

    helbnt

    143 posts

    Wow.

    There was a lightbulb moment for sure. One weblog with all pertinent fields, and then two different templates, each one pulling in only the information they need.

    Geezus, why didn’t I ever think of that?? And that’s exactly what e-man was saying.

    Thank you SO much aircrash (and e-man)...seriously, that just totally opened my eyes.

  • #7 / Nov 14, 2007 9:53am

    e-man

    1816 posts

    He he, you’re on your way, man! Once you have grokked the concept of weblogs/templates things really start to fall in place. 😊

  • #8 / Nov 14, 2007 9:56am

    helbnt

    143 posts

    heh - I edited my reply to include thanks to you as well, but I’ll say it again: thanks for helping me out e-man! 😊

  • #9 / Nov 14, 2007 7:46pm

    Deron Sizemore

    1033 posts

    Wow.

    There was a lightbulb moment for sure. One weblog with all pertinent fields, and then two different templates, each one pulling in only the information they need.

    Geezus, why didn’t I ever think of that?? And that’s exactly what e-man was saying.

    Thank you SO much aircrash (and e-man)...seriously, that just totally opened my eyes.

    You’ll have a lot of these moments believe me. When you first start with EE you’ll be confused, but after a couple weeks of playing and asking questions you finally get the proverbial light bulb moment and you can start to do some cool stuff.

  • #10 / Mar 20, 2008 8:02pm

    helbnt

    143 posts

    Sorry for resurrecting this thread, but it pertains directly to my question, so rather than rehash details, I thought I’d just reply to this one.

    Basically, I’m looking for another light bulb moment. As stated, I now have one blog (called bikes) that has two templates that pull different custom fields from it. One template is years (for the individual year, 1903 for instance) and the other is decades (1900-1910). The year template works exactly like I want and that’s quite exciting for me 😊

    I want the decades template to work like so: For each decade, I have several different bikes. For instance, in the 1900 decade, I have entries for 1903, 1906, 1908 and 1909. Each of those individual years will be a blog entry. On the decade page, I’d like all four of those to show up.

    Now, I can load up the decades template, and it pulls up my 1903 bike. The url, however, is /bikes/decades/1903-info - which is the title of the individual blog entry. Is there a way to put all four bikes on one page, and have the url something like /bikes/decades/1900-1910/?

    Does any of this makes sense? If someone needs, I’ll post the full urls - it’s just that my site is nowhere near ready.

    And again, thanks for you help. You’ve all been great

  • #11 / Mar 20, 2008 9:11pm

    kirkaracha

    273 posts

  • #12 / Mar 20, 2008 10:39pm

    aircrash

    293 posts

    You could use url segments and conditionals.

    One way is to add a “decade” custom field to your entries. Then, call your decade page with a url like bikes/decades/1900-1910/ where the years are whatever you enter in the custom field for each decade. You can then pull that from the url using segments and use that info plus the weblog entries tag’s search parameter to pull only that decade’s entries.

    Something like this:

    {exp:weblog:entries  weblog="weblog_name"  search:decade="={segment_3}" }

    I haven’t tested this, so it may not be exactly correct, but hopefully it should help get you on your way.

  • #13 / Mar 20, 2008 11:46pm

    e-man

    1816 posts

    You can then pull that from the url using segments and use that info plus the weblog entries tag’s search parameter to pull only that decade’s entries.

    Damn, I didn’t even know that parameter. 😊
    Solid suggestion though, that’s exactly how I would do it; man I learn a new trick every day :coolsmile:

  • #14 / Mar 21, 2008 1:09am

    OrganizedFellow

    435 posts

    You can then pull that from the url using segments and use that info plus the weblog entries tag’s search parameter to pull only that decade’s entries.

    Damn, I didn’t even know that parameter. 😊
    Solid suggestion though, that’s exactly how I would do it; man I learn a new trick every day :coolsmile:

    YEAH!

    Truly insightful aircrash!
    This solves a small problem for me as well.
    😊

  • #15 / Mar 21, 2008 2:51pm

    helbnt

    143 posts

    Aircrash, thank you so much. That is a beautiful thing!

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

ExpressionEngine News!

#eecms, #events, #releases