[xwiki-users] xwiki code isn't interpreted in footer?
Hello, Are there a way to include some page in footer? I tried without success {{include context="NEW" reference="BacASable.PiedDePage"/}} in and in footer.vm and Footer:Space Copyright. Thxs. Pascal B
*.vm template files only interpret Velocity and are supposed to generate html, the wiki syntax is not supported there. You can use #includeInContext or #includeTopic there. See http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+In+Context+Macr... and http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+Topic+Macro. On Wed, Jun 11, 2014 at 11:34 AM, Pascal BASTIEN <pbasnews-xwiki@yahoo.fr> wrote:
Hello,
Are there a way to include some page in footer? I tried without success {{include context="NEW" reference="BacASable.PiedDePage"/}} in and in footer.vm and Footer:Space Copyright.
Thxs.
Pascal B _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
.vm files are Velocity code, not XWiki syntax so if you want to include a page, you could do $xwiki.getDocument("BacASable.PiedDePage").getRenderedContent() which would output the relevant html. Thanks, Caleb On 06/11/2014 11:34 AM, Pascal BASTIEN wrote:
Hello,
Are there a way to include some page in footer? I tried without success {{include context="NEW" reference="BacASable.PiedDePage"/}} in and in footer.vm and Footer:Space Copyright.
Thxs.
Pascal B _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Thanks both :-) ________________________________ De : Caleb James DeLisle <cjd@cjdns.fr> À : XWiki Users <users@xwiki.org> Envoyé le : Mercredi 11 juin 2014 11h47 Objet : Re: [xwiki-users] xwiki code isn't interpreted in footer? .vm files are Velocity code, not XWiki syntax so if you want to include a page, you could do $xwiki.getDocument("BacASable.PiedDePage").getRenderedContent() which would output the relevant html. Thanks, Caleb On 06/11/2014 11:34 AM, Pascal BASTIEN wrote:
Hello,
Are there a way to include some page in footer? I tried without success {{include context="NEW" reference="BacASable.PiedDePage"/}} in and in footer.vm and Footer:Space Copyright.
Thxs.
Pascal B _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
Caleb James DeLisle -
Pascal BASTIEN -
Thomas Mortagne