Copied to clipboard

Flag this post as spam?

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


  • S C 1 post 21 karma points
    Feb 26, 2014 @ 14:25
    S C
    0

    Umbraco newcomer (but not web design newcomer) struggling - please help

    Hi, my company have decided to use Umbraco as the CMS for our website and I have been tasked with running our office pages. I was quite excited initially as I have made simple html/css/javascript websites in the past and had an idea for a little javascript function I wanted to embed in one our pages where a freelancer could select the service they provide and it would show our current level of demand for that service.

    However whenever I try to put html into the editing space it removes my tags and only retains the text. It's driving me mad. Looking at these forums Umbraco can be put to really advanced developer use so why am I not able to embed some simple html into a page?? Am I basically limited to text and basic formatting? Any help really appreciated.

  • Niels Lynggaard 192 posts 550 karma points
    Feb 26, 2014 @ 14:42
    Niels Lynggaard
    0

    Hi S C and welcome to the Forum!

    You're right, Umbraco is awesome :)

    I *think* the editor is very strict on custom markup, because it's not the general idea to give editors the option of including scripts and whatnot in there.

    However, in /configs/tinyMceConfig.config there's a list of validElements. You *could* edit that list to suite your needs. There may also be some sort of setting as adjust the level of "cleanup" but I'm not sure about that.

    Another approach you could do is to create a macro (xslt or usercontrol) and make that macro able to be used in the editor. Then you just put your script/markup/stuff in the macro and insert it through the editor. That way your "widget" will also be re-usable other places in your website.

    It may take a bit of getting used to xslt if you're not familiar with it.

    Cheers,

    Niels

Please Sign in or register to post replies

Write your reply to:

Draft