Community moderators have prevented the ability to post new answers.
Ok, on the back of the updated question, the answer is now "no, you don't". Generally, if you want to store extra data for a page, then you should be looking to do it by writing an addon to do it. An addon has three options for storage
In all three cases, you really do not care about the page id in the database - your code will have direct access to it in the API, and your read/writes will be abstracted too.
@a display name Can you please tell me about each of the options to store data? Are there tutorials for each? I am a beginner to confluence dev, I would appreciate your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The first option really is what I said - your data is in the page. The third one means writing a full addon with its own set of database objects and interfaces to them. For most of this work, start at https://developer.atlassian.com/confdev/confluence-plugin-guide/writing-confluence-plugins and for the active object stuff, also see https://developer.atlassian.com/docs/atlassian-platform-common-components/active-objects/getting-started-with-active-objects
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's the unique identifier for the current page.
I'm not sure I can tell you more than that - I don't understand the story you're working towards,
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.