Copied to clipboard

Flag this post as spam?

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


  • Colin Watson 17 posts 47 karma points
    Aug 11, 2014 @ 16:39
    Colin Watson
    0

    Unwanted tags to page field

    Hi, Ive setup a doc type with a textstring header property, inserted it as a page field with blank 'insert before/after' into the template but when adding text for header in content section I can see <p> tag (using edit html source and Firebug) either side of the header in addition to the <h2> tag which is set in the template.  

    What am I doing wrong?

    Colin

     

  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Aug 11, 2014 @ 19:13
    Bo Damgaard Mortensen
    0

    Hi Colin,

    It sounds like the value comes from a Rich Text Editor in Umbraco. The RTE always sets linebreaks as a <p></p> It's quite a question, but are you sure that the selected field is not an RTE? :-)

  • Colin Watson 17 posts 47 karma points
    Aug 11, 2014 @ 19:45
    Colin Watson
    0

    Hi Bo, Ive used the Textstring as it's a 1 line heading, Ive tried this different ways including using the RTE. Ive used Textstring in doc type/template/page on this site other and there is no <p> inserted. Ive checked in Data types and I can see nothing here which may be causing this.

    Thanks

     

    Colin

Please Sign in or register to post replies

Write your reply to:

Draft