Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Psib3r 70 posts 119 karma points
    Nov 14, 2011 @ 11:39
    Psib3r
    0

    Allowing Editors to add script to pages

    At the moment we are using a CMS called Immediacy.  One of the things this has is a plugin called Insert Anything.  This allows the page editors the ability to add javascript to pages, as they may need to add tracking tags etc... to specific pages without the need and hassle of creating a whole new template just to add some.

    Is there any way this can be done in umbraco, this is another stumbling block I have come across.  I am trying the example of using an macro with a multiline text field, but this just seems to break the markup.

    Has anybody got a definitive solution to this, is there a package that allows it, I can't seem to find one?

     

    Thanks

  • Rich Green 2246 posts 4008 karma points
    Nov 14, 2011 @ 11:53
    Rich Green
    0

    Hey,

    This is possible by either a Macro or some logic, what about a checkbox that just states "EnableTracking".

    What is the exact problem with rendering a multiline text field? If you are pulling this out using XSLT then you might need to use:

    <xsl:value-of select="$currentPage/yourProperty" disable-output-escaping="yes"/>

    Rich

  • Tim 1193 posts 2675 karma points MVP 5x c-trib
    Nov 14, 2011 @ 12:51
    Tim
    1

    I usually have an "SEO Tracking" tab on all content pages, with the following textareas:

    header script, start of body script, end of body script and google analytics

    I have the google analytics one as a recursive field on the template (so all pages use the code on the homepage, but you can override it on individual pages if you wish). The rest are specific to the page.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies