Hello,
We are building a portal on top of Confluence and would like to enhance the search results with additional information.
For every search result item (page or attachment), we would like to display the 1st level parent page this item belongs to.
For example, we have the following hierarchy of pages:
* DOCUMENTATION
* * User Guides
* * * User Guide 1.pdf (attachment)
* * Technical Guides
* VIDEO LESSONS
* * Video Lesson 1
If a User Guides page or User Guide 1.pdf attachment is present in the search results, we would like to show a tag next to it saying that it belongs to the 'Documentation' section (sections always being 1st level pages in the hierarchy under the root page of Confluence content).
Couple questions:
1. When an attachment is found in search results, is it possible to use its attributes somehow to find the page it belongs to (by ID in URL or similar)?
2. If we know a page, it is possible to trace its hierarchy somehow (for example, using API) to find the 1st level ascendant?
Thank you!
Anton
This is NOT an answer!
It is an end of 2020 and it seems that this trivial but very important aspect has not been addressed by Atlassian at all. We have a site which contains a directory structure of addresses, and we attach various documents associated with each address. We want to search for some documents and know which address they belong to, however, that does not seem to be possible in Confluence (or at least I have not found a way how to do that) without then clicking on each found document and looking in the path above. Why is the found document parent or even the whole path not included in the found result? Why cannot I chose them to be included as an optional choice?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.