How to Hide an Inclusion Library from the {recently updated} and the {livesearch} macros ?

Hi,

I'm building a knowledge base and my article templates are based on {include page} parts.

I planned to have those parts as pages in an 'inclusion library' as explained at https://confluence.atlassian.com/display/DOC/Creating+your+Technical+Documentation+Space#CreatingyourTechnicalDocumentationSpace-Step5.CreateanInclusionsLibrary

My inclusion library is stored at the root of my Wiki and the restriction set on the pages under the _InclusionLibrary are only restricted in edition.

Unfortunatelly, those parts then appear in my LiveSearch and in my RecentlyUpdated results.

How should I proceed to avoid that ?

Thanks,

Pierre

4 answers

1 accepted

0 votes
Accepted answer

OK. I got my Confluence site upgraded so I can Archive a space.

It is a workable solution.

Thanks.

Pierre

I think that is not possible. If you restrict the page, the includes wouldn't work anymore.

-Stefan

Thanks.

It is a bit painful. Anyone wanting to build a professional looking KB should base it on templates but those templates should not appear to the end users in the search results or the other lists.

Anyone else having an idea or a trick to share ?

Hallo zorglups

It's not possible to hide the pages from the search if they're in the same space. One trick may be to put your inclusion library into a different space. They then won't appear in search results that are specific to your main content space.

You can configure the Documentation theme so that it shows search results from the current space only. (This does not affect the LiveSearch macro.)

Taking it a step further, you can try archiving the space that contains your inclusions library. I don't know for sure whehter archived spaces are hidden from the LiveSearch macro. They are certainly hidden from the main search, the pagetree search, and various dropdowns in the editor and in selection menus.

The ability to archive a space is new in Confluence 4.3:

https://confluence.atlassian.com/display/DOC/Archiving+a+Space

Let me know how this technique works for you. I've been planning to blog about it, but just haven't had time yet. :)

Cheers, Sarah

Hallo Pierre

You can't hide the second space entirely, because then, as you've pointed out, the readers woudn't be able to see the content in the main space.

The problem is a little mitigated by the fact that the Inclusions Library is at the root of the space - so ordinary readers won't the see pages. And now, using space archiving, you can also hide the content from the search.

Here's a blog post I did, about a space where I did just that (except that I haven't archived the space, because space archiving was not available at that time):

http://ffeathers.wordpress.com/2011/04/03/content-reuse-on-a-wiki-a-case-study/

There's a link in the post to the space (USERMAN) so you can see what it looks like.

Cheers, Sarah

Thanks. I'll be upgrading to 4.3 soon. I moved all my template parts to another space that I will archive to hide it.

Hi Sarah,

I thought about the second space. My problem was that I think the second space needs to be viewable by my readers and this is a bit a mess. I would have preferred to find a way to hide a page but still be able to include it in other pages.

Maybe I could use a TemplatePage which a user has no right to see or modify.

{cache:index=true}
{include:TemplatePage}
{cache}

The following page reports that the {cache} macro bypasses the restrictions.
http://ffeathers.wordpress.com/2011/05/15/making-the-include-macros-content-appear-the-confluence-search-results/

Is there a way to have the pages of a space readable by a user but the space itself hidden ???

Best regards,

Pierre

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,114 views 17 14
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