Hello, > > We have considered the various options carefully and they all > have their problems. I think that the extractor solution is > reasonable, assuming we can retrieve the translation document > properly.
I have been looking at the code for the extractors. AFAICS, you can not get another resource from the repository. What was again the reason that it could not be done from a custom cms pipeline? What about hooking in your own postprocessing and add the values? I really doubt the extractor way will be possible, Regards Ard > > Regards, > > Wouter > > -----Original Message----- > From: [EMAIL PROTECTED] on behalf of > Ard Schrijvers > Sent: Wed 4/16/2008 12:18 PM > To: Hippo CMS development public mailinglist > Subject: RE: [HippoCMS-dev] Repository access from extractor > > Hello Wouter, > > I suppose you are implementing this in the repository, isn't? > I have never fetched another repository resource from within > an extractor, and IMHO, this is a bad idea. First of all, > your extracted values depend on another resource: what if > this resource changes? Secondly, how can you be certain the > current user actually has read rights on another resource > from within an extractor. I strongly advice you to reconsider > your way to implement this feature (or explain what you would > like to achieve). > > Regards Ard > > > > Hi everyone, > > > > I'm trying to create an extractor that will get a value > from the XML > > and then do a translation before putting the value in a > property. The > > challenging part is that the translation document is stored in the > > repository and will need to be retrieved. I think I need a > > ServiceManager so I can get a SourceResolver from it (which > I can use > > to retrieve the translation document). I've implemented the > > Serviceable interface: > > > > public void service(ServiceManager serviceManager) throws > > ServiceException; > > > > I don't know how/where to configure the repository so the > > ServiceManager will actually be injected into the extractor. > > > > Can anyone help me with this? > > > > Wouter Zelle > > ******************************************** > > Hippocms-dev: Hippo CMS development public mailinglist > > > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > > > > > > ******************************************** Hippocms-dev: Hippo CMS development public mailinglist
