https://discord.umbraco.com logo
Hi everyone, I’m still relatively new to Umbraco ...
# umbraco-chat
c
Hi everyone, I’m still relatively new to Umbraco and so far I’ve only worked with Umbraco 13. Now I’m working on my first project using Umbraco 17 and getting familiar with the changes. At the moment, I’m trying to set a custom label for a Block List. From what I understand, this has been completely reworked since Umbraco 13. My goal is to use only the first line of the content from a Rich Text property as the label for the block. Hopefully i can do this without writing a custom view. i followed the instructions on this documentation page: https://docs.umbraco.com/umbraco-forms/developer/blocklistlabels and got this for the Label:
Copy code
{umbValue:text | stripHtml | truncate:30:... | fallback:Slide element (No text)}
for the Rich text content shown in the Image below, and it gives me this text:
Copy code
Test H2Test P
but i only need the first line. How can i achieve this? Has anyone implemented something like this or can point me in the right direction? I tried to open a post in #1125392773038755890 but it seems i dont have the permission. Hope its okay to ask here instead. Thanks a lot! https://cdn.discordapp.com/attachments/1443515195891646537/1483831007647109331/image.png?ex=69bc04d0&is=69bab350&hm=94a70ae2f2b9c070055ba85a55c686eff1ef7e1d82a293e62d66a1fb7e91e6d0&