I want to add a table of content macro and some other elements into each page I create in confluence.
Perhaps you could create a page template with all the elements you might want and always select that when creating a new page.
Then, you can remove any elements you don’t want/need as you build out the page.
Here’s a video my team made about creating great templates, in case it helps: https://youtu.be/IkRmyUCnRDo
Hello @Shrijal Pradhan ,
You can write the addon to listen toevents of Page Creation and then add ToC to page.
For Connect:
2) Also you can use ScriptRunner (https://marketplace.atlassian.com/apps/1215215/scriptrunner-for-confluence?hosting=cloud&tab=overview) to create Listener that will add the ToC to page:
https://docs.adaptavist.com/sr4cc/latest/features/script-listeners
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.