Question
I would like to create a customize weblist, actually just like my WIKIWEBLIST. But I want it to look like the % WEBLIST % that gets generated with web-colored icons like in the shipped
WebLeftBarWebsList. I want an order that is not alphabetical and does not include all of the webs in the site.
Is there a way to do this using the WIKIWEBLIST?
Environment
--
XochipalaValdez - 02 Feb 2007
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 figured out the answer.
Created a new topic--
VisibleWebs
* *%MAKETEXT{"Webs"}%*
%WEBLIST{" * <a href=\"%SCRIPTURLPATH{"view"}%/$name/%HOMETOPIC%\"><img src=\"%ICONURL{web-bg}%\" border=\"0\" alt=\"\" width=\"16\" height=\"16\" style=\"background-color:%$markerVAR{\"WEBBGCOLOR\" web=$qname}$marker%\"></span> $name" webs="Web1, Web2, Web3, Web4"}%
The in the
WebLeftBar
%INCLUDE{ "%TWIKIWEB%.VisibleWebs" }%
--
XochipalaValdez - 02 Feb 2007
I thought i had it but it is not exactly what I want. I still want the webs list to be displayed according to access priviledges. When set to webs="public" then only the webs a user is authorized to view show up in the list. But when I specify the webs, they all show up no matter what authorization the use has. Is there any way to evaluate the specified webs for authorization? The other workaround for me would be if at least the order of the webs="publc" could be specified rather than the default alphabetical order. I could use that with NOSEARCHALL=on for non-public webs. Thanks
--
XochipalaValdez - 04 Feb 2007
Am trying to get this running too, the best I can come up with is using
IFDEFINED
for example
%IFDEFINED{ "Main.NameOfGroup" glue="off" then=" * [[SomeWeb][Title]]"}%
That works, if I remember correctly. Another way is...
%IFDEFINEDTHEN { "Main.NameOfGroup" glue="off" }%
* LinkToWeb
%FIDEFINED%
Should work.
To create a customised sidebar for a particular web, create a WebLinks in NameOfWeb then stick all the stuff in. You can also use
%INCLUDE%
--
KwangErnLiew - 10 Feb 2007
That IFDEFINED doesn't work at all. My bad. Or maybe I did it wrongly.
I kinda
double posted here :/
--
KwangErnLiew - 10 Feb 2007
Have a look at the
FlexWebListPlugin.
--
MichaelDaum - 11 Feb 2007
Hi Michael. I have been trying to work with
FlexWebListPlugin, but I am still having trouble. I am not a programmer but I am determined because TWiki is what I need and I have managed to figure out a lot of things by studying other people's examples. There is a link for Flex Web examples on the Plugins page but it is not correct. Here is what I would like to accomplish.
To list the webs in hierarchical order with subwebs slightly indented and only webs listed that the user is authorized to view. I would like the same web colored icons to be produced as with the standard weblist command. I would however like the list to be in alphabetical order according to DISPLAYNAME that is set as a marker in Web Preferences. Here is how the code looks in weblist for using the DISPLAYNAME.
%WEBLIST{" * <a href=\"%SCRIPTURLPATH{"view"}%/$name/%HOMETOPIC%\"><img src=\"%ICONURL{web-bg}%\" border=\"0\" alt=\"\" width=\"16\" height=\"16\" style=\"background-color:%$markerVAR{\"WEBBGCOLOR\" web=$qname}$marker%\" /> %$markerVAR{\"DISPLAYNAME\" web=$qname}$marker%" webs="public"</a>"}%
--
XochipalaValdez - 12 Feb 2007
Sorry, closing this question after more than 30 days...
--
PeterThoeny - 24 Mar 2007