Skip to content

Conversation

@kjac
Copy link
Contributor

@kjac kjac commented Jul 30, 2018

The NC item label documentation needs updating after the merge of PR 2457; the ncNodeName filter now supports media and members too, and the new ncRichText filter is missing from the docs.

The NC item label documentation needs updating after the merge of PR [2457](umbraco/Umbraco-CMS#2457); the ncNodeName filter now supports media and members too, and the new ncRichText filter is missing from the docs.
@ronaldbarendse
Copy link
Contributor

Umbraco has a built-in filter to limit the amount of words: umbWordLimit. Maybe also add documentation how to use this together with ncRichText?

So to only show the first 5 words of a rich text field, the following filters could be used (untested): ncRichText | umbWordLimit:5.

I couldn't find a built-in filter to limit on character count and/or add elipsises if the rich text value contains more text... Both would require additional filters or changes to the current ones I guess?

@kjac
Copy link
Contributor Author

kjac commented Aug 2, 2018

@ronaldbarendse in the next version, the label templates will automatically use ellipsis for text overflow as per umbraco/Umbraco-CMS#2457.

@marcemarc
Copy link
Contributor

Thanks @kjac we will merge this in once, the new feature has been released...

@jmayntzhusen
Copy link
Contributor

It seems this has been merged in and is on version 7.12.0 https://our.umbraco.com/download/releases//7120

So I will merge this PR in as well, thanks for submitting it! #h5yr!

@jmayntzhusen jmayntzhusen merged commit 712cfcf into umbraco:master Sep 5, 2018
@kjac
Copy link
Contributor Author

kjac commented Sep 5, 2018

Cool 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment