Some time ago i developed a website in Umbraco 4.7; with an integrated blog via the blog-starter-kit. I went through quite a few bugs in order to get it all working, as it seems the starter-kit wasn't completely up to date on most of the xslt.
Now, my client would like to add a 'widget' displaying the lastest blog comments in the sidebar. Unfortunately, the BlogLatestComments.xslt doesn't even render in the template, and when saving the default - it throws an "Value was either too large or too small for an Int32."
I've been searching a bit, and it seems to be a common problem that this script doesn't work for the package. Yet, i have found no solutions to the problem - and i need to get this working properly. I'm thinking it might have something to do with the old xml schema - but to be honest i can't really tell the difference, as i'm not a 'pro' at xslt yet. It may also very well be that the script cant find the comments in the database. But again, i'm clueless at this point.
Any help or directions would be much appreciated solving this problem. If anyone can see the error, or has been through this blog-problem before. Crossing my fingers! :)
Now, i also tried visualizing the xslt via the editor: Doing this on the umbBlog page or any decendants hereof results in a: "The XSLT didn't generate any output", whereas selecting other document-types results in an error as expected.
Could it be that the blog-package have saved the comments-incorrectly in some way; so that we're not able to retrieve them? You can see this link for the blog by the way: http://www.fuglevang.dk/blog.aspx , check the left col for 'Seneste kommentarer' (latest comments).
Anyone who's got a clue on how to fix this? Would love to get this fixed! :-) Unfortunately i just can't figure it out myself with my limited time - and this is somewhat of a pet project by now.
UmbracoBlog - BlogLatestComments.xslt not working
Greetings everyone!
Some time ago i developed a website in Umbraco 4.7; with an integrated blog via the blog-starter-kit. I went through quite a few bugs in order to get it all working, as it seems the starter-kit wasn't completely up to date on most of the xslt.
Now, my client would like to add a 'widget' displaying the lastest blog comments in the sidebar. Unfortunately, the BlogLatestComments.xslt doesn't even render in the template, and when saving the default - it throws an "Value was either too large or too small for an Int32."
I've been searching a bit, and it seems to be a common problem that this script doesn't work for the package. Yet, i have found no solutions to the problem - and i need to get this working properly. I'm thinking it might have something to do with the old xml schema - but to be honest i can't really tell the difference, as i'm not a 'pro' at xslt yet. It may also very well be that the script cant find the comments in the database. But again, i'm clueless at this point.
This is the xslt for umbBlogLatestComments.xslt:
Any help or directions would be much appreciated solving this problem. If anyone can see the error, or has been through this blog-problem before. Crossing my fingers! :)
Have a nice day.
// Thomas
Hi Thomas,
It looks like the package has its own XML format - could you try posting the raw XML output from the GetCommmentsForBlog() call? E.g.:
Note: The macro needs to run on a page of the umbBlog document type, or a descendant thereof, to work.
/Chriztian
Hello Chriztian,
Appolegies for my very slow reply, been very busy.
Making a macro with your above code results in this output on the page:
Now, i also tried visualizing the xslt via the editor:
Doing this on the umbBlog page or any decendants hereof results in a: "The XSLT didn't generate any output", whereas selecting other document-types results in an error as expected.
Could it be that the blog-package have saved the comments-incorrectly in some way; so that we're not able to retrieve them?
You can see this link for the blog by the way: http://www.fuglevang.dk/blog.aspx , check the left col for 'Seneste kommentarer' (latest comments).
Thanks.
// Thomas
Hello again everyone,
Anyone who's got a clue on how to fix this? Would love to get this fixed! :-)
Unfortunately i just can't figure it out myself with my limited time - and this is somewhat of a pet project by now.
I wish you all a merry christmas!
// Thomas
is working on a reply...