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
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
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
NB The UI for the data type is in debug mode :-)
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
is working on a reply...
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.