https://network.xwiki.com/xwiki/bin/view/DocXE52En/IncludeInVelocity
"section Indicates the anchor to the section to include in the target document"
It's shame I thought include working with anchor...
Thanks you
________________________________
De : Ecaterina Moraru (Valica) <valicac(a)gmail.com>
À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>
Cc : XWiki Users <users(a)xwiki.org>
Envoyé le : Mercredi 12 mars 2014 11h05
Objet : Re: [xwiki-users] Include section doesn't work or wich documentation I must
read for xwiki 5.4.2?
Hi,
{{include document="Pagefille2" anchor="MonAncre3"/}}
since 'anchor' is not a valid parameter actually it will include the whole
document.
{{include reference="Pagefille2" section="MonAncre3"/}}
error
{{include reference="Pagefille2" section="HSection3"/}}
working
So apparently you cannot create manual sections.
A section is considered the content after a heading, and for this the auto-generated id is
taken, not the manual one.
So even if you manually declare
{{id name="MonAncre3"/}}
this will not be considered a section.
In order to use that section you need to provide the generated id and that is usually
build as 'H[Heading_name]'. You can inspect the source to find it out.
I'm not sure if there is another simpler/manual solution to declare and use sections
since I haven't used sections very often.
Thanks,
Caty
On Wed, Mar 12, 2014 at 11:25 AM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> wrote:
Yes but this one "{{include reference="Pagefille2"
section="MonAncre3"/}}" doesn't working.
I try anchor because some documentation talking about
that (xwiki syntax version 1 or 2)
Thxs anyway
________________________________
De : Ecaterina Moraru (Valica) <valicac(a)gmail.com>
À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>fr>; XWiki Users <users(a)xwiki.org>
Envoyé le : Mercredi 12 mars 2014 10h11
Objet : Re: [xwiki-users] Include section doesn't work or wich documentation I must
read for xwiki 5.4.2?
Hi,
If you look at the {{include}} macro documentation
http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+Macro you'll see that
there is no 'anchor' parameter, only 'section'. That's why you get the
macro error. Don't use 'anchor', replace it with 'section'.
Thanks,
Caty
and My Parent page Sandbox » PageParent contain:
***************************
et le contenu de [[Pagefille2 section3>>doc:Pagefille2]]:
Accès direct à la section: [[Pagefille2
section3>>doc:Pagefille2||anchor="MonAncre3"]]
----
{{include document="Pagefille2" anchor="MonAncre3"/}}
----
{{include reference="Pagefille2" section="MonAncre3"/}}
----
{{include reference="Pagefille2" anchor="MonAncre3"/}}
----
{{include document="Pagefille2" section="MonAncre3"/}}
----
{{include reference="Pagefille2" section="HSection3"/}}
*******************************
Only this link working well "{{include reference="Pagefille2"
section="HSection3"/}}" :-/
The include macro in wysiwyg editor return:
Failed to execute the [include] if we indicate anchor
Include Macra asking "Document" and "reference". Is it the same? I
must fill both textbox?
Some documentation indicate anchor instruction, another section...
Thx for your help.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users