[xwiki-users] Macro Startfloatingbox
Dear all, I have a problem with the macro startfloatingbox. I have entered following code into my wiki using the Wiki-Editor: #startfloatingbox()Table of Contents {toc:initlevel=2|maxlevel=5|numbered=0} #endfloatingbox() 1.1 Headline2 1.1.1 Headline3 1.1.1.1 Headline4 The result is a floating box on the right side of the page and with a fix size. (see screen shot attached) My questions are: 1. how can I set up the alignment manually (left, right, middle)? 2. how can I set up the size manually (from left to right using the complete page width)? Many thanks in advance Regards Michael Klamm -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
Hi Michael, Right now, the only solution I know of is to modify the CSS file for the skin. Look at the generated HTML, check the HTML class attribute used and modify your skin's CSS accordingly. Currently the startfloatingbox macro doesn't haven any positioning parameter. You might want to create a jira issue for this (and even better attach a patch to the issue too :)). Note: We've modified the CSS in the new skin on xwiki.org so that the floating box appears above the sections for example. For example: http://platform.xwiki.org/xwiki/bin/view/Features/PageEditing Now if all you want is a box, you should probably use the {style} macro: http://code.xwiki.org/xwiki/bin/view/Macros/StyleMacro Thanks -Vincent On Dec 20, 2007, at 2:47 PM, Michael Klamm wrote:
Dear all,
I have a problem with the macro startfloatingbox. I have entered following code into my wiki using the Wiki-Editor:
#startfloatingbox()Table of Contents
{toc:initlevel=2|maxlevel=5|numbered=0}
#endfloatingbox()
1.1 Headline2
1.1.1 Headline3
1.1.1.1 Headline4
The result is a floating box on the right side of the page and with a fix size. (see screen shot attached)
My questions are: 1. how can I set up the alignment manually (left, right, middle)? 2. how can I set up the size manually (from left to right using the complete page width)?
Many thanks in advance
Regards Michael Klamm
participants (2)
-
Michael Klamm -
Vincent Massol