Skip to content

Commit

Permalink
Item13750: repackage using new data form
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Sep 25, 2015
1 parent 24283ca commit a614a4c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 27 deletions.
35 changes: 21 additions & 14 deletions data/System/FlexWebListPlugin.txt
@@ -1,5 +1,7 @@
%META:TOPICINFO{author="ProjectContributor" date="1437150802" format="1.1" version="1"}%
---+!! <nop>%TOPIC%
%SHORTDESCRIPTION%

%TOC%

---++ Description
Expand Down Expand Up @@ -132,23 +134,17 @@ The following picture illustrates when which format strings are used
</style>

---++ Examples
See FlexWebListExamples and FlexWebListTree.
See [[FlexWebListExamples]] and [[FlexWebListTree]].

---++ Plugin Installation Instructions
%$INSTALL_INSTRUCTIONS%

---++ Dependencies
%$DEPENDENCIES%

---++ Plugin Info
<!-- provided for compatibility only
* Set SHORTDESCRIPTION = Flexible way to display hierarchical weblists
-->
---++ Change History

| Plugin Author: | Foswiki:Main.MichaelDaum |
| Copyright &copy;: | 2006-2015, Michael Daum http://michaeldaumconsulting.com |
| License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
| Release: | %$RELEASE% |
| Version: | %$VERSION% |
| Change History: | &nbsp; |
%TABLE{columnwidths="7em" tablewidth="100%"}%
| 17 Jul 2015: | more caching issues fixed |
| 26 Sep 2014: | fixed caching issue when using Foswiki:Extensions/VirtualHostingContrib (Foswiki:Main/MaikGlatki) |
| 28 May 2014: | !TopicTitle defaults to web name (not !WebHome) if not set otherwise |
Expand Down Expand Up @@ -183,6 +179,17 @@ See FlexWebListExamples and FlexWebListTree.
| 28 Jul 2006: | preserve order in webs parameter |
| 26 Jul 2006: | first release |
| 05 Jul 2006: | initial version |
| Dependencies: | %$DEPENDENCIES% |
| Plugin Home: | Foswiki:Extensions/%TOPIC% |
| Support: | Foswiki:Support/%TOPIC% |

<!--
* Set SHORTDESCRIPTION = %$SHORTDESCRIPTION%
-->

%META:FORM{name="PackageForm"}%
%META:FIELD{name="Author" title="Author" value="Michael Daum"}%
%META:FIELD{name="Copyright" title="Copyright" value="2006-2015, Michael Daum http://michaeldaumconsulting.com"}%
%META:FIELD{name="Home" title="Home" value="Foswiki:Extensions/%TOPIC%"}%
%META:FIELD{name="License" title="License" value="GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]])"}%
%META:FIELD{name="Release" title="Release" value="%$RELEASE%"}%
%META:FIELD{name="Repository" title="Repository" value="https://github.com/foswiki/FlexWebListPlugin"}%
%META:FIELD{name="Support" title="Support" value="Foswiki:Support/%TOPIC%"}%
%META:FIELD{name="Version" title="Version" value="%$VERSION%"}%
26 changes: 13 additions & 13 deletions lib/Foswiki/Plugins/FlexWebListPlugin.pm
Expand Up @@ -17,13 +17,22 @@ package Foswiki::Plugins::FlexWebListPlugin;
use strict;
use warnings;

our $VERSION = '1.93';
our $RELEASE = '1.93';
our $VERSION = '2.00';
our $RELEASE = '25 Sep 2015';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION = 'Flexible way to display hierarchical weblists';
our %cores = ();

sub core {
sub initPlugin {

Foswiki::Func::registerTagHandler('FLEXWEBLIST', sub {
return getCore()->handler(@_);
});

return 1;
}

sub getCore() {

# Item12972: get the core for this host; note there might be separate cores
# when using VirtualHostingContrib
Expand All @@ -37,15 +46,6 @@ sub core {
return $core;
}

sub initPlugin {

Foswiki::Func::registerTagHandler('FLEXWEBLIST', sub {
return core->handler(@_);
});

return 1;
}

sub finishPlugin {
%cores = ();
}
Expand All @@ -56,7 +56,7 @@ sub afterRenameHandler {
return if $oldTopic;

# SMELL: does not fire on web-creation
core->reset;
getCore()->reset;
}


Expand Down
1 change: 1 addition & 0 deletions lib/Foswiki/Plugins/FlexWebListPlugin/MANIFEST
Expand Up @@ -2,4 +2,5 @@ data/System/FlexWebListExamples.txt 0644
data/System/FlexWebListPlugin.txt 0644
data/System/FlexWebListTree.txt 0644
lib/Foswiki/Plugins/FlexWebListPlugin/Core.pm 0644
lib/Foswiki/Plugins/FlexWebListPlugin/DEPENDENCIES 0644
lib/Foswiki/Plugins/FlexWebListPlugin.pm 0644

0 comments on commit a614a4c

Please sign in to comment.