[xwiki-devs] Proposal to manage columns using simple tables in the Wysiwyg editor
Hi, In multiple cases, we have heard the requirements to manage simple 2 or 3 column layouts in the Wysiwyg. This has come up with some users and is a need in the Socracy project (http://www.socracy.org). I've thought a bit more about this need and realized we could handle it quite simply using our already available Table feature in the Wysiwyg. For this the only thing we actually need would be to be able to edit the "class" being assigned to a table. I've made some CSS to show the results that we could have using such a class: http://incubator.myxwiki.org/xwiki/bin/view/Test/TestColumns The only special thing that these tables have in the wiki syntax is a class assigned: (% class="columns2" %) or (% class="columns3" %) The rest is CSS magic put in the skin. The way I see it would be to have the possibility to choose between different classes when creating or editing table properties. The list of available classes could be a preference set in the Wiki, this way we could extend the styles available for tables. Not only we could handle columns this way but we could also have additional styles for table (home page tables or table to show numbers, etc..). This is not too much work in the Wysiwyg and can provide quite some benefits to make nice presentations in XWiki. WDYT ? Ludovic -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
Hi Ludovic, We have (or will have soon) a column macro for this. I'd much prefer to use that macro and offer a way for macro to have specific wysiwyg editors. We also need specialized editors for other macros (for macros supporting content with a given syntax for example). Thanks -Vincent PS: Note that passing syntax parameters is not guaranteed to work with all renderers. On Sep 15, 2009, at 2:20 PM, Ludovic Dubost wrote:
Hi,
In multiple cases, we have heard the requirements to manage simple 2 or 3 column layouts in the Wysiwyg. This has come up with some users and is a need in the Socracy project (http://www.socracy.org).
I've thought a bit more about this need and realized we could handle it quite simply using our already available Table feature in the Wysiwyg. For this the only thing we actually need would be to be able to edit the "class" being assigned to a table.
I've made some CSS to show the results that we could have using such a class:
http://incubator.myxwiki.org/xwiki/bin/view/Test/TestColumns
The only special thing that these tables have in the wiki syntax is a class assigned:
(% class="columns2" %) or (% class="columns3" %)
The rest is CSS magic put in the skin.
The way I see it would be to have the possibility to choose between different classes when creating or editing table properties. The list of available classes could be a preference set in the Wiki, this way we could extend the styles available for tables.
Not only we could handle columns this way but we could also have additional styles for table (home page tables or table to show numbers, etc..).
This is not too much work in the Wysiwyg and can provide quite some benefits to make nice presentations in XWiki.
WDYT ?
Ludovic
Vincent Massol a écrit :
Hi Ludovic,
We have (or will have soon) a column macro for this.
I'd much prefer to use that macro and offer a way for macro to have specific wysiwyg editors. We also need specialized editors for other macros (for macros supporting content with a given syntax for example).
Yes I agree, but it's much more work to do that and it needs to be done well so that it's not only a wysiwyg in the Macro dialog put also a Wysiwyg inside the main wysiwyg screen. The table class I propose is working well for that. Ludovic
Thanks -Vincent
PS: Note that passing syntax parameters is not guaranteed to work with all renderers.
On Sep 15, 2009, at 2:20 PM, Ludovic Dubost wrote:
Hi,
In multiple cases, we have heard the requirements to manage simple 2 or 3 column layouts in the Wysiwyg. This has come up with some users and is a need in the Socracy project (http://www.socracy.org).
I've thought a bit more about this need and realized we could handle it quite simply using our already available Table feature in the Wysiwyg. For this the only thing we actually need would be to be able to edit the "class" being assigned to a table.
I've made some CSS to show the results that we could have using such a class:
http://incubator.myxwiki.org/xwiki/bin/view/Test/TestColumns
The only special thing that these tables have in the wiki syntax is a class assigned:
(% class="columns2" %) or (% class="columns3" %)
The rest is CSS magic put in the skin.
The way I see it would be to have the possibility to choose between different classes when creating or editing table properties. The list of available classes could be a preference set in the Wiki, this way we could extend the styles available for tables.
Not only we could handle columns this way but we could also have additional styles for table (home page tables or table to show numbers, etc..).
This is not too much work in the Wysiwyg and can provide quite some benefits to make nice presentations in XWiki.
WDYT ?
Ludovic
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
Hi Ludovic & Vincent, Ludovic Dubost wrote:
Vincent Massol a écrit :
Hi Ludovic,
We have (or will have soon) a column macro for this.
I'd much prefer to use that macro and offer a way for macro to have specific wysiwyg editors. We also need specialized editors for other macros (for macros supporting content with a given syntax for example).
Yes I agree, but it's much more work to do that and it needs to be done well so that it's not only a wysiwyg in the Macro dialog put also a Wysiwyg inside the main wysiwyg screen. The table class I propose is working well for that.
I think we can do what Ludovic proposes independently of the column macro. The user should be able to specify a CSS class for its table. Providing a list of predefined CSS classes to choose from is just a matter of making this feature more user-friendly. Thanks, Marius
Ludovic
Thanks -Vincent
PS: Note that passing syntax parameters is not guaranteed to work with all renderers.
On Sep 15, 2009, at 2:20 PM, Ludovic Dubost wrote:
Hi,
In multiple cases, we have heard the requirements to manage simple 2 or 3 column layouts in the Wysiwyg. This has come up with some users and is a need in the Socracy project (http://www.socracy.org).
I've thought a bit more about this need and realized we could handle it quite simply using our already available Table feature in the Wysiwyg. For this the only thing we actually need would be to be able to edit the "class" being assigned to a table.
I've made some CSS to show the results that we could have using such a class:
http://incubator.myxwiki.org/xwiki/bin/view/Test/TestColumns
The only special thing that these tables have in the wiki syntax is a class assigned:
(% class="columns2" %) or (% class="columns3" %)
The rest is CSS magic put in the skin.
The way I see it would be to have the possibility to choose between different classes when creating or editing table properties. The list of available classes could be a preference set in the Wiki, this way we could extend the styles available for tables.
Not only we could handle columns this way but we could also have additional styles for table (home page tables or table to show numbers, etc..).
This is not too much work in the Wysiwyg and can provide quite some benefits to make nice presentations in XWiki.
WDYT ?
Ludovic
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (4)
-
Ludovic Dubost -
Ludovic Dubost -
Marius Dumitru Florea -
Vincent Massol