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
Hi @Manfred Mütze
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
Hi Dominic,
thank you again.
It works perfect.
It looks like you're new here. Sign in or register to get started.