Question
Is there any way to "hide" a topic on the
WebIndex? I don't want things like the
FlexibleSkinStyleSheet showing up.
- TWiki version: 01 Feb 2003
- Perl version: 5.6.1
- Web server & version: Apache/1.3.27
- Server OS: Linux pluto.dnsuniverse.net 2.4.20-13.7
- Web browser & version: Mozilla 1.3
- Client OS: Windows Me
--
JasonTromm - 17 Jun 2003
Answer
As far as I know, there's nothing to be done about this.
WebIndex and
WebTopicList simply shows all the topic files in the directory. Even setting per-file permissions to
DENYTOPICVIEW won't help you because the
WebIndex is not viewing that topic, only linking to it. (Aside: I don't know if it will show the summary for such protected pages, but I think it will.)
If you're trying to hide your skin files, perhaps it's an idea to put them out of sight, in the TWiki web rather than in the Main web, or however your setup is. Of course, they would then still be listed in the TWiki
WebIndex...
--
TorbenGB - 17 Jun 2003
I've solved a similar problem, which may or may not help.
On the
WebHome page I needed a summary but the "Web*" topics were to be excluded.
I've tried two techniques.
Search by Classification: This assumes you are using forms and the classification mechanism.
Search With&bnsp;Exclusion Pattern: I use this to exclude topics that begin "Web..."
%SEARCH{search="^([^W]|W[^e]|We[^b]|Web[^A-Z])" ....
Please note: You may have to deal with topics that are someone's name, such as "WebsterBrown"
Given this, you may decide it is worth replacing the seach statement in WebIndex. YMMV.
I can't claim originality for this. After playing with a few ideas I asked
PeterThoeny and he showed me that technique.
If you
do go for the Classification method, I suggst you use MetaSearch rather than Search.
--
AntonAylward - 17 Jun 2003
One of the consequences of
NoBumpyCase will be to have a way to create a special
WikiWord link which could be eliminated by prefix _, like _web_home. It's just an idea, no patch even in the plans - nobody was interested at the time.

Patterns Twiki (from
PatternSkin) uses _ to define
WikiWord links
--
PeterMasiar - 18 Jun 2003
I looked at the %METASEARCH% variable and it doesn't look like there's any way to search by TopicClassification. Is there an undocumented feature I'm not seeing?
--
JasonTromm - 19 Jun 2003
Example: The following searches the 5 most recent support questions that have been asked:
%SEARCH{ "META:FIELD.*[S]upportStatus.*value\=.[A]skedQuestions" casesensitive="on" regex="on" nosearch="on" noheader="on" nototal="on" order="modified" reverse="on" limit="5" }%
which returns this:
Question When I use ProjectPlannerPlugins to create a new project, there is the error: `TWiki detected an internal error please check your TWiki logs and webserver...
You can also do AND searches, delimited by semicolon. See
TWikiInstallation for a query by example example.
--
PeterThoeny - 19 Jun 2003
In theory the "excludetopic" option with the list of topics begining "Web..." should generate just the list of 'real' topics.
In practice when I run
%SEARCH{text=".*" \
web="%INCLUDINGWEB%" \
format="[[$topic]]" \
scope="topic" regex="on" nosearch="on" \
excludetopic="WebChanges,WebHome,WebIndex,WebLeftBar,\
WebNotify,WebPreferences,WebRss,WebSearchAdvanced,\
WebSearch,ebStatistics,WebTopicList"\
}%
it doens't give me what I expect:
ALLOWWEBVIEWcannotSearch
ARGPullingMyHairOutConfigureBroken
ASimpleSearchFormOnTheMainPage
AUTOINCNotChoosingNextNumber
AboutTWikiSupport
AbsoluteUrl
AbyssUserAuthentication
AccentInFilenames
AccessChangeOops
AccessCheckErrorNoUser
AccessCheckForChangeIssue
AccessConfigurefile
AccessControl
AccessControlAndPermissionIssues
AccessControlBasedOnHttpHeaderValues
AccessControlConfusion
AccessControlForHierarchicalWebs
AccessControlForTopicAndSubWebs
AccessControlHierarchicalWebs
AccessControlIssue
AccessControlIssueApache
AccessControlOnSpecificPartsOfPage
AccessControlProblem
AccessControlQuestion
AccessControlSettingsDontTakeEffect
AccessControlToTemplates
AccessControlToTopics
AccessControlandMailerContrib
AccessControlnotworking
AccessDataFromExternalPage
AccessDenied
AccessDeniedAfterMainWebRenamed
AccessDeniedOnAttachments
AccessDeniedSeenInErrorLog
AccessForbiddenOnConfigure
AccessGroupViewOkButEditKo
AccessPermissions
AccessProblemRememberLoginWikiName
AccessRestrictionByIPAddress
AccessRestrictionsVersusTWikiSearch
AccessRights
AccessStatsPlugin
AccessTemplateVarsFromPlugin
AccessingMySqlTablesInTWikiUsingDakar
AccessingTWikiWithoutNetwork
AccessingTopicVariablesinTemplates
AccessingTwikiAttachmentThroughLink
AccidentallyOverwritingChangesWhenLockExpires
AccountLedgerApp
AcessDeniedInPerlScripts
ActionNotifierIssueWithGNUGrepForWin
ActionNotifyErrorCantUseString
ActionNotifyErrorOnDakar
ActionNotifyLinksMalformed
ActionNotifyStdAttrsOnly
ActionSearchGrepIssue
ActionSearchinActionTrackerPlugin
ActionTrackNonstandardAttribDropMenu
ActionTracker500Error
ActionTrackerActionSearchProblems
ActionTrackerActionTypesAndDefaultValue
ActionTrackerAndMultipleAssignees
ActionTrackerBadAttrList
ActionTrackerBreaksCairoWebHomeTopics
ActionTrackerBreaksTable
ActionTrackerCloserAndClosedBugs
ActionTrackerCloserEmpty
ActionTrackerConfigError
ActionTrackerCouldNotFindTemplateEdit000001
ActionTrackerDoesntExpandAttributes
ActionTrackerEditDeletesTopicContent
ActionTrackerEditFails
ActionTrackerEditLink
ActionTrackerEditLinkOpensPageEdit
ActionTrackerEditLockControl
ActionTrackerFunctionGetGMDateError
ActionTrackerHasEmptyEditWindow
ActionTrackerImproveNotifyFormatting
ActionTrackerJSCalendarNotWorking
ActionTrackerLdapDeepRecursion
ActionTrackerNewbie
ActionTrackerNotResolvingNames
ActionTrackerNotStarting
ActionTrackerNotTranslatingTwikiWord
ActionTrackerPCreatedByMeButNotForMe
ActionTrackerPlugin
ActionTrackerPluginActionSearchesDue
ActionTrackerPluginAndRcsLite
ActionTrackerPluginBadDateProblems
ActionTrackerPluginClosingDate
ActionTrackerPluginEditCorruptsData
ActionTrackerPluginEditFails
ActionTrackerPluginFailsOnNew
ActionTrackerPluginFixesAndLittleAddition
ActionTrackerPluginHelp
ActionTrackerPluginInstall
ActionTrackerPluginInstallDoesNotWorkNewbieQuestion
ActionTrackerPluginInstallProblem
ActionTrackerPluginIsNotWorking
ActionTrackerPluginLazyInitError
Number of topics: 100
limited to first 100 results--MW
--
AntonAylward - 26 Oct 2004
I'd also like to be able to hide topics, e.g. from a search. My
ItemToDoForm topic comes up in lots of searches (because it has the names of all the categories), but users don't care about it. I'd like to be able to set a property/metadata on that page to have search ignore it. Not a big deal, but it'd be nice to streamline the user experience.
--
GaryOberbrunner - 17 Feb 2005
As much as I hate to do this, I also would like to know how to restrict topics from the left bar. I have Movable Type incorporated as a weblog in twiki, I have the MT menu and sitemap separate from the twiki one. I would like to remove the MT entries from the topic list...
--
BruceRProchnau - 18 Feb 2005
To fix Anton's search remove the
text at the very beginning:
%SEARCH{".*" ...}%
--
MattWilkie - 18 Feb 2005
I have 4.02, and it looks to me (I tried it, and it worked), that if you change the line in TWiki.pm, inside the "foreach my $item" loop in "sub TOPICLIST" from
push(@items,$line);
to
if( $this->security->checkAccessPermission ( 'VIEW', $this->{user}, undef, undef, $item, $web ) ) {
push( @items, $line );
}
that it seems to perform the access check just fine. In my case,
TWikiGuest does not see the item(s) with DENYTOPICVIEW in the TOPICLIST.
--
SusanCassidy - 10 Mar 2008