Hi,
I use an user-macro to display a floatting toc (https://gist.github.com/Poil/dac77d2966491818dd898910754cc6da)
But when I include a page that have this user-macro, I don't want to have this macro displayed.
Is there anyway in a user-macro to detect if the current page is included in another one ?
Best regards
Ok, I've got it
#if ($content.id == $globalHelper.getPage().id) ## my toc-right code #end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.