Binary links using custom tags
<p>Custom tag Binary link: <tridion:BinaryLink binaryURI="tcm:83-3247" linkText="Click me" textOnFail="true" anchor="" linkAttributes=""/></p>
Binary links using Java objects
<p>Custom tag Binary link: <tridion:BinaryLink binaryURI="tcm:83-3247" linkText="Click me" textOnFail="true" anchor="" linkAttributes=""/></p>
Binary links using Java objects
<%
BinaryLink binaryLink = new BinaryLink(83);
String
linkAsString = binaryLink.getLinkAsString("tcm:83-3247", "", "Click
Me", "", true);
out.write("<p>Binary link: " + linkAsString + "</p>");
Link link
= binaryLink.getLink("tcm:83-3247", "", "", "", false);
if
(link.isResolved()) {
out.write("Binary link resolved: " + link.getURL());
} else {
out.write("Binary link NOT resolved");
}
%>
Comments