Hi,
I like to write a user macro to show a list of outgoing links from the current page.
I try something like this:
#foreach ($olink in $action.getOutgoingLinks())
$olink.getLinkTitle()
#end
No result. Need some help.
Regards
Manfred
The outgoingLinks() function is on the ContentEntityObject.
Therefore you have to use:
<ul>
#foreach ($olink in $content.getOutgoingLinks())
<li>$olink</li>
#end
</ul>
Regards, Dominic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.