[xwiki-users] xwiki code isn't interpreted in footer?

2014-06-11 Thread Pascal BASTIEN
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


Re: [xwiki-users] xwiki code isn't interpreted in footer?

2014-06-11 Thread Thomas Mortagne
*.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+Macro
and http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+Topic+Macro.

On Wed, Jun 11, 2014 at 11:34 AM, Pascal BASTIEN
pbasnews-xw...@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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] xwiki code isn't interpreted in footer?

2014-06-11 Thread Caleb James DeLisle
.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


Re: [xwiki-users] xwiki code isn't interpreted in footer?

2014-06-11 Thread Pascal BASTIEN
Thanks both :-)




 De : Caleb James DeLisle c...@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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users