Copied to clipboard

Flag this post as spam?

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


  • Christian Palm 276 posts 271 karma points
    Nov 18, 2009 @ 23:41
    Christian Palm
    0

    Need help, developing new Link DataType

    Hi

    I'am in the progress of developing a new Link DataType.
    http://screenr.com/7s2

    With the datatype the webmaster can enter the following details: Text, Type (pace, media or external link) and url/NodeId,MediaId (depending on the type)

    The output for the datatype will be: <link type="nodeId" value="1581" text="Go to archive" />
    And the xslt helper can be called:
    <a href="link:GetLinkUrl($currentPage/data [@alias='Link'])">
     <xsl:value-of select="link:GetLinkText($currentPage/data [@alias='Link'])" />
    </a>

    Any way, I need help on how to get the media name and filename via ajax?
    In the UI I wan't to show the media name and filename when the have choosen a media via TreInit.aspx
    I can get the media name via umbraco.presentation.webservices.legacyAjaxCalls.GetNodeName(int nodeId) but how do I get the filename?

    If there is more efficent way to get media information please let me know :-) it would love a  webservices.jsonService.GetNode(int nodeId

     

    Cheers

  • Christian Palm 276 posts 271 karma points
    Nov 18, 2009 @ 23:45
    Christian Palm
    0

    NB The UI for the data type is in debug mode :-)

  • mfeola 117 posts 221 karma points
    Jun 04, 2010 @ 18:11
    mfeola
    0

    Were you able to complete your data type? I made something similar using the related links module as a basis and removing the ability to add more than one item to it. The only problem I had was when I finished for some reason the Ultimate Picker datatype stopped working.  I haven't had time to figure out why this happened but because of it I have not put my datatype on a new umbraco site in a while.

    Still, I would like to try yours out and see how it came along

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies