Embedded links with page number
Last updated
a.embedded-page-link::after{
content: "("target-counter(attr(href), page, decimal)")";
}## @noparams
#if ( $renderContext.getOutputType().toLowerCase() =="pdf" )
#set($outputHtml= $body.replaceAll(">.*</a>","></a>").replaceAll("<a href=", "<a class='embedded-page-link' href="))
#else
#set($outputHtml = $body)
#end
$outputHtmla.embedded-page-link-see::after{
content: "See on page: " target-counter(attr(href), page, decimal);
}a.embedded-page-link-check::after{
content: "Check " target-counter(attr(href), page, decimal) " page.";
}