Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Feb 21, 2011 @ 15:19
    Anthony Candaele
    0

    blog4umbraco blogfullarchive doesn't show blogposts

    Hi I implemented the blog4umbraco package into my website, and I use it for posting news-items.

    For some reason though the blogfullarchive macro is not working. It does show the DateFolder, but it doesn't show the blogposts that were posted in the DateFolder

    the structure of my website looks like this:

    in the xslt code I loop through the DateFolder like this:

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

    And then I loop through each blogpost like this:

    <ul>
                              <xsl:for-each select=".//DVBlogPost">
                                    <li>
                                        <a href="{umbraco.library:NiceUrl(@id)}">
                                            <xsl:value-of select="@nodeName"/>
                                        </a>
                                        <br/>
                                        <small>
                                            Posted: <xsl:value-of select="umbraco.library:LongDate(PostDate)"/>
                                            By: <xsl:value-of select="@writerName"/>
                                        </small>
                                    </li>

                                </xsl:for-each>
                            </ul>

     

    But as you can see in the rendered html, only the title for the DateFolder gets rendered:

    <h3>Archives</h3>
    <div xmlns:math="http://exslt.org/math">
    <h3>Februari 2011</h3>
      <div></div>

    Am I missing something here? Thanks for your help!

    Anthony Candaele
    Belgium

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 21, 2011 @ 17:15
    Jan Skovgaard
    0

    Hi Anthony

    What XML do you get returned if you make a copy-of?

    <textarea>
    <xsl:copy-of select="$currentPage/ancestor-or-self::DVBlog/DateFolder" />
    </textarea>

    And are you sure the elements you're trying to match are in the right casing? (XSLT is case sensitive).

    /Jan

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 22, 2011 @ 14:32
    Anthony Candaele
    0

    Hi Jan,

    This is the xml that I get returned:

    <p>this is a test post</p> test00

     

    greetings,

    Anthony

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 22, 2011 @ 20:44
    Jan Skovgaard
    0

    That looks weird?? Why are there no xml elements? Is this all the copy-of returns?

    /Jan

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 24, 2011 @ 09:48
    Anthony Candaele
    0

    Hi Jan

    I started from a complete fresh slate, deleted the Blog4Umbraco package and reïnstalled it. This time I integrated the BlogMaster template under the Master template of my website. After some tweaking of the BlogMaster, Blog and BlogPost template everything works fine.

    To get the Archive functionality right I had to do some upgrading of the BlogListPost.xslt file. You can find more information about this here:

    http://blog4umbraco.codeplex.com/workitem/5605

    The blog4umbraco package is fairly integrated into my website now, and I started with the inputting of the news archive of Prof. dr. Voorhoof (who by the why also teaches in Denmark).

    greetings,

    Anthony

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 24, 2011 @ 10:14
    Jan Skovgaard
    0

    Hi Anthony

    Glad to hear you got it working - Don't know the guy but maybe I should check out what he does ;-)

    Have a good day.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft