Thanks so much Vincent, that's exactly what I needed :-)
On Fri, Aug 28, 2009 at 2:50 AM, Vincent Massol <vincent(a)massol.net> wrote:
On Aug 27, 2009, at 6:19 PM, Lewis Denizen wrote:
Hi xwiki-users,
Just wondering if there's a reason for making <div> tags not take any
non-inline-able macros (like {{toc}}). I'm trying out the following
code:
{{velocity}}
{{html wiki="true"}}
#startfloatingbox()
{{toc depth="3" /}}
#endfloatingbox()
{{/html}}
{{/velocity}}
but this fails with an error message saying "Not an inline macro." I
understand that {{toc}} shouldn't be inline-able (well, I actually
don't
quite understand inline completely tho), but why does the <div>
resulting
from #startfloatingbox() end up as the start of an inline element?
Appreciate the help as always!
Here's a better way to achieve what you want in 2.0 syntax:
(% class="floatinginfobox" %)(((
**Contents**
{{toc depth="3" /}}
)))
or:
{{box cssClass="floatinginfobox" title="**Contents**"}}{{toc
start="2"
depth="3"/}}{{/box}}
Thanks
-Vincent
PS: TOC macro must standalone, i.e. it needs 2 NLs before it and 2 NLs
after it.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users