[xwiki-users] Include section doesn't work or wich documentation I must read for xwiki 5.4.2?
Hello I want include some section of page in my current page. I need to display text between some anchors. Then my childpage Sandbox » PageParent » Pagefille2 contain: *************************** Contenu de ma page fille 2 avec 3 sections [[Cliquer ici pour aller à l'ancre "MonAncre3">>||anchor="MonAncre3"]] [[Cliquer ici pour aller au titre 1 "Section 4">>||anchor="HSection4"]] = section1 = Section 1 avec du texte = section2 avec tableau = |=titre1|=titre 2|=titre 3 | toto|titi|tutu {{id name="MonAncre3"/}} = Section 3 = Bla bla de section 3 {{id name="MonAncre4"/}} = Section 4 = Bla bla de section 4 *************************** 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.
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 On Wed, Mar 12, 2014 at 11:06 AM, Pascal BASTIEN <[email protected]>wrote:
Hello
I want include some section of page in my current page. I need to display text between some anchors.
Then my childpage Sandbox » PageParent » Pagefille2 contain: *************************** Contenu de ma page fille 2 avec 3 sections
[[Cliquer ici pour aller à l'ancre "MonAncre3">>||anchor="MonAncre3"]]
[[Cliquer ici pour aller au titre 1 "Section 4">>||anchor="HSection4"]]
= section1 =
Section 1 avec du texte
= section2 avec tableau =
|=titre1|=titre 2|=titre 3 | toto|titi|tutu
{{id name="MonAncre3"/}} = Section 3 =
Bla bla de section 3
{{id name="MonAncre4"/}} = Section 4 =
Bla bla de section 4 ***************************
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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
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) <[email protected]> À : Pascal BASTIEN <[email protected]>; XWiki Users <[email protected]> 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
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 <[email protected]>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) <[email protected]> *À :* Pascal BASTIEN <[email protected]>; XWiki Users < [email protected]> *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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
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) <[email protected]> À : Pascal BASTIEN <[email protected]> Cc : XWiki Users <[email protected]> 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 <[email protected]> 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) <[email protected]> À : Pascal BASTIEN <[email protected]>; XWiki Users <[email protected]> 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
The include function is hard to use with some non-us special character like french: éèà'ç ... By example, if I want to include this section: "Séct-io'n 4" I must use this include {{include reference="Pagefille2" section="HSE9ct-io27n4"/}} I must replace special character with unicode code: http://www.utf8-chartable.de/ Is this a bug? I can use another way? NB: anchor doesn't work with include. Thxs Pascal B ________________________________ De : Pascal BASTIEN <[email protected]> À : Ecaterina Moraru (Valica) <[email protected]>; XWiki Users <[email protected]> Envoyé le : Mercredi 12 mars 2014 10h25 Objet : Re: [xwiki-users] Include section doesn't work or wich documentation I must read for xwiki 5.4.2? 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) <[email protected]> À : Pascal BASTIEN <[email protected]>; XWiki Users <[email protected]> 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Ecaterina Moraru (Valica) -
Pascal BASTIEN