Copied to clipboard

Flag this post as spam?

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


  • Alexandru 112 posts 272 karma points
    Sep 30, 2013 @ 09:00
    Alexandru
    0

    How to calculate time since blog-post has been uploaded

    Hello, I am working on a blog and I am looking for a way to display time since a blog post has been posted.

    Is there any such package that can help me out with this? If not has anyone ever done it before in XSLT?

    Thank you!

  • Mads Jørgensen 74 posts 226 karma points
    Sep 30, 2013 @ 09:13
    Mads Jørgensen
    0

    Hey,

    Try to have a look into uComponents date extension:

    could be something like: http://ucomponents.org/xslt-extensions/dates/#age

  • Alexandru 112 posts 272 karma points
    Sep 30, 2013 @ 09:40
    Alexandru
    0

    This might fit my needs but I am having trouble using the package.

    I get errors when I try to use any of the datatypes.

  • Mads Jørgensen 74 posts 226 karma points
    Sep 30, 2013 @ 09:54
    Mads Jørgensen
    0

    I'm affraid you'd have to be a bit more specific mate!

    What version of Umbraco are you running?

    If it's v. 4. x you should use a fitting version of uComponents, as it's not all versions fitting v. 4 x's

    Hope that can help you out a bit there!

  • Alexandru 112 posts 272 karma points
    Sep 30, 2013 @ 09:58
    Alexandru
    0

    Sorry,

    I am using 6.1.5.

    This is what I get when I am trying to use the age thing:

    System.Xml.Xsl.XslLoadException: Prefix 'ucomponents.dates' is not defined. An error occurred at C:\Users\Alexandru\Downloads\JournalistsFinal 1.3\xslt\635161317970692298_temp.xslt(172,6).

    Note that the xsltExtensions.config file is updated as required.

Please Sign in or register to post replies

Write your reply to:

Draft