lib/LocalSite.cfg
, add this web's URL to {ExtensionsRepositories}
:
Foswiki.org=(http://foswiki.org/Extensions/,http://foswiki.org/pub/Extensions/);Local=(http://foswiki.org/Extensions/Archived/,http://foswiki.org/pub/Extensions/Archived/)
mainleft
and mainright
(you are free to choose section names). The section stubs are:
%STARTSECTION{"mainleft"}% contents of the main left column %ENDSECTION{"mainleft"}% %STARTSECTION{"mainright"}% contents of the right side column %ENDSECTION{"mainright"}%If you do not want to have the section definitions appear twice on the page, wrap these inside a hidden
verbatim
:
<verbatim class="foswikiHidden">
%STARTSECTION etcetera
</verbatim>
%INCLUDE{ "%SYSTEMWEB%.TwoColumnDefinition" section="300right" CONTENTTOPIC="%BASEWEB%.%BASETOPIC%" COL1="mainleft" COL2="mainright" }%Explanation of the attributes passed to this macro:
onethirdleft
, 160left
, 300right
CONTENTTOPIC
: the topic the content resides in. This can be a different topic.
COL1
: name of the section that contains left column contents
COL2
: name of the section that contains left column contents
COL1
: name of the section that contains column 1 contents
COL2
, COL3
, COL4
: section names for the other columns
<style type="text/css" media="all"> @import url("%PUBURLPATH%/%SYSTEMWEB%/YahooGridsAddOn/grids-min.css"); </style>To use this in a topic only:
%ADDTOHEAD{"yahoogridsaddon" text="<style type=\"text/css\" media=\"all\"> @import url(\"%PUBURLPATH%/%SYSTEMWEB%/YahooGridsAddOn/grids-min.css\"); </style>"}%
onethirdleft
, 160left
, 300right
.ygColumnLeft
- right column
.ygColumnRight
- right column
.ygColumn
- a column that is not a left nor a right column
.5em
between columns, use this style definition:
.ygColumn { padding:0 .5em; } .ygColumnLeft { padding:0 .5em 0 0; } .ygColumnRight { padding:0 0 0 .5em; }
configure
, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
%STARTSECTION{"testleft"}% 3/4 <br /> contents of the main left column %ENDSECTION{"testleft"}% %STARTSECTION{"testright"}% 1/4 <br /> contents of the right side column %ENDSECTION{"testright"}%Warning: Can't find topic System.TwoColumnDefinition
STARTSECTION
in a condensed way, like:
%STARTSECTION{"mainleft"}%---+ Topic title%ENDSECTION{"mainleft"}%This doesn't work out, because the content of the section definition does not start on a newline. Instead, put the contents on a new line:
%STARTSECTION{"mainleft"}% ---+ Topic title %ENDSECTION{"mainleft"}%
Copyright ©: | 2009, 2010 Arthur Clemens |
License: | GPL, Yahoo licence (BSD) |
Dependencies: | None |
AddOn Version: | 1.1 (02 Jan 2010) |
02 Jan 2010 | 1.1 Changed LEFTCOL and RIGHTCOL to COL1 and COL2 . The definitions now ignore empty section names. Added examples. |
04 Dec 2009 | 1.0 First release. |
Demo url: | |
Home: | http://foswiki.org/Extensions/YahooGridsAddOn |
Support: | http://foswiki.org/Support/YahooGridsAddOn |
ExtensionClassification | Interface and Visualisation |
ExtensionType | ContribPackage |
Compatibility | |
ImageUrl | |
DemoUrl | |
SupportUrl | YahooGridsAddOn |
DevelopedInSVN | Yes |
ModificationPolicy | PleaseFeelFreeToModify |
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
![]() |
YahooGridsAddOn.md5 | manage | 168 bytes | 02 Jan 2010 - 18:42 | ArthurClemens | |
![]() |
YahooGridsAddOn.sha1 | manage | 192 bytes | 02 Jan 2010 - 18:42 | ArthurClemens | |
![]() |
YahooGridsAddOn.tgz | manage | 167 K | 02 Jan 2010 - 18:42 | ArthurClemens | |
![]() |
YahooGridsAddOn.zip | manage | 170 K | 02 Jan 2010 - 18:41 | ArthurClemens | |
![]() |
YahooGridsAddOn_installer | manage | 4 K | 02 Jan 2010 - 18:42 | ArthurClemens | |
![]() |
example.png | manage | 158 K | 02 Jan 2010 - 18:44 | ArthurClemens | |
![]() |
grids-min.css | manage | 4 K | 05 Dec 2009 - 22:21 | ArthurClemens |