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
> So, here is my question:I would override PageProject>>#initialize and add the subpages
> Is there any way to create dynamically pages inside a newly page(the one I
> just had created)?
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