We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2935
    • 15 Posts
    I have just quickly modified (changed the templates) of the "stock" blog that gets created with the base install and I can’t get the Reflect archive links to work. The list of links (with month and year) are created but even thought the query string is appended to the URL the Ditto instance does not reflect the changes on page refresh. In other words the links don’t change the Ditto display to list only that month’s posts. Actually when I click another link in the archive list it appends the more to the query string instead of changing the URL. I am just targeting the base log page (in other words the same page). Funny thing is, I am seeing the same behavior on the demo install at opensourcecms.org. Does anyone know if there is a bug in the new version of Reflect? Maybe I am just doing something wrong. I noticed that many examples have the parameters of "&id=`wp`", when I add that is breaks the Reflect list and the pagination of the blog entries. Wierd?
    Here is my code:
    
    [!Ditto? &startID=`2` &summarize=`5` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter,request` &paginateAlwaysShowLinks=`1` &tagData=`documentTags` &debug=`1` !]
    
    [[Reflect? &dittoSnippetParameters=`startID:2` &groupByYears=`0` &showItems=`0` &tplMonth=`reflect_month_tpl` &tplContainer=`reflect_container_tpl`]]
    
    


    I have looked at several examples throughout the forum and tried several things - nothing works so far.

    Attached is debug console.

    Here is what I am trying to achieve:

    Archive list
    July 2007
    April 2006

    click on the link to refresh the page with the posts for only that month and year.


      • 18397
      • 3,250 Posts
      In short, set the same &id=`your_choice` for both the Reflect and Ditto call and then prefix your pagination placeholders with the same ID. Thus, if you use &id=`wp` then use [+wp_previous+] for your pagination placeholder.

      I’ll explain the reason why in an upcoming screencast.
        • 2935
        • 15 Posts
        Thanks Mark!
        I updated both snippets and added the id parameters and now it is working. Thanks for pointing out the prefix to the pagination. I knew that and just overlooked it. Pagination is almost completely working. The only thing left is the "Showing 1-5 of 6 Posts" portion - it isn’t diplaying. Have the start, stop and total placeholders changed? Here is my code:
        [!Ditto? &parents=`2` &summarize=`2` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter,request` &paginateAlwaysShowLinks=`1` &tagData=`documentTags` &id=`bloglist` !]
        
        Showing [+bloglist_start+] - [+bloglist_stop+] of [+bloglist_total+] Articles
        [+bloglist_previous+] [+bloglist_pages+] [+bloglist_next+]
        


        -Brian
          • 2935
          • 15 Posts
          Sorry, ingnore my previous post. Nevermind. I turned of RichText for that page and found tags within the placeholders. Now it all works great. Thanks for your help.