Hi all,
I want to modifying the layout of the pages like dev the website use the custom css and js etc.
Does anyone knows?
Thanks,
Bayern
Hi all,
I want to modifying the layout of the pages like dev the website use the custom css and js etc.
Does anyone knows?
Thanks,
Bayern
I try it later. Thank you very much!
Do you know how to use template content in a page ?
I input these code but failed.
{{velocity}}
{{html}}
$services.template.render(‘XWiki.FAQ2Template’)
{{/html}}
{{/velocity}}
The FAQ2Template is created by this tutorials:
Actually you are mixing two kinds of “templates”. XWiki.FAQ2Template
is just a wiki page so you should use {{include}} macro, see http://extensions.xwiki.org/xwiki/bin/view/Extension/Include%20Macro.
The API you are using in your example is related to files you can find in WEB-INF/templates/ or skins (including wiki based skins). See http://extensions.xwiki.org/xwiki/bin/view/Extension/Template+Module.
Thank you very much, i’ll try it.
Thanks @tmortagne The {{include}} macro it works, but the included pages are From top to bottom style.
Like this:
"page1 "
"page2 "
“page3”
"page4 "
"page5 "
Can change it to this style ? (left to right etc) The “===============” just instead of the blank space.
"page1 " ===============
“page2” "page3 " “page4”
================ "page5 "
Sounds like you are talking about http://extensions.xwiki.org/xwiki/bin/view/Extension/Container%20Macro.