includeTopic

Marc Lijour marc at lijour.net
Wed Jan 10 03:52:27 CET 2007


Hi

quick question about #includeTopic 's behaviour (I am running 1252).


Setup
The main page contains a macro #buildPage() which takes an array.
This macro calls #includeTopic() in a loop such as this:

## generating the includeTopic calls
#foreach( $strand in $strandArray )
#includeTopic("${namespace}.${strand}")
#end

This macro is included in the main page with #includeMacros().

2 conflicting behaviours observed
1)  XWiki just started (no cache): only the first includeTopic page is 
rendered, the others are not
2) Once the pages (called in #includeTopic() ) are visited they display fine 
(I guess this is the work of the cache)

Is this a normal behaviour? Any advice?

At least is it possible to call programmatically the page to have it rendered 
in the cache? It is probably not the right way to do it..

Thanks.

Marc




More information about the users mailing list