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.

Monthly archives with multiple template groups

June 26, 2008 6:02pm

Subscribe [0]
  • #1 / Jun 26, 2008 6:02pm

    Hello,

    I’m having some trouble with a listing by month of blog entries posted. My intent is to do either of the following:

    - List all posts made in that month for a specific weblog
    - List all posts from all weblogs made in the month

    Each weblog is under its own weblog template group
    ie if there was a monday weblog, it would have a monday template group.

    {exp:weblog:entries orderby="date" sort="desc" limit="100" disable="pagination|custom_fields|categories|member_data|trackbacks" }
                    
                    {date_heading display="yearly"}
                    <h2 class="title">{entry_date format="%Y"}</h2>
                    
    
                    {/date_heading}
                    
                    {date_heading display="monthly"}
                    
    
                    <h3 class="date">{entry_date format="%F"}</h3>
                    {/date_heading}
                    
                    <ul>
                    <li><a href="http://{title_permalink={my_template_group}/index}">{title}</a></li>
                    
    
                    </ul>
                    
    {/exp:weblog:entries}

    In this code, despite specifying which weblog to look up it shows me currently all the weblog entries for that month:

    <h2 class="sidetitle" >Monthly Archives</h2>
                <ul>
                {exp:weblog:month_links weblog="{my_weblog}"}
                <li><a href="http://{path={my_template_group}/archives}">{month} {year}</a></li>
                {/exp:weblog:month_links}
                <li><a href="http://{path={my_template_group}/archives}">Complete Archives</a></li>
                </ul>
                
    
  • #2 / Jun 26, 2008 6:36pm

    Caught the error myself in that I simply needed a weblog = “monday” in the first expression. However, I’d still be interested to see if it is possible to list all weblog entries from all template groups

  • #3 / Jul 02, 2008 2:28pm

    Still looking for a solution to this if it is possible to do in EE.

    Thanks!

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

ExpressionEngine News!

#eecms, #events, #releases