[Plone-UI] Re: XML and plone...how OH my god HOW?????

Alec Mitchell apm13 at columbia.edu
Wed Sep 21 14:46:33 UTC 2005


On Wednesday 21 September 2005 03:20 am, imaginaire wrote:
> Lucas Vital <nelsontubaina at ...> writes:
> > hello friends...my name is Lucas Gabriel, I'm from Brazil and I am
> > using plonetarium to manage a goverment instituion's portal, please
> > visit so you can understand my situation:
> >
> > http://www.kyatera.fapesp.br/portal_en
> >
> > My problem is that...well, the thing is: I made a lil box in flash to
> > make the portal's e-news...and its ok, BUT every month I gotta change
> > the content because every month the news are updated...soooo, in order
> > to make my life easier I used XML so the flash would load the xml into
> > the dinamic text boxes sooo all I would have to do is update the text
> > off the .xml file...HOWEVER in plone..it did not quite work that
> > way....i think that's the point off my message:
> >
> > how to I make a .xml file in plone???
> >
> > p.s: to make the .swf file i made a new image...in the short name i
> > put NAME.swf and then loaded the .swf... I tried to do the same scheme
> > with the .xml...i made a new document and put in the short name
> > NAME.xml and then loaded the xml file...but that time it did not
> > work...what shall I do???????????????????????????????
>
> I have exactly the same problem. I want to add a Javascript product as a
> Plone skin. But it contains xml and xsd files. These files are thrown away
> when added as a skin.
> If anybody finds a solution I would love to know too!
>
> I suspect ArcheTypes may be a solution. But I have not tried that yet.

Try adding them as *.xml.pt or *.xml.dtml, they will be treated as page 
templates (or dtml), which may be a bit inconvenient for caching but should 
work.  The other option is to try:

from Products.CMFCore.DirectoryView import registerFileExtension
from Products.CMFCore.FSFile import FSFile

registerFileExtension('xml', FSFile)

So that it can be used as a normal file.  You may wish to file a bug against 
CMFCore so that FSFile itself can be fixed to include the extensions you find 
valuable.

Alec



More information about the UI mailing list