Copied to clipboard

Flag this post as spam?

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


  • Sebastian Dammark 581 posts 1385 karma points
    Sep 05, 2013 @ 23:49
    Sebastian Dammark
    0

    Link to document on another tab ?

    Usually I hide the properties tab since it contains stuff that a regular editor shouldn't be bothered with.
    But in this situation I need the "Link to document" link.

    Is there a package that enables me to create a "Link to document" on another tab ?

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 7x admin c-trib
    Sep 06, 2013 @ 00:16
    Chriztian Steinmeier
    101

    Hi Sebastian,

    You can do that with the help of uComponents' Render Macro DataType and this little XSLT macro - just create it like any other macro and select it in the Render Macro datatype. Then create a property on the DocumentType(s) where you want to show it:

    <?xml version="1.0" encoding="utf-8" ?>
    <xsl:stylesheet
        version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:umb="urn:umbraco.library"
        exclude-result-prefixes="umb"
    >
    
        <xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />
    
        <xsl:param name="currentPage" />
    
        <xsl:template match="/">
            <a href="{umb:NiceUrl($currentPage/@id)}" target="_blank"><xsl:value-of select="umb:NiceUrl($currentPage/@id)" /></a>
        </xsl:template>
    
    </xsl:stylesheet>
    

    /Chriztian

  • Sebastian Dammark 581 posts 1385 karma points
    Sep 06, 2013 @ 00:18
    Sebastian Dammark
    0

    SNEAKY ...

  • Sebastian Dammark 581 posts 1385 karma points
    Sep 06, 2013 @ 00:28
    Sebastian Dammark
    0

    Again uComponents saves the day ...

Please Sign in or register to post replies

Write your reply to:

Draft