On 04/01/13 9:03 AM, dtrussardi(a)tiscali.it wrote:
In my image i have a deprecated PRMenuWidget it can use for solve this problematic ?
I didn't know PRMenuWidget was still included. Try using PRMenuWidget
instead of what I said about looking at PRViewsWidget for code inspiration.
Have a look at PRMenuWidget class>>defaultDocument
I think the code you need is something like:
menuPage
| document widget |
document := PRDocumentParser parse:
'- *Home>/*
- *Chi siamo>/chisiamo*
- *Missione>/missione*
- *Catalogo>/catalogo*
- *Offerte>/offerte*
- *Ordini>/menuonline*
- *Blog>/blog*
- *Riferimenti>/riferimenti*'.
widget = PRMenuWidget new.
widget write: document using: widget descriptionDocument.
^ menuWidget ifNil:
[ menuWidget := (PRPage named: 'menu')
addChild: ((PRComponent named: 'widgetmenu')
prototypeInstance: widget;
yourself);
contents: '+widgetmenu+'
]
P.S. i'm interested to understund the pier environment. Where i can found some
documentation?
Other than
http://piercms.com, this mailing list is it, AFAIK.