Question
I am having trouble understanding how variables are set, how FLEXWEBLIST works and some other details.
Background: I just installed the Nat skin for twiki and got it running. Looks great. How ever I can not add a topic unless I modify the URL (/WebTopicCreator?parent=WebTopicCreator), there is no "Create topic" link for the skin. I was able to find the side bar file (
TWikiWebSideBar.txt), wow there is a lot there.
I would like to do the following:
Set a variable to indicate a user is logged in. If a user is NOT logged in only show certain web, I can so this using webs. When so try to set a variable in the side bar file it is shown on the screen and not set. " * Set SOMEVAR = test" is shown as "Set SOMECAR = test" on the screen.
I would like to add a "create new topic" link to what is returned from FLEXWEBLIST.
Thank you
Environment
--
JamieBohr - 05 Dec 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
I think you are on the wrong road looking at FLEXWEBLIST when you want to make the customizations you outlined above. Here are my suggestions:
- Hiding certain webs from not authenticated users: edit the WebPreferences of those webs and set DENYWEBVIEW = TWikiGuest. Read more at TWikiAccessControl.
- Adding a link to create a new topic: edit
TWiki.TWikiWebLinks and add [[WebTopicCreator][Create new topic]]; this will show up in the sidebar then. Read more at NatSkinPlugin.
--
MichaelDaum - 05 Dec 2006
Perfect answer. Everything works great and my manager is pleased, which is always a good thing.
--
JamieBohr - 08 Dec 2006