Skip to content

Commit

Permalink
Item1496: TableTmplPlugin now doing logical classes mapping through s…
Browse files Browse the repository at this point in the history
…kin templates using CssPlugin.

git-svn-id: http://svn.foswiki.org/trunk/TableTmplPlugin@3711 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
StephaneLenclud authored and StephaneLenclud committed Apr 26, 2009
1 parent 8c2cc3d commit 8862e23
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions data/System/TableTmplPlugin.txt
@@ -1,7 +1,7 @@
---+!! !TableTmplPlugin
<!--
One line description, required for extensions repository catalog.
* Set SHORTDESCRIPTION = TablePlugin clone using CssPlugin to enable skinning
* Set SHORTDESCRIPTION = TablePlugin clone using skin templates
-->
%SHORTDESCRIPTION%

Expand All @@ -13,8 +13,8 @@ See Foswiki:Extensions.TablePlugin.

---++ Motivations

This is a clone of Foswiki:Extensions.TablePlugin enabling skinning through abstraction of CSS class name using Foswiki:Extensions.CssPlugin.
The original idea was to make the table format totally skinnable using skin template thus the plug-in name. However skin template usage would require dramatic changes to the plug-in logic and possibly loss of funtionality.
This is a clone of Foswiki:Extensions.TablePlugin enabling skinning through abstraction of CSS class name via skin templates using Foswiki:Extensions.CssPlugin.
The original idea was to make the table format totally skinnable using skin template thus the plug-in name. However full skinability would require dramatic changes to the plug-in logic and possibly loss of funtionality.
We eventually decided to make minial changes to simply enable variable CSS class name in the hope that those changes get integrated in Foswiki:Extensions.TablePlugin at some point.

---++ Installation Instructions
Expand All @@ -24,10 +24,12 @@ We eventually decided to make minial changes to simply enable variable CSS class
---++ Info

| Author(s): | Foswiki:Main.StephaneLenclud |
| Copyright: | &copy; |
| Copyright: | &copy; 2009 St�phane Lenclud |
| License: | [[http://www.gnu.org/licenses/gpl.html][GPL (Gnu General Public License)]] |
| Version: | %$VERSION% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
|^| v0.2 Logical classes mapping now using skin template through Extensions.CssPlugin. |
|^| v0.1 Logical classes mapping using configuration. |
| Dependencies: | %$DEPENDENCIES% |
| Home page: | http://foswiki.org/bin/view/Extensions/TableTmplPlugin |
| Support: | http://foswiki.org/bin/view/Support/TableTmplPlugin |
Expand Down
4 changes: 3 additions & 1 deletion lib/Foswiki/Plugins/TableTmplPlugin/Core.pm
Expand Up @@ -81,7 +81,9 @@ BEGIN {
if (defined $Foswiki::cfg{Plugins}{CssPlugin}{Enabled} && defined $Foswiki::cfg{Plugins}{CssPlugin}{Enabled})
#if (0)
{
my $conf=$Foswiki::cfg{Plugins}{CssPlugin};
#my $conf=$Foswiki::cfg{Plugins}{CssPlugin};
my $conf=\%Foswiki::Plugins::CssPlugin::classMap;

%cssClasses = (
'table', (defined $conf->{'table'}?$conf->{'table'}:'foswikiTable'),
'sorted', (defined $conf->{'sorted'}?$conf->{'sorted'}:'foswikiSortedCol'),
Expand Down

0 comments on commit 8862e23

Please sign in to comment.