Thanks for your quickly response!
A friend tried (but it was a bit more ugly code) to do the  "addChild: (PRPage ...)" in the defaultDocument and it also works.

But initialize seems to be a better place.

Sorry for make the same question again, is somebody making the port of Pier into VisualWorks?
The latest published version is from 10/2007, and the Pier version is lr.183-222-81-99 CS12NFR.10

Thanks again,
Lautaro Fernández

2009/2/13 Lukas Renggli <renggli@gmail.com>
> So, here is my question:
> Is there any way to create dynamically pages inside a newly page(the one I
> just had created)?

I would override PageProject>>#initialize and add the subpages
programmatically. Something like:

PageProject>>initialize
   super initialize.
   self addChild: (PRPage named: 'installation').
   self addChild: (PRPage named: 'wiki').
   self addChild: (PRPage named: 'faq').

You can also change the document contents, title and other properties
from there if you want.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki



--
Luke LAut SkyFernadezWalker