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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.