How to modifying the layout of the pages?

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,

there is a quite good description how to implement/include custom js and CSS files here.

rbr

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. :yum:

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.

Thanks @tmortagne , the container macro it works .:smiley: