Copied to clipboard

Flag this post as spam?

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

  • Marco Lusini 176 posts 1370 karma points
    Jul 19, 2010 @ 16:52
    Marco Lusini

    Related Links with Media 3.0 released for Umbraco 4.5

    This release works with Umbraco 4.5.

    The latest release that works with Umbraco 4.0.x is 2.0.2.

    Ciao, Marco

  • bob baty-barr 1180 posts 1294 karma points MVP
    Sep 13, 2010 @ 22:04
    bob baty-barr

    i don't see an xslt example for this? please advise... the sample in the package is stil for versioni 4.0

  • Niels Kristiansen 166 posts 382 karma points
    Oct 23, 2010 @ 00:36
    Niels Kristiansen

    Here is an example to get a working XSLT version with "Related Links with Media" 3.0 :)
    I have also placed some content in the Media, that's why I call slideshowHeader, slideshowContent and so on. Hope it's useful.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [  <!ENTITY nbsp "&#x00A0;">]>
      xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
      exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">

    <xsl:output method="xml" omit-xml-declaration="yes" />

    <xsl:param name="currentPage"/>

    <!-- Input the related links property alias here -->
    <xsl:variable name="propertyAlias" select="string('your property, ex. slideshow')"/>

    <xsl:template match="/">

    <!-- The fun starts here -->
      <xsl:for-each select="$currentPage/* [name() = $propertyAlias and not(@isDoc)]/links/link">
          <div class="copy">
            <h1><xsl:value-of select="umbraco.library:GetMedia(./@link,0)/slideshowHeader"/><br /></h1>
            <p><xsl:value-of select="umbraco.library:GetMedia(./@link,0)/slideshowContent"/></p>
            <p><a href="{umbraco.library:NiceUrl(umbraco.library:GetMedia(./@link,0)/slideshowLink)}">Læs mere</a></p>
          <div class="img_bg">
            <xsl:element name="img">
              <xsl:attribute name="src">
                <xsl:value-of select="umbraco.library:GetMedia(./@link,0)/umbracoFile"/>
              <xsl:attribute name="alt">
                <xsl:value-of select="umbraco.library:GetMedia(./@link,0)/slideshowHeader"/>
    <!-- Live Editing support for related links. -->
    <xsl:value-of select="umbraco.library:Item($currentPage/@id,$propertyAlias,'')" />




    Kind regards,
    Niels Kristiansen | NIKRI

  • Amna 11 posts 31 karma points
    Apr 28, 2011 @ 12:56


    I need to remove Add intenal links and add external links from this control.

    Can any one help me? or give me source code?



  • Tom Fulton 2030 posts 4996 karma points c-trib
    Apr 28, 2011 @ 14:27
    Tom Fulton


    This datatype is now part of uComponents, which you can get the source for on Codeplex.  There's no built in option to hide link types so you'd need to do this yourself.

    However, there's also a new datatype in uComponents called the "URL Picker" that supports External Links, Media, Upload, and Content - and it allows you to turn each option on/off.  In the current release it only allows for a single link but in the source is a Multiple URL Picker which I think is working and due to be released with the next version.

    Hope this helps,

  • Amna 11 posts 31 karma points
    Apr 29, 2011 @ 09:54

    Hi can any one give me source code of "Related Links with Media 3.0"

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Apr 29, 2011 @ 14:15
    Tom Fulton

    Hi Amna,

    There is a download of the source available on the Project Page (direct link) or in uComponents @ Codeplex


  • Amna 11 posts 31 karma points
    May 19, 2011 @ 14:35

  • Tom Fulton 2030 posts 4996 karma points c-trib
    May 19, 2011 @ 14:38
    Tom Fulton

    Try checking /umbraco/config/lang/<yourlanguage>.xml

    Goto the relatedlinks section (<area alias="relatedlinks">)

    Add a new key for 'addMedia' with your translation

    Hope this helps,

Please Sign in or register to post replies

Write your reply to: