Copied to clipboard

Flag this post as spam?

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


  • David Gregory 82 posts 208 karma points
    Sep 29, 2017 @ 10:02
    David Gregory
    0

    Using RTE property as Name Template in Nested Content

    Hello all

    I need to use a RTE value as the Name Template in Nested Content but when it gets displayed to the user on the editing screen it's showing the html.

    Is there a way to not show the html?

    Thanks

    enter image description here

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Sep 29, 2017 @ 10:50
    Alex Skrypnyk
    0

    Hi David,

    It's not a perfect idea to output RTE content as a name of the item. What if the editor adds a lot of content to this RTE?

    Can you change that?

    Thanks,

    Alex

  • David Gregory 82 posts 208 karma points
    Sep 29, 2017 @ 11:26
    David Gregory
    0

    Yes I agree, it's not ideal but I don't have an appropriate field to use instead and I don't want to add a field just for the user to enter a title for the template name.

    I did try doing something like this but it doesn't seem to accept the begin param

    {{myPropertyName | limitTo : 30 : 3}}
    
  • Thomas 315 posts 602 karma points c-trib
    Sep 11, 2019 @ 13:18
    Thomas
    0

    Did you find a solution for this ? :)

  • Torro 1 post 72 karma points
    Nov 06, 2019 @ 10:03
    Torro
    1

    You can use the angular filter "| ncRichText" to show the unformatted text like here:

    {{ pickerAlias | ncRichText }}
    

    For more information just read the documentation :)

  • Peter Cort Larsen 418 posts 1015 karma points
    Nov 08, 2020 @ 15:06
    Peter Cort Larsen
    0

    You can do this:

    {{text.replace("

    ","").replace("

    ","")}}

Please Sign in or register to post replies

Write your reply to:

Draft