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?

May 24, 2010 9:22pm

Subscribe [2]
  • #1 / May 24, 2010 9:22pm

    swenke

    70 posts

    I have a template that I’m using do enter in board meetings details each month.
    As I publish them the current minutes go live on the site and the previous months go away.

    How do I go about making the previous months available on the site.

    Any thoughts or points in the right direction would be appreciated.

    Chris

  • #2 / May 25, 2010 6:05am

    Steven Grant

    894 posts

    use the archive tag - that will help you.

  • #3 / May 27, 2010 2:22pm

    swenke

    70 posts

    Thank you for the help I think this puts me on the right track. But I’m having a hard time with realizing the objective.

    Here is what I have:

    {exp:weblog:month_links weblog=“minutes” sort="asc" status="Past Minutes"}
    <a href="http://{path=site/minutes}"><li>{month}, {year}</li></a>
    {/exp:weblog:month_links}

    This code generates the links properly but the templates don’t populate with the data the way I would expect them to.

    http://www.glenofhudson.com/?/site/minutes/2009/07/

    It should generate a page like this:

    http://www.glenofhudson.com/?/site/minutes/

    but with the July 2009 data filled in.

    Any thoughts on this?

  • #4 / May 27, 2010 2:34pm

    Lisa Wess

    20502 posts

    The URL is how the weblog entries tag knows what entries to display.  Have you read The Importance of Semantics: Dates?

    If the site/minutes/2009/07/

    URL is not working, then please post your minutes template.

    Thanks!

  • #5 / May 27, 2010 2:59pm

    swenke

    70 posts

    This is what I have for my minutes template. Thoughts?

    {exp:weblog:entries weblog="minutes" limit="1" status="Current Minutes"}
    <span class="minutesDate">{meetingDate}
    <span class="minutesSubHead">{if "{meetingLocation}"}Location:</span> {meetingLocation}{/if}
    <span class="minutesSubHead">{if "{callToOrderTime}"}Called to Order at:</span> {callToOrderTime}{/if}
    <span class="minutesSubHead">{if "{inAttendance}"}In Attendance:</span> {inAttendance}{/if}
    <span class="minutesSubHead">{if "{previousMinuteApproval}"}Minutes Approved By:</span> {previousMinuteApproval}{/if}{if "{previousMinutesSeconded}"} and seconded by {previousMinutesSeconded}{/if}
    <span class="minutesSubHead">{if "{financials}"}Financials:</span>
    {financials}{/if}
    <span class="minutesSubHead">{if "{delinquencies}"}Delinquencies:</span> {delinquencies}{/if}
    <span class="minutesSubHead">{if "{oldBusiness}"}Old Business:</span>
    {oldBusiness}{/if}
    <span class="minutesSubHead">{if "{newBusiness}"}New Business:</span>
    {newBusiness}{/if}
    <span class="minutesSubHead">{if "{adjournmentQuestion}"}Adjournment Called By:</span> {adjournmentQuestion}{/if}{if "{secondAdjournment}"}and seconded by {secondAdjournment}{/if}
    <span class="minutesSubHead">{if "{endMeetingTime}"}Meeting Adjourned:</span> {endMeetingTime}{/exp:weblog:entries}
  • #6 / May 27, 2010 3:22pm

    Lisa Wess

    20502 posts

    First, see Troubleshooting conditionals - you should not be quoting and bracing your conditionals like that.

    Second - I don’t see a closing if for your final conditional in there (Meeting Adjourned).

    Third - You’re going to be limiting to 1 entry on this page (limit=“1”)

    Fourth - Do you have a link to this page? 

    Fifth - you might try putting a monthly date heading in there, so you can be sure of what you’re seeing.

    You may end up needing to simplify this template for testing - you have quite a lot going on here with the conditionals. But those are some beginner things to try for now.

  • #7 / May 27, 2010 3:46pm

    swenke

    70 posts

    Lisa,

    Looks like I really blew it. Thanx for the pointers!

    First, see Troubleshooting conditionals - you should not be quoting and bracing your conditionals like that.

    Does’t seem to work without them.

    Second - I don’t see a closing if for your final conditional in there (Meeting Adjourned).

    Thank you nice catch.

    Third - You’re going to be limiting to 1 entry on this page (limit=“1”)

    Removed

    Fourth - Do you have a link to this page?

    http://www.glenofhudson.com/?/site/minutes/

    Fifth - you might try putting a monthly date heading in there, so you can be sure of what you’re seeing.

    Done.

    Thoughts?
    Chris

  • #8 / May 27, 2010 6:33pm

    Lisa Wess

    20502 posts

    Lisa,

    Looks like I really blew it. Thanx for the pointers!

    First, see Troubleshooting conditionals - you should not be quoting and bracing your conditionals like that.

    Does’t seem to work without them.

    Can you show us your code without them?

    Fourth - Do you have a link to this page?

    http://www.glenofhudson.com/?/site/minutes/

    I only see one set of minutes on there, so it’s really hard to test this.  What’s your weblog entries tag look like now?

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

ExpressionEngine News!

#eecms, #events, #releases