Re: uploading html files as Files | just load the bare body for a frame using ajax_load view
Espen Moe-Nilssen <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <[email protected]> |
Hi and thanks for all the answers. … I never got it to work in plone, so I ended up servering the files from zope and embedding them as an <iframe part of the problem was the embedded hardcoded stuff in the HTML-files, and even in the javascripts which means I would have to change all the files every time they make a change…. and I could not (probably) not append ?ajax_load since this was inside framesets (which is so old I have forgotten it existed) (if any should be curious, its here…. http://xweb14f.plana.dk:9085/timeplan/index.html ) Espen 5. aug. 2014 kl. 14:02 skrev Armin Stroß-Radschinski <[email protected]>: > > Am 05.08.2014 um 11:06 schrieb Alessandro Pisa <[email protected]>: > >> On 5 August 2014 10:31, Armin Stroß-Radschinski <[email protected]> wrote: >>> Am 04.08.2014 um 17:14 schrieb Espen Moe-Nilssen <[email protected]>: >>> >>>> Hi >>>> >>>> My customer (school) has an old (planning) system to generate schedules for classes. >>>> It generates a bunch of htm files together wirh framesets and frames and is updated (all the time) >>>> >>>> If I upload the htm files a «normal way» (ftp, http, wildcard.foldercontents) it will become a plone page (with logo, footer etc everywhere in the frameset). >>> >>> Despite the other answers, you can force plone to deliver just the body of a page as content for the frame(s). We use this to fill iFrames with the bare content. >>> >>> This may not fix all your challenges, but maybe helpful if you can alter the urls in the framesets by a transform or regular expression. >>> >>> Just append [myURL]?ajax_load=1 to the myURL calling href attribute in the frameset when loading the frame content. Then you get just the bare body. >>> >>> One caveat is for you that when Plone is filtering the body you have to take care that no links to css etc. are filtered out. >>> >> >> You can get the original styles and scripts appending >> ?ajax_load=1&ajax_include_head=1 >> >> See for example: >> - http://plone.org/?ajax_load=1 >> - http://plone.org/?ajax_load=1&ajax_include_head=1 >> >> I did a review of all this parameters: >> - http://blog.redturtle.it/2012/07/03/boxing-plone >> >> Ciao >> -- >> http://alepisa.blogspot.com >> Esalando Prassi > So i it was worth to add this and get your hints alessandro as well ;-) > > Armin > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk_______________________________________________ > Plone-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/plone-users ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk