Way to hide wiki pages from the TOC?

LabKey Support Forum (Inactive)
Way to hide wiki pages from the TOC? jdutra  2011-04-21 08:18
Status: Closed
 
I have a project with many wiki pages that comprise a user interface. Most of them should not be accessed directly - they will be called from other wiki pages with appropriate parameters, etc. I assumed when I started that it would be easy to hide the extra pages from users, but I can't figure out how to do it. Is there a way?

TIA,
Jen
 
 
eknelson responded:  2011-04-21 13:42
Hi Jen,

Outside of a portal page (the home page of a folder), currently there is no quick way to display a wiki page without its TOC.

There is one workaround:

If you're working on a file-based module, you should be able to include an HTML page that uses LABKEY.WebPart to display a web part that shows just the wiki main text. You'd use 'Wiki' as the partName.

The relevant docs:
https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/LABKEY.WebPart.html
https://www.labkey.org/wiki/home/Documentation/page.view?name=webPartConfig

Your question was covered in greater detail here:
https://www.labkey.org/announcements/home/Developer/Forum/thread.view?rowId=4964

and resulted in the opening of this tracking bug:
https://www.labkey.org/issues/home/Developer/issues/details.view?issueId=11883

Thanks,
Elizabeth
 
jdutra responded:  2011-04-21 13:56
Thanks for your help, Elizabeth, but I think there are two different issues here. The one you reference is about displaying a wiki page without the TOC next to it, correct? What I'm actually looking for is a way to have wiki pages that are not listed in the TOC, because I don't want users to access them directly (users will get to them from a link on another page).

Since I posted this, I found an issue that I think matches what I am looking for, but it seems like it may have been tabled:

https://www.labkey.org/issues/home/Developer/issues/details.view?issueId=7089

Thanks,
-Jen
 
Ben Bimber responded:  2011-04-21 14:00
hi jen,

the way i do this in our site is to make a separate subfolder and put the 'private' pages there. you can embed these pages from within other wiki pages. it's very inelegant, but it should work.