Why can't we create 2 pages with the same name under a Space ?

Hi,

Why can't we create 2 pages with the same name under a Space ? It is hard when desining a big wiki structure to know all the pages names in advance. It would be really nice that 2 pages under a different parent can have a different name.

Any guidelines about Spaces creation vs preventing same name for pages ?

Seb.

3 answers

1 accepted

Seb,

Here is a more elaborate example. This creates a journal entry that is dated, has fixed string included as well as a string defined with metadata on the page.

{text-data:Prefix}EXPR{text-data}
----
h2. Create New Journal Entry

{add-page:template=JournalEntry| parent=@self| prefix=%data:Prefix% Journal Entry %global:current date > date:yyyy-MM-dd% }Click to add new journal entry{add-page}

You can't have duplicate names because Confluence provides the wonderful capability of preserving hyperlinks to pages even when that page moves around in the space. It is keyed off of the page name. It does this by associating the name with an ugly page ID. One name to two IDs would break the system. With a hyperlink to the named page, which one would you have Confluence choose to go to?

One approach is to go wide with space creation.

Another option is to use unique prefixes to create page names, so that hierarchical names cascade down to descendents. One mechanism is to apply unique name/date/timestamped names using the {add-page} macro. So, each parent leaves his mark on his children, in a sense.

You need to fully specify you pages. We use prefixes. Instead of a plain "Requirements" page defined by its point in the hierarchy, we have "Microsoft Office - Requirements", "Landesk - Requirements", and so on. All the Pages under "Microsoft Office" will have the prefix.

This works well with search too.

Thx.

Kevin, About the unique name/date/timestamped names using the {add-page} macro. Do you mean manually put the date and time or there is an "Add-page" macro for that ? Cause I can't find that macro.

Seb.

found it in the plug in page..

The solution is to not use the page name as the page ID/key. They need a separate "Display Name" field.

FYI, there is some thorough discussion of this issue here:

https://jira.atlassian.com/browse/CONF-2524

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

708 views 21 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you