Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
Table formatting
Avatar
wolf12 #1
Member since Feb 2015 · 24 posts
Group memberships: Members
Show profile · Link to this post
Subject: Table formatting
Hi,

is there a way to give some cells a class? I tried the plugins fckg and edittable but I was not able to do this:

I want to give some cells a background-Color. Via fck editor I can add classes but only left/right align.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
try the cellbg plugin.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
wolf12 #3
Member since Feb 2015 · 24 posts
Group memberships: Members
Show profile · Link to this post
Thanks,
I tried this once but it didn't work... still wondering what I did wrong

Re-Install, now it works, at least I can add the color via HTML but still no styling with css possible.

At the moment I'm using the headline, which might be enough.
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post #1
Quote by wolf12 on 2015-02-24, 13:35:
I tried the plugins fckg and edittable but I was not able to do this:

 Via fck editor I can add classes but only left/right align.

fckg and ckgedit, except for font styling, give you only what the basic dokuwiki editor is capable of.   And the font-styling is itself a plugin which can be used in the Dokuwiki editor.  Table cell alignment is built into Dokuwiki, which is why you can get alignment with the fck editors.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
florious #5
User title: Floarea
Member since Jun 2014 · 20 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #3
Today, still the only reliable solution I found is cellbg plugin.
Avatar
turnermm (Moderator) #6
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
fckg has been discontinued.

You can do  great deal with the cssperpage plugin.  For instance, this css:
#css_per_page.opencss td {
    background-color: yellow;
    color: blue;
}
with this markup:
~~cssp_openDIV~~
|hello|dolly|
~~cssp_closeDIV~~

will give you the attached result.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
The author has attached one file to this post:
cssperpage_3.png 5 kBytes
You have no permission to open this file.
This post was edited on 2019-03-24, 00:54 by turnermm.
Avatar
florious #7
User title: Floarea
Member since Jun 2014 · 20 posts
Group memberships: Members
Show profile · Link to this post
Thanks for you solution.

It is working like promised :) but:
Exporting to dw2pdf using, everything is ok.

Exporting to dw2pdf using cssperpage, will ignore the css. How can we  solve this? (i use to copy wrap.css to dw2pdf, style.local.css file for pdf export/pprint)
Avatar
turnermm (Moderator) #8
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I've never used dw2pdf and so have no idea how it works.  Did you try putting the cssperpage css in style.local.css?
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
turnermm (Moderator) #9
Member since Oct 2009 · 4724 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I just did a quick test using the epub plugin and it has no trouble with cssperpage.  You can easily convert an epub ebook to pdf using Calibre.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Ashtagon #10
Member since Jan 2010 · 186 posts · Location: London, UK
Group memberships: Members
Show profile · Link to this post
I use the mediawiki plugin to give the table a class. That does mean using the mediawiki table syntax rather than the dokuwiki table syntax though.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-11-17, 12:20:49 (UTC +01:00)