[xwiki-devs] [PROPOSAL] Create a column macro
Hi, Regarding the http://jira.xwiki.org/jira/browse/XWIKI-2963 issue, this is how I propose the macro to look like: {{columnedtext}} {{column with="40%"}} My first text {{/column}} {{column with="60%"}} My second text {{/column}} {{/columnedtext}} This way, depending on how many {{column}} blocks it finds, the macro transformer has a complete overview over the text to be arranged in columns. What do you say? Tnx. Dan
On May 27, 2009, at 5:28 PM, Dan Miron wrote:
Hi, Regarding the http://jira.xwiki.org/jira/browse/XWIKI-2963 issue, this is how I propose the macro to look like: {{columnedtext}}
{{column with="40%"}} My first text {{/column}} {{column with="60%"}} My second text {{/column}}
{{/columnedtext}}
This way, depending on how many {{column}} blocks it finds, the macro transformer has a complete overview over the text to be arranged in columns.
What do you say?
Yes this is the way to do it. I think I'd prefer to name it {{section}} as it's done in Confluence. http://confluence.atlassian.com/display/DOC/Section+Macro Thanks -Vincent
Hi Dan, On Wed, May 27, 2009 at 5:28 PM, Dan Miron <[email protected]> wrote:
Hi, Regarding the http://jira.xwiki.org/jira/browse/XWIKI-2963 issue, this is how I propose the macro to look like: {{columnedtext}}
{{column with="40%"}} My first text {{/column}} {{column with="60%"}} My second text {{/column}}
{{/columnedtext}}
This way, depending on how many {{column}} blocks it finds, the macro transformer has a complete overview over the text to be arranged in columns.
What do you say?
Looks ok to me. What happens when the total is higher than 100% ? You could also add the choice to use a pixel size instead of the percent-based one. Make sure the generated layout works in IE6 too ;-) As for the name, I personally think "column" describes what the macro does better than "section" but it's only my pow, let's see what the majority agrees upon. Guillaume
Tnx. Dan _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
Re, On Wed, May 27, 2009 at 5:35 PM, Guillaume Lerouge <[email protected]>wrote:
Hi Dan,
On Wed, May 27, 2009 at 5:28 PM, Dan Miron <[email protected]> wrote:
Hi, Regarding the http://jira.xwiki.org/jira/browse/XWIKI-2963 issue, this is how I propose the macro to look like: {{columnedtext}}
{{column with="40%"}} My first text {{/column}} {{column with="60%"}} My second text {{/column}}
{{/columnedtext}}
This way, depending on how many {{column}} blocks it finds, the macro transformer has a complete overview over the text to be arranged in columns.
What do you say?
Looks ok to me.
What happens when the total is higher than 100% ? You could also add the choice to use a pixel size instead of the percent-based one. Make sure the generated layout works in IE6 too ;-)
As for the name, I personally think "column" describes what the macro does better than "section" but it's only my pow, let's see what the majority agrees upon.
Guillaume
Tnx. Dan
I've got another question too: what will the interface look like in the WYSIWYG? How will an user select how many columns to use and how will the user input content in the various columns using the WYSIWYG macro editor? Guillaume
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
On May 27, 2009, at 5:36 PM, Guillaume Lerouge wrote:
Re,
On Wed, May 27, 2009 at 5:35 PM, Guillaume Lerouge <[email protected]
wrote:
Hi Dan,
On Wed, May 27, 2009 at 5:28 PM, Dan Miron <[email protected]> wrote:
Hi, Regarding the http://jira.xwiki.org/jira/browse/XWIKI-2963 issue, this is how I propose the macro to look like: {{columnedtext}}
{{column with="40%"}} My first text {{/column}} {{column with="60%"}} My second text {{/column}}
{{/columnedtext}}
This way, depending on how many {{column}} blocks it finds, the macro transformer has a complete overview over the text to be arranged in columns.
What do you say?
Looks ok to me.
What happens when the total is higher than 100% ? You could also add the choice to use a pixel size instead of the percent-based one. Make sure the generated layout works in IE6 too ;-)
As for the name, I personally think "column" describes what the macro does better than "section" but it's only my pow, let's see what the majority agrees upon.
Guillaume
Tnx. Dan
I've got another question too: what will the interface look like in the WYSIWYG? How will an user select how many columns to use and how will the user input content in the various columns using the WYSIWYG macro editor?
Right now same as for any macro. There's no notion of wysiwyg editor for embedded macros yet. There's a jira issue for this open btw. -Vincent
Re, On Wed, May 27, 2009 at 5:39 PM, Vincent Massol <[email protected]> wrote:
On May 27, 2009, at 5:36 PM, Guillaume Lerouge wrote:
Re,
On Wed, May 27, 2009 at 5:35 PM, Guillaume Lerouge <[email protected]
wrote:
Hi Dan,
On Wed, May 27, 2009 at 5:28 PM, Dan Miron <[email protected]> wrote:
Hi, Regarding the http://jira.xwiki.org/jira/browse/XWIKI-2963 issue, this is how I propose the macro to look like: {{columnedtext}}
{{column with="40%"}} My first text {{/column}} {{column with="60%"}} My second text {{/column}}
{{/columnedtext}}
This way, depending on how many {{column}} blocks it finds, the macro transformer has a complete overview over the text to be arranged in columns.
What do you say?
Looks ok to me.
What happens when the total is higher than 100% ? You could also add the choice to use a pixel size instead of the percent-based one. Make sure the generated layout works in IE6 too ;-)
As for the name, I personally think "column" describes what the macro does better than "section" but it's only my pow, let's see what the majority agrees upon.
Guillaume
Tnx. Dan
I've got another question too: what will the interface look like in the WYSIWYG? How will an user select how many columns to use and how will the user input content in the various columns using the WYSIWYG macro editor?
Right now same as for any macro. There's no notion of wysiwyg editor for embedded macros yet. There's a jira issue for this open btw.
Yes I know but how does the WYSIWYG reacts to the fact that it doesn't know à priori how many columns will be needed? You mean that you would have to add a {{section}} macro first, then add a {{column}} macro twice within the first macro? How will you add a macro within a macro using the macro editor? Does it mean you will have to add a {{section}} macro using the macro browser but then you'll have to input {{column}}some content{{/column}}{{column}}some content{{/column}} in the macro's dialog box textarea? Btw Dan I think it would be cool if {{section}} {{column}} content {{/column}} {{column}} content {{/column}} {{/section}} automatically generated 2 columns with 50% width (maybe that's the default setting). Guillaume -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/
On May 27, 2009, at 6:03 PM, Guillaume Lerouge wrote:
Re,
On Wed, May 27, 2009 at 5:39 PM, Vincent Massol <[email protected]> wrote:
On May 27, 2009, at 5:36 PM, Guillaume Lerouge wrote:
Re,
On Wed, May 27, 2009 at 5:35 PM, Guillaume Lerouge <[email protected]
wrote:
Hi Dan,
On Wed, May 27, 2009 at 5:28 PM, Dan Miron <[email protected]> wrote:
Hi, Regarding the http://jira.xwiki.org/jira/browse/XWIKI-2963 issue, this is how I propose the macro to look like: {{columnedtext}}
{{column with="40%"}} My first text {{/column}} {{column with="60%"}} My second text {{/column}}
{{/columnedtext}}
This way, depending on how many {{column}} blocks it finds, the macro transformer has a complete overview over the text to be arranged in columns.
What do you say?
Looks ok to me.
What happens when the total is higher than 100% ? You could also add the choice to use a pixel size instead of the percent-based one. Make sure the generated layout works in IE6 too ;-)
As for the name, I personally think "column" describes what the macro does better than "section" but it's only my pow, let's see what the majority agrees upon.
Guillaume
Tnx. Dan
I've got another question too: what will the interface look like in the WYSIWYG? How will an user select how many columns to use and how will the user input content in the various columns using the WYSIWYG macro editor?
Right now same as for any macro. There's no notion of wysiwyg editor for embedded macros yet. There's a jira issue for this open btw.
Yes I know but how does the WYSIWYG reacts to the fact that it doesn't know à priori how many columns will be needed? You mean that you would have to add a {{section}} macro first, then add a {{column}} macro twice within the first macro?
yes
How will you add a macro within a macro using the macro editor? Does it mean you will have to add a {{section}} macro using the macro browser but then you'll have to input {{column}}some content{{/column}}{{column}}some content{{/column}} in the macro's dialog box textarea?
yes -Vincent
Btw Dan I think it would be cool if
{{section}} {{column}} content {{/column}} {{column}} content {{/column}} {{/section}}
automatically generated 2 columns with 50% width (maybe that's the default setting).
Guillaume
-Vincent
On May 27, 2009, at 5:35 PM, Guillaume Lerouge wrote:
Hi Dan,
On Wed, May 27, 2009 at 5:28 PM, Dan Miron <[email protected]> wrote:
Hi, Regarding the http://jira.xwiki.org/jira/browse/XWIKI-2963 issue, this is how I propose the macro to look like: {{columnedtext}}
{{column with="40%"}} My first text {{/column}} {{column with="60%"}} My second text {{/column}}
{{/columnedtext}}
This way, depending on how many {{column}} blocks it finds, the macro transformer has a complete overview over the text to be arranged in columns.
What do you say?
Looks ok to me.
What happens when the total is higher than 100% ? You could also add the choice to use a pixel size instead of the percent-based one. Make sure the generated layout works in IE6 too ;-)
As for the name, I personally think "column" describes what the macro does better than "section" but it's only my pow, let's see what the majority agrees upon.
I think you misunderstood. I'm talking about "section" to replace "columnedtext". -Vincent
participants (3)
-
Dan Miron -
Guillaume Lerouge -
Vincent Massol