Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

In multiexcerpt include, refer to a page by its ID vs title or url

Chris Cilino
Contributor
August 9, 2018

In the multiexcerpt include macro html i see the following

<ac:structured-macro ac:macro-id="17f947d4-23a0-408b-b675-2b03a315d2eb" ac:name="multiexcerpt-include" ac:schema-version="1">
<ac:parameter ac:name="MultiExcerptName">[Name]</ac:parameter>
<ac:parameter ac:name="PageWithExcerpt">
<ac:link>
<ri:page ri:content-title="[Page title]"/>
</ac:link>
</ac:parameter>
</ac:structured-macro>

 

Is there another ri:page like "ri:page ri:content-ID"? I'm trying not to use page titles as they can change whereas the id stays constant. Or is there another  <ac:parameter ac:name="PageWithExcerpt"> like <ac:parameter ac:name="PageIDWithExcerpt">

1 answer

0 votes
Christoph Lechleitner
Contributor
November 6, 2018

I second that question.

I've just made some tests:
If a page, say "A" is renamed, say to "B", any links to that page, say in page "C", are updated (also the link text "A" to "C" if it was equal to the previous name of the target page, i.e. "A").
BUT: If page "C" is beeing edited while page "A" is renamed, and page "C" gets links to "A" during that edit, those links are NOT always updated. It may depend on wether the link texts of those links to "A" are altered from "A", or on wether there have been links to "A" in "C" before that edit of "C" started, or on something else, but we definitely have cases with dead or let's say half-dead internal links that confluence tries to resolve based on name similarities.

Conclusion:
This is insane!
How can links to other pages not be based on the artifical and forever-unique object ID of the target page? This is rule 1 of hypertext systems.

Even in our small installation with about 6 active users, pages are edited and created and renamed concurrently all the time.

Confluence should at least get an according option, like a configuration option or something in the link creation dialog.
And, of course, a means to search for such half-dead links and repair them.

PS: Heres the current markup documenation rg. page links: https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html#ConfluenceStorageFormat-Links

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events