Re: How can I include custom javascript file on dexterity content type
Bruno Barbosa <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <CAHxcCH6SWNfDj5aFpRqvwNtUayW-VXG8mA-LSUraJCWZrPsfyw@mail.gmail.com> |
Hi, I need include javascript/jquery masks on my dexterity content type form. How can I do? some reference? -- Bruno Barbosa [email protected] (61) 8121-7870 On Tue, Dec 16, 2014 at 5:13 PM, espen <[email protected]> wrote: > > 16. des. 2014 kl. 19:44 skrev Bruno Barbosa [via Plone] <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=7573045&i=0>>: > > Hi! > > I need include a custom javascript file on add and edit views in my custom > content type in dexterity like a helper_js on archetypes. > > How I can do? > > > one option would be to register a viewlet for that content type, and load > it from there. > http://docs.plone.org/develop/plone/views/viewlets.html#id4 > > If you «manually» make the views, you could just include it there > (probably with a fill slot) > maybe like this: > > <metal:js fill-slot="javascript_head_slot"> > <script type="text/javascript» > > your script or a link to it > </script> > </metal:js> > > you could put a condition in portal_javascript (might be difficult) > > … or you could do it in a diazo rule > > Espen > > att, > -- > Bruno Barbosa > <a href="x-msg://55/user/SendEmail.jtp?type=node&node=7573044&i=0" > target="_top" rel="nofollow" link="external">[hidden email] > > ------------------------------------------------------------------------------ > > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > Plone-Users mailing list > <a href="x-msg://55/user/SendEmail.jtp?type=node&node=7573044&i=1" > target="_top" rel="nofollow" link="external">[hidden email] > https://lists.sourceforge.net/lists/listinfo/plone-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://plone.293351.n2.nabble.com/How-can-I-include-custom-javascript-file-on-dexterity-content-type-tp7573044.html > To start a new topic under General Questions, email [hidden email] > <http:///user/SendEmail.jtp?type=node&node=7573045&i=1> > To unsubscribe from Plone, click here. > NAML > <http://plone.293351.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > > > ------------------------------ > View this message in context: Re: How can I include custom javascript > file on dexterity content type > <http://plone.293351.n2.nabble.com/How-can-I-include-custom-javascript-file-on-dexterity-content-type-tp7573044p7573045.html> > Sent from the General Questions mailing list archive > <http://plone.293351.n2.nabble.com/General-Questions-f293352.html> at > Nabble.com. > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > Plone-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/plone-users > > ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Plone-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plone-users