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 Template - Multiple Pages

February 23, 2010 2:17pm

Subscribe [3]
  • #1 / Feb 23, 2010 2:17pm

    swenke

    70 posts

    Hi,

    Maybe this is a basic question but for some reason I can’t get my head around it.

    I have template that builds a page showing monthly minutes but every month a new set of minutes
    is needed but I need to also build access to the previous months minutes.

    Could someone point me down this path?

    Regards,
    Swenke

  • #2 / Feb 24, 2010 9:13pm

    ChiefAlchemist

    913 posts

    Hey Swenke

    You’re specifics aren’t too specific but I’ll take a shot anyway.

    Let’s assume the current is always the one on top. That is, order by id desc, limit=1. For all others we’ll produce a list

    http:www.mysite.com/template_name/id2

    http:www.mysite.com/template_name/id3

    http:www.mysite.com/template_name/id4

    now back prior to the first loop we’ll put in a condition that test for segment_3 (id2, id3, id4, etc). If segment_3 != “” then use a {exp} query that looks of by id = segment_3

    else, run the first quest that only lists the latest.

    Does that make sense? Does it help?

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

ExpressionEngine News!

#eecms, #events, #releases