Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS: Mac OS 10.4
Web Browser: Firefox
Categories: Search

-- XochipalaValdez - 02 Feb 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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>&nbsp;$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%\" />&nbsp;%$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

 
Change status to:
Topic revision: r9 - 24 Mar 2007 - 06:14:09 - PeterThoeny
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback