[Yanel-dev] data-repo-sitetree resource-type

Michael Wechner michael.wechner at wyona.com
Tue Feb 10 09:33:07 CET 2009


simon litwan schrieb:
> hi all
>
> i had a look at the data-repo-sitetree resource-type.
> i fixed some of the TODOs. see following patch:
> http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=6978
>
> but after spending some time with this resource-type, i don't 
> understand for what is it good for.

the resource is accessing the sitetree API and displays what the 
sitetree contains

> there are several functions: -providing a tree widget (showing the 
> merged repo trees of data- and res-config-repo

this is just one possible implementation


> ) (but just allows you to browse, no tree modification implemented

this is a TODO
> )


> -a xml view (of the merged repo trees of data- and res-config-repo)
> -a google-sitemap view (this view at least is not useful,

it's being used within one of our customer projects
> since it announces every node to google. even usecases e.g. 
> create-new-page.html )

this depends on the implementation
> -a json view. (of the merged repo trees of data- and res-config-repo)

it seems to me that you misunderstand because you keep mixing the 
implementation with the API
>
> i think one of the problem is, it's only possible to get one sitetree 
> implementation via api (NodeResConfigAndDataRepoImpl).
> but i think even in one realm it would be nice to use different 
> sitetrees:
> - navigation
> - sitemap
> - google-sitemap
> - data-repo
> - res-config-repo
> which all are/can be independent of each other.

agreed
>
> could it make sense to introduce something like a sitetreeManager 
> (configurable per realm) which would give you all the (configured) 
> sitetrees?

quite probably, but need to think about it once more, but anyway it's 
orthogonal to the actual sitetree API and I would it an enhancement.

Also please keep in mind that one would like to have other kind of 
"maps", for example topic maps
>
> my goal is to implement a sitetree editor which allows to move, copy 
> etc. nodes between different trees.

that's just a matter of using the sitetree API and has nothing to do 
with the above mentioned/described.

Cheers

Michael
>
> WDOT?
>
> simon
>
>
>
>
>
>
>



More information about the Yanel-development mailing list