Re: permalink
"dr_frank_hoffmann" <[email protected]> Wed, 07 Jul 2010 17:16:57 -0000
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
findFilteredTreeNodes() is not supported anymore.
I would suggest to build a mapping table periodically consisting of
{id:path...} to resolve your permalinks.
You can use filteredTreeNodes():
http://www.zms-publishing.com/e1030/e1595/epydoc/Products.zms.zmscontainerobject.ZMSContainerObject-class.html#filteredTreeNodes
Best Regards
fh, noderator
--- In [email protected], "ndettenbach" <nd@...> wrote:
>
> Dear all,
>
>
> usually just a simple task - but i cant get it running.
>
> In several websites with hundreds to thousands of pages i want to provide a "permanent link" to PAGE objects - callable by links from external third party websites, even if the object is moved within the ZMS object tree.
>
> This means i want to provide something "permanent" like
> http://zmswebsite.org/permalink_to?id=e123
>
> which points to the current place of e123 - i.e. in
> /e45/e123
>
> or
> /e123
>
> or i.e.
> /e56/e121/e123
>
> For this i tried different solutions - i.e. with
> findFilteredTreeNodes(REQUEST, PAGES, ["id", "e123"])
> which won't work for me - other ZMS methods seems to need the "full" path -
>
> or with some own (but slow) python script which recurses the complete tree.
>
> Are there any ideas how i can find the current object within a zms tree by the object id (e123)?
>
> I assume the solution would be easy - but it seems i'm completely blocked here.
>
> Many thanks in advance.
>
>
> best regards,
>
>
> Niels.
> ---
> http://www.syndicat.com
>