Re: uploading html files as Files | just load the bare body for a frame using ajax_load view
Armin Stroß-Radschinski <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <[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
signature.asc
(application/pgp-signature, 496 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJT4MfVAAoJEDsfPhYo1lBVc+UH/0W6BS9d1Ckx7Fie/EZPIzWT FVV9G51BlMdKiscUzayIQrO4hbGOsGnqPeBPDobi8RDnSntd+yxfIk3h52l+LUwn L6F0Lhf2fTvlCiFLlUIA3eTQFh4jZiA7Wc/nO6ezUcW6wH5x4cDcfmXkopd5q981 44BWseOuB6igymFKkQSo9woE37+mnPZMIuANzvRJtRGZtTXDhxAFK1lvZx/hofa8 VajWLW74c3y9uDcgHmuzPxSBWEPuLt+Lv1XLctul64aiC7bXtkdiRbMeVV0uercg 1jsbtt8VcXDuqtjjqKSl+jieAHhLBZDNRlrnwGUlJ8NdUqHs0JtiDGb5FlODsHo= =qdmt -----END PGP SIGNATURE-----