Re: uploading html files as Files | just load the bare body for a frame using ajax_load view

Alessandro Pisa <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <CAFLUjzNHzdz2CQGnfy9ExabiAJWR_qDTi6JCy1BtqpgBWt5Y-A@mail.gmail.com>
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

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.