Re: Page Template: strip html tags from another Page Template
Nathan Van Gheem <[email protected]> Sat, 23 May 2015 09:43:14 -0500
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <CAL8hw9GBr+7iBcd0NCdY28en=s2mOeWKs=g9qJke7rhbxFxU8w@mail.gmail.com> |
It'd be better to fix the add-on I think. On May 23, 2015 9:02 AM, "Andreas Mantke" <[email protected]> wrote: > Hello, > > I validated the output of my Plone site, that contains a newly created > Dexterity addon (Grok style) with three content types and view.pt. I use > for the rating of the content cioppino.twothumbs, version 1.8. > I got the rating inside my view.pt with > > <div tal:content="structure project/@@rate-if-you-dare"/> > > But if I render this in my Plone site I get HTML validation errors because > the page template of the cioppino addon pulls it's own <html> </html> > frame inside the output. Thus there are inner and outer HTML tags in the > produced site source code, e.g. <HTML>(...) <HTML> (...) </HTML> (...) > </HTML> and that > causes some validation errors. > > I manually deleted the opening and closing HTML tags from the cioppino > page template and the validation went fine. > > I wonder, if there is a way to strip this HTML tags without touching the > cioppino addon. Is there a special TAL method for this task already? > (My current page template is here: > https://github.com/tdf/tdf.extensionsuploadcenter/blob/master/src/tdf/extensionsuploadcenter/eupcenter_templates/view.pt > ) > > Thanks for any hint in advance > > Regards, > Andreas > > -- > ## Developer LibreOffice > ## Freie Office-Suite für Linux, Mac, Windows > ## http://LibreOffice.org > ## Support the Document Foundation (http://documentfoundation.org) > ## Meine Seite: http://www.amantke.de > > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Plone-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/plone-users > ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Plone-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plone-users