cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Configuration: Answered

Indent subwebs names using FlexWebListPlugin

As I mentioned in Question1687 I have an issue with indentations in WebLeftBarWebsList.

I used following code to generate list of webs:
%FLEXWEBLIST{
   exclude="(Main|NewPeople|System|Trash).*"
   format="$indent   * <img src=\"%ICONURL{web-bg}%\" border=\"0\" alt=\"\" width=\"16\" height=\"16\" style=\"background-color:%$markerVAR{\"WEBBGCOLOR\" web=$qname}$marker%\" /> [[$web.%HOMETOPIC%][$name]]$n"
   markerformat="$indent   * <img src=\"%ICONURL{web-bg}%\" border=\"0\" alt=\"\" width=\"16\" height=\"16\" style=\"background-color:%$markerVAR{\"WEBBGCOLOR\" web=$qname}$marker%\" /> 
     [[$web.%HOMETOPIC%][<span class=\"foswikiAlert\">$name</span>]]$n"
   selection="%BASEWEB%"
}%

When I open this topic - subwebs are properly indentented.

However, webs displayed on left side-bar are not indented at all.

Why? How can I fix that?


When I use Weblist instead, sub-webs are indented in both - left side bar and when I view WebLeftBarWebsList topic
%WEBLIST{"   * <span style=\"white-space:nowrap\"><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;<nop>$indentedname</a></span>"}%

-- MateuszKDzior - 06 Oct 2015

I fixed this by giving
&nbsp;<nop>:


%FLEXWEBLIST{
   exclude="(Main|NewPeople|System|Trash).*"
   format="$indent   * <a href=\"%SCRIPTURLPATH{"view"}%/$web/%HOMETOPIC%\"><img src=\"%ICONURL{web-bg}%\" border=\"0\" alt=\"\" width=\"16\" height=\"16\" style=\"background-color:%$markerVAR{\"WEBBGCOLOR\" web=$qname}$marker%\" />$indent&nbsp;<nop>$indent&nbsp;<nop>$name</a>$n"
   markerformat="$indent   * <a href=\"%SCRIPTURLPATH{"view"}%/$web/%HOMETOPIC%\"><img src=\"%ICONURL{web-bg}%\" border=\"0\" alt=\"\" width=\"16\" height=\"16\" style=\"background-color:%$markerVAR{\"WEBBGCOLOR\" web=$qname}$marker%\" />$indent&nbsp;<nop>$indent&nbsp;<nop><b>%RED%$name%ENDCOLOR%</b></a>$n"
   selection="%BASEWEB%"
}%
-- MateuszKDzior - 07 Oct 2015
 

QuestionForm edit

Subject Configuration
Extension FlexWebListPlugin
Version Foswiki 2.0.0
Status Answered
Related Topics
Topic revision: r3 - 07 Oct 2015, MateuszKDzior - This page was cached on 25 May 2018 - 01:32.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy