Finding incoming links
Asked by engborg:

Hello,

I have a general question in how/if the following scenario can be accomplished in Confluence.

I have 2 spaces, A and B. Pages in space A have a content-by-label macro that filter out pages in space B. What I want to accomplish is to navigate from space A by clicking on one result from the content-by-label macro to a page in space B. When I end up on the page in space B I would like to have a macro here that lists every page in space A that refers to my space B page. I.e all content-by-label macros in space A that give my space B page as a result.

I want to use content-by-label macros in space A because I do not want to use hard-links in space A to space B pages. This would lead to too much maintenance. (Otherwise I could have just used the "incoming-links" information on the page.)

Do you know if this can be accomplished? Or is there a better approach to achieve this navigating functionality?

In the long run, I probably would like to involve more spaces with pages that refer to each other.

Hoping for a reply.

Regards,

/Tomas


Answers:
author: Andy Abate
body: Late to the party, but I was able to make this work with an Including Text filter for the current page's short url in the content-by-label macro. The macro will only return pages which link to the current page using the short url (so you need to be rigorous about only using that one).

It's not clean, and I would rather the tool be built in (Confluence already has incoming links functions, you can see it when you try to delete a page), but this does work.


author: Andrew Frayling
body: Hi Mary,

You should be able to just install the OBR file via the Confluence user interface. Have a look at "Installing by file upload" in the doc at <https://confluence.atlassian.com/display/UPM/Installing+Add-ons>

Cheers,

Andrew.

comments: author: Mary Decker
body: Thank you, Andrew!


author: Andrew Frayling
body: Hi Mary,

You should get an OBR file which can be installed the same as a JAR file. This is the direct link to the OBR <https://marketplace.atlassian.com/download/plugins/net.customware.confluence.plugin.linking/version/68>

Andrew.

comments: author: Mary Decker
body: Thanks Andrew! So, what program should I use to run the obr file?


author: Andrew Frayling
body: Hi Tomas,

Would [Customware's Linking Plugin](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.linking) work for what you want to do? It has an [{incoming-links} macro](http://wiki.customware.net/repository/display/AtlassianPlugins/incoming-links) which will display links to the page you are viewing. Not sure if it allows you to restrict the links to those from a particular space though.

Andrew.

comments: author: engborg
body: Hi Andrew,

Thanks for your comment. I have looked at that plugin, but to my understanding that plugin uses the "incoming links" information on a page. That is, I would need to "hard-link" all my page references for that to work. Which I do not want to do. I want a more generic way to point out pages; for instance by the content-by-label macro.


author: Mary Decker
body: Hi Andrew,

I downloaded the plugin, but I'm not sure how to install it. I get a .key file. What do I do with it? :-P

Thanks,

Mary


Tags: email

link