Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Owen Hope 119 posts 140 karma points
    Jan 05, 2011 @ 21:08
    Owen Hope
    0

    Blog Archive Problem

    Hello,

    I have installed Blog 4 Umbraco on a 4.0.4.2 Umbraco Installation.

    I am having problems whenever I click the archive links I get a list of all posts on chronological order decending rather than just the monthly archive I have selected.

    For instance:

    October 2010 (6) -> its link is /blog/2010/10 

    Whenever I navigate to that page it is listing all posts starting from the most recent (2011/01/05)

    I don't really know where to start on this one, if anyone has experienced something similar any help would be great.

    Thanks,


    Owen

     

  • Steph Kyriakou 7 posts 27 karma points
    Jan 10, 2011 @ 13:27
    Steph Kyriakou
    0

    Having configured both Blog 4 Umbraco 4.0.x and 4.5.x instances in the last couple months, I have experienced the exact same behaviour- but only with the 4.5.x installation! 

    It appears that with 4.5, that the packaged BlogListPost.xslt still has a few references to the old schema ... http://blog4umbraco.codeplex.com/workitem/5605

    Not sure if this is of any help with regard to your issue, if indeed you running an instance with the older XML schema, except to maybe check the validity of the same BlogListPost.xsl references.

    Cheers,
    Steph

  • Fergus Davidson 309 posts 586 karma points
    Apr 14, 2011 @ 12:04
    Fergus Davidson
    1

    i got this working [so far anyway] by making the following changes to 'BlogListPosts.xslt'

    Line 64:

    changed to:

    <xsl:if test="local-name($currentPage) = 'DateFolder'">

    line 92:

     

    <xsl:for-each select="$currentPage/ancestor-or-self::Blog//BlogPost">

         

    to

     

    <xsl:for-each select="$currentPage//BlogPost">
  • FarmFreshCode 225 posts 422 karma points
    Apr 20, 2011 @ 23:11
    FarmFreshCode
    0

    @bl_ndp_lot - your fix worked for me. My April 2011 archive links great to "/2011/4.aspx" but I also have archive links like 2010 which links to "/2010.aspx" and these pages are giving me the 404 page.

    Page not found
    No umbraco document matches the url 'localhost/2005.aspx'
    umbraco tried this to match it using this xpath query'2005')

    I would have sworn these were working, but they aren't anymore. I've reinstalled the blog a few times now, and those yearly archive pages just never seem to work. Any thoughts you could offer?

  • Thomas Egebrand Gram 63 posts 135 karma points
    Oct 24, 2011 @ 13:34
    Thomas Egebrand Gram
    0

    Hello everyone!

    bl_ndp_lot's fix seemed to work perfectly fine for me. I'm using the new umbraco blog package, in Umbraco 4.7.0.
    The archive used to load every post instead of just the ones in the chosen month. Using the fix above fixed the problem, and it now only shows posts for the specific month as intended. The XSLT will have some errors though - but i just skipped testing.

    Hope that helps out someone. :) Thanks a lot!

    // Thomas

     

  • David W. 159 posts 284 karma points c-trib
    Nov 12, 2011 @ 00:23
    David W.
    0

    Got it working as well using @bl_ndp_lot sugestion. With a slight modification becasue the version I use differ from the one posted. But i removed the ancestor-or-self:Blog from the for-each on (or close to) line 92. Works!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies