[xwiki-users] Include pages in an other one
Hi, I made two Forum with the Bulletin Board. I wondered if it's possible to display the twice Forum (the Webhome?) on a same page, and not just a link. Like this, it's possible to create different forum/space with different rights for users. I tried these solutions but it doesn't work {{velocity}} #includeInContext("Forum1.WebHome") #includeInContext("Forum2.WebHome") #includeForm("Forum1.WebHome") #includeForm("Forum2.WebHome") #includeTopic("Forum1.WebHome") #includeTopic("Forum2.WebHome") {{/velocity}} Thanks Regards. Ben -- View this message in context: http://xwiki.475771.n2.nabble.com/Include-pages-in-an-other-one-tp4986033p49... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Fri, Apr 30, 2010 at 16:45, Ben Stuggler <[email protected]> wrote:
Hi,
I made two Forum with the Bulletin Board. I wondered if it's possible to display the twice Forum (the Webhome?) on a same page, and not just a link.
Like this, it's possible to create different forum/space with different rights for users.
I tried these solutions but it doesn't work
{{velocity}}
#includeInContext("Forum1.WebHome") #includeInContext("Forum2.WebHome")
#includeForm("Forum1.WebHome") #includeForm("Forum2.WebHome")
#includeTopic("Forum1.WebHome") #includeTopic("Forum2.WebHome")
{{/velocity}}
What do you mean by "it doesn't work" exactly ? #includeInContext does not really include as it is, it's rendering the target and insert html so you have to use {{html}} macro around it. The right way to include page is supposed to be by using {{include}} macro if your are including xwiki/2.0 syntax page inside another xwiki/2.0 syntax page {{include document="Forum1.WebHome"/}}
Thanks
Regards.
Ben -- View this message in context: http://xwiki.475771.n2.nabble.com/Include-pages-in-an-other-one-tp4986033p49... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On 04/30/2010 04:45 PM, Ben Stuggler wrote:
Hi,
I made two Forum with the Bulletin Board. I wondered if it's possible to display the twice Forum (the Webhome?) on a same page, and not just a link.
Like this, it's possible to create different forum/space with different rights for users.
I tried these solutions but it doesn't work
{{velocity}}
#includeInContext("Forum1.WebHome") #includeInContext("Forum2.WebHome")
#includeForm("Forum1.WebHome") #includeForm("Forum2.WebHome")
#includeTopic("Forum1.WebHome") #includeTopic("Forum2.WebHome")
{{/velocity}}
Did you try this instead? {{include document="Forum1.WebHome" context="new"/}} {{include document="Forum2.WebHome" context="new"/}} -- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu-2 wrote:
Did you try this instead?
{{include document="Forum1.WebHome" context="new"/}}
{{include document="Forum2.WebHome" context="new"/}}
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
It's working perfectly! You rock! (With my code, it displayed just html code of the called page, without interpretation) Thanks again. -- View this message in context: http://xwiki.475771.n2.nabble.com/Include-pages-in-an-other-one-tp4986033p49... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Ben Stuggler -
Sergiu Dumitriu -
Thomas Mortagne