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 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. Armin > Is there a way around this? > Could I change the mimetype for «htm» to something else > > Any suggestions welcome….. > > > Espen > -- Armin Carl Stroß-Radschinski | [email protected] | Twitter: @syncmitter Dipl. Designer FH | project-consultant | fon +49 171 21 94699 | IRC: acsr | Skype: astrossradschinski ACSR industrialdesign | Armin Stroß-Radschinski Landgrafenstraße 32 · 53842 Troisdorf · Germany | UST. ID Nr: DE154092803 (EU VAT ID) [email protected] | www.acsr.de | phone +49 2241 946994 · fax +49 2241 946996 ------------------------------------------------------------------------------ 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 iQEcBAEBCgAGBQJT4JZXAAoJEDsfPhYo1lBVJUUH/jwQaWfW/93Z8JqzRIShYpII JdpNIucV1P7W+pisB3nv1fjkhrIL+oedkkOlM88vw5DJXibrS89oZmBd1pZbxMG5 VN5NXVtPmErWGq6Nmy5c40KKOdLHOBgGoHFq4KEfaBeMS2WS4NFzEYFmQPIHja31 EIGJfhJ4OTuQKzxq1aJ18f3JlEf+wqpBlCWEbteSaPg2qzntcKQx8UolpRaJZnFw jG3Pmguwug37z/UAfd7G7umkDGkHCTubF7UsrUKgOJoy89DFLlhiPXg34o2okO8H xG99sHoAAT5H7epOwoDERMVxbjd7m+oEwhkdTOpdzGhSZhXEhA9+KVjMOOwT3ew= =ERmp -----END PGP SIGNATURE-----