I want to add a table of content macro and some other elements into each page I create in confluence.
Hello @Shrijal Pradhan ,
You can write the addon to listen toevents of Page Creation and then add ToC to page.
For Connect:
https://developer.atlassian.com/cloud/confluence/connect-modules/#listen-for-events-and-automate-integrations-with-webhooks
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
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
It looks like you're new here. Sign in or register to get started.