|
Cookbook /
ColumnsSummary: Create columns out of lists without using table markup
Version: 1.1 - 2006-06-06
Maintainer: MartinFick
Category: Layout
QuestionHow can I display lists in columns without adding all that table markup code or being preoccupied with the number of columns up front? AnswerPut columns.phpΔ in your cookbook/directory. Add the following line to local/config.php @include_once("This recipe defines a
Syntax:
(:columns # SourcePageName:)The number of columns per row must be specified before the SourcePageName. This recipe will put columns into a table for you, rather than a <div> arrangement, and is useful for long lists which simply need to be put into a table with multiple columns to save vertical space. This allows authors to focus on creating the list without giving thought to how to split up the list into columns. The number of columns is easy to change at any time without having to edit the source list. Notes and CommentsThe output uses bare <TABLE>, <TR>, and <TD> tags. It could really use some better CSS integration, but I don't know how. You can see the same list here in 2 columns, 3 columns or 4 columns. Possible Enhancements:
Versions
2006-06-06 : Columns - version 1.1 - Martin Fick
2006-06-02 : Columns - version 1 - Martin FickSee Also
Contributors
User notes?: If you use, used or reviewed this recipe, you can add your name. The following format is recognized:
* (+) Optional positive comment. Name, date * (-) Optional negative comment. Name, date These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |