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

Mark current web in left bar

I would like to modify WebLeftBarWebsList, so that current web will be bolded/marked as a current web.

However, if I wrote:
[[MyWeb.WebHome][%IF{"'%WEB%'='MyWeb'" then="*<u>MyWeb</u>*" else="MyWeb"}%]]

the
 %web% 

will always store the same web string (in this case - System).

Is there any solution other than creating separate WebLeftBar for each web?

-- MateuszKDzior - 05 Oct 2015

Is it possible to do that through PatternSkinNavigation ?

-- MateuszKDzior - 05 Oct 2015

Try using BASEWEB instead of WEB? WEB picks up where a topic was included from BASEWEB is the web of the topic being viewed.

-- GeorgeClark - 05 Oct 2015

Great!!! This works. However, if I use sub-webs, will it be possible to get parent web?

-- MateuszKDzior - 05 Oct 2015

OK, this (marking current web or sub web in left bar) might be done through FlexWebList: http://foswiki.org/Extensions/FlexWebListExamples#Marking_a_selection

However, I have an issue with indentation. I will open separate question for that.

-- MateuszKDzior - 06 Oct 2015
 

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 2.0.0
Status Answered
Related Topics
Topic revision: r5 - 06 Oct 2015, MateuszKDzior - This page was cached on 20 Sep 2018 - 04:07.

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