Skip to content

Commit

Permalink
Item157: hiding WebHome in location breadcrumbs
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/BreadCrumbsPlugin@586 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Nov 12, 2008
1 parent 73537fe commit 8035bcc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions data/TWiki/BreadCrumbsPlugin.txt
Expand Up @@ -163,8 +163,9 @@ separator) may contain special variables:
| Plugin Author: | TWiki:Main.MichaelDaum |
| Copyright ©: | 2006-2008, Michael Daum http://michaeldaumconsulting.com |
| License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
| Plugin Version: | v2.10 (%$VERSION%) |
| Plugin Version: | v2.20 (%$VERSION%) |
| Change History: |   |
| 11 Nov 2008: | hide <nop>WebHome in location breadcrumbs |
| 15 Sep 2008: | switching off current topic in =topicoff= mode |
| 01 Sep 2008: | TWiki:Main.OliverKrueger Bugs:Item5972 fixed: minor cosmetics |
| 28 Apr 2008: | many new features for 2.0: topic titles, ellipsis, ... |
Expand All @@ -182,8 +183,6 @@ separator) may contain special variables:
| Other Dependencies: | none |
| Perl Version: | 5.8 |
| TWiki:Plugins/Benchmark: | %SYSTEMWEB%.GoodStyle nn%, %SYSTEMWEB%.FormattedSearch nn%, %TOPIC% nn% |
| Plugin Home: | TWiki:Plugins/%TOPIC% |
| Feedback: | TWiki:Plugins/%TOPIC%Dev |
| Appraisal: | TWiki:Plugins/%TOPIC%Appraisal |
| Plugin Home: | http://nextwiki.org/Extensions/%TOPIC% |
| Feedback: | http://nextwiki.org/Extensions/%TOPIC%Dev |

-- TWiki:Main/MichaelDaum - 15 Sep 2008
2 changes: 1 addition & 1 deletion lib/TWiki/Plugins/BreadCrumbsPlugin.pm
Expand Up @@ -20,7 +20,7 @@ use vars qw(
);

$VERSION = '$Rev$';
$RELEASE = 'v2.01';
$RELEASE = 'v2.20';
$NO_PREFS_IN_TOPIC = 1;
$SHORTDESCRIPTION = 'A flexible way to display breadcrumbs navigation';

Expand Down
2 changes: 1 addition & 1 deletion lib/TWiki/Plugins/BreadCrumbsPlugin/Core.pm
Expand Up @@ -263,7 +263,7 @@ sub getLocationBreadCrumbs {
}

# add this topic if it was not covered yet
unless ($seen{"$thisWeb.$thisTopic"} || $recurse->{topicoff}) {
unless ($seen{"$thisWeb.$thisTopic"} || $recurse->{topicoff} || $thisTopic eq $homeTopic) {
#writeDebug("finally adding breadcrumb: target=$thisWeb/$thisTopic, name=$thisTopic");
push @breadCrumbs, {
target=>"$thisWeb/$thisTopic",
Expand Down

0 comments on commit 8035bcc

Please sign in to comment.