AW: migrating spec objects to 2.11

"Christian Meier" <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Message-ID <5FA09FDEFA9943309E0FE4437CD02595@mdcno3>
<dtml-in "filteredTreeNodes(REQUEST,['your_content_object_id'])">
should do the job.

A package just aggregates content-objects for export.

--cm

> -----Ursprüngliche Nachricht-----
> Von: [email protected] 
> [mailto:[email protected]] Im Auftrag von Niels 
> Dettenbach
> Gesendet: Dienstag, 28. April 2009 16:32
> An: [email protected]
> Betreff: [zms-developers] migrating spec objects to 2.11
> 
> Dear devels and readers,
> 
> 
> since today i try to migrate some of my old sites to 2.11 - 
> including my 
> spec-objects like kfrom (ZMSFormular). I would use this task 
> to update 
> (better: rewrite) my publically published objects from the 
> past and to finish 
> a 2.0 version of them for you all here.
> 
> In my old KForms i use a hack:
> 
> 	<dtml-in "filteredTreeNodes(REQUEST,['ZMSCustom'])">
> 
> to find my ZMSCustom object within the current page (shure, 
> this is a really 
> dirty hack which makes me headache - but it had worked for 
> most reasons since 
> any former zms version ;).
> 
> a try of
> 	<dtml-in 
> "getParentNode().filteredTreeNodes(REQUEST,['ZMSCustom'])">
> 
> did not work too...
> 
> But, this doesnt seems to work anymore - i get a very useful 
> "Key error: ''" 
> (i assume the dtml-in catches not the right - means my own - 
> object on the 
> page).
> 
> How can i target or find my own ("calling") "custom" object 
> within the current 
> page under 2.11 (where all objects are "custom")? Can i call 
> it by the 
> name "Formular" or by the package string "com.syndicat.formular"?
> 
> To make it clean now - how can i "catch" my special object within a 
> dtml-method (this method is representing page)? Is there any idea?
> 
> many thanks in advance and best regards.
> best regards,
> 
> 
> Niels.
> -- 
> 
> ---
> 
>   Niels Dettenbach
>   ---
>   Syndicat IT&Internet
>   http://www.syndicat.com
>   T.-Muentzer.-Str. 2, 37308 Heilbad Heiligenstadt - DE
>   ---
>   Kryptoinfo: 
>   PGP public key ID 651CA20D
>   Fingerprint: 55E0 4DCD B04C 4A49 1586  88AE 54DC 4465 651C A20D
>   https://syndicat.com/pub_key.asc
>   ---
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.