selfthinker / dokuwiki_plugin_wrap

Wrap Plugin for DokuWiki: Universal plugin which combines functionalities of many other plugins. Wrap wiki text inside containers (divs or spans) and give them a class (choose from a variety of preset classes), a width and/or a language with its associated text direction.
http://www.dokuwiki.org/plugin:wrap
GNU General Public License v2.0
41 stars 33 forks source link

WRAP col2 "keep item with next" #48

Closed rlore closed 10 years ago

rlore commented 10 years ago

I have defined two columns. All looks good except part of the page has a table and there is a header for the table. The 'renderer' wants to make the columns of the shortest length, so the heading of the table is shown in the previous column. Can two adjacent items be 'forced' to stay together, ie not break across columns ?

The screenshot has not uploaded, but the code looks like this (scroll to end)..

<WRAP col2>

==== BACKGROUND / CAVEATS ====

  * SQL Anywhere runs on RHEL5/6 32/64, but
  * We have to be running 64 bit Oracle (because of customised SQLAnywhere ODBC)
  * We __don't__ use SQL Anywhere, but a synchronisation middleware called __mobilink__
  * You need to install SQL Anywhere to install __mobilink__ 
  * Sybase UltraLite runs on the PDA's 
  * We call the server __tplus_mob_serv__ and the database __tplus_mob_db__, all the examples use these.

==== LINKS ====

  * [[http://dcx.sybase.com/index.html#sa160/en/saintro/fg-tutoriallist.html|Tutorials]]
  * [[Oracle setup for mobilink|Oracle setup + tables]]
  * [[sql_developer_install_notes|Installation + Notes]]
  * [[sql_developer_environment|Environment variables]]
  * [[sybase central|The GUI interface]]
  * [[mobilink]]
  * [[distributed_sql_across_network|linking remote Oracle database]]
  * [[sql_anywhere_starting_database|Starting / Connecting]]
  * [[sql_ultralite|SQL UltraLite]]

----

===== USEFUL SQLANYWHERE COMMANDS =====

--> column breaks here !

^COMMAND^DESCRIPTION^NOTES^
|scjview|**Sybase Central** is a graphical tool for managing your database servers, databases, etc|**use me**|
|dbconsole|Administer and monitor database server connections | |
|dbisql |Executes SQL statements and runs script files against a database |[[dbisql|example]] |
|dbinit |Creates a new database |[[dbinit|example]] |

--> more table stuff here ..

![Uploading dukuwiki-screenshot.gif . . .]()

selfthinker commented 10 years ago

col2 is not really what you want. Just use two <WRAP half column>s and put the second where you want the second column to be. col2 uses some styling which lets each browser determine automatically where to break each column, so there is nothing the plugin can do here.

rlore commented 10 years ago

Anika,

Today is a holiday here (Australia Day), but will do this tomorrow when I get to work.

I checked the wiki. I did not use this feature because it was experimental. I did not fully understand the value of the half column. Maybe I should have tried it !

Thanks very much for your advice.

Regards, Robert

On Mon, Jan 27, 2014 at 9:35 AM, Anika Henke notifications@github.comwrote:

col2 is not really what you want. Just use two s and put the second where you want the second column to be. col2 uses some styling which lets each browser determine automatically where to break each column, so there is nothing the plugin can do here.

— Reply to this email directly or view it on GitHubhttps://github.com/selfthinker/dokuwiki_plugin_wrap/issues/48#issuecomment-33332940 .

Robert Lore 0434 953 664

selfthinker commented 10 years ago

The main thing to understand is that you need the column class together with a width. The wrap plugin provides several ways to add widths, all with various advantages and disadvantages.

If you are hesitant due to the experimental nature of the half width keyword (and if you care about older IEs) you can also use percentages or pixels instead, e.g. <WRAP column 45%>. The 45% will work in a very similar way and is more reliable, but won't be as flexible and fitting as half.

rlore commented 10 years ago

Anika,

Thanks again. I will use the method you recommend. Also I will experiment with the other features to get a better feel for what can be done with the column formatting.

Regards, Robert

On Mon, Jan 27, 2014 at 11:41 AM, Anika Henke notifications@github.comwrote:

The main thing to understand is that you need the column class together with a width. The wrap plugin provides several ways to add widths, all with various advantages and disadvantages.

If you are hesitant due to the experimental nature of the half width keyword (and if you care about older IEs) you can also use percentages or pixels instead, e.g. <WRAP column 45%>. The 45% will work in a very similar way and is more reliable, but won't be as flexible and fitting as half.

— Reply to this email directly or view it on GitHubhttps://github.com/selfthinker/dokuwiki_plugin_wrap/issues/48#issuecomment-33335853 .

Robert Lore 0434 953 664