Page link using custom tags
<p>Custom tag Page
link: <tridion:PageLink pageURI="tcm:83-3242-64"
linkText="Click me" textOnFail="true"
anchor="" linkAttributes=""/></p>
Page link using Java objects
<%
PageLink pageLink = new PageLink(83);
String linkAsString = pageLink.getLinkAsString(3242, "", "", "Click
Me", true);
out.write("<p>Page link: " + linkAsString + "</p>");
Link link = pageLink.getLink(3242);
if
(link.isResolved()) {
out.write("Page link resolved: " + link.getURL());
} else {
out.write("Page link NOT resolved");
}
%>
Comments