Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

What is the page id in Confluence Database schema?

Rahu May 22, 2015

I want to do so because I want to add a table to the DB and use the page as the foreign key.

 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 23, 2015

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

  • you could store something in the page, wrapped in a macro
  • you could use active objects
  • you could wrap your own database tables in code

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.

Username May 23, 2015

@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.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 24, 2015

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

Username May 24, 2015

Thanks @a display name

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 22, 2015

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,

TAGS
AUG Leaders

Atlassian Community Events