Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

ConvertTable

Summary: Convert table action
Version: 1.2
Status: Working
Maintainer: GNUZoo
Discussion: ConvertTable-Talk
Categories: Markup Tables

Questions answered by this recipe

  • Tables are not versatile enough, is there a way to convert them to table directives?

This section is optional; use it to indicate the types of questions (if any) this recipe is intended to answer.

Description

This recipe will assist in converting a table to table directives.

It is recommended that you have one table in a page to use this. You can copy the table code and paste it into a scratch page and save. While viewing the page add to the url "?action=converttable". You will see the new code displayed inside your browser window. Select the new code (Click and drag to highlight in browser window), Copy (Control-c) the code and paste (Control-v) it into a new page.

This recipe is not perfect. It does not handle "colspan" which in tables are created with "|||||||||" etc. It will help greatly in converting your tables to simplified advanced table directives.

Installing

Copy converttable.phpΔ to your cookbook directory

In your config.php enter:

include_once("cookbook/converttable.php");

or in your farmconfig.php enter:

include_once("$FarmD/cookbook/converttable.php");

Notes

Release Notes

This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation http://www.fsf.org either version 2 of the License, or (at your option) any later version.

Copyright 2007 by GNUZoo email: guru [snail] gnuzoo [period] org

Please donate to the author at url: http://gnuzoo.org/GNUZooPayPal

  • Version: 1.1 - Added RecipeInfo
  • Version: 10 10 2006 10:47 PM CST - Initial release

See Also

Text2Tbl Provide a way to convert arbitrarily structured text to table markup and provide conversion of simple tables to advanced.

Contributors

Comments

See discussion at ConvertTable-Talk

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.

Edit - History - Print - Recent Changes - Search
Page last modified on September 02, 2012, at 09:50 PM