Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove UmbracoContext requirement from HasVortoValue #91

Merged

Conversation

JimBobSquarePants
Copy link
Contributor

Currently checking to see whether a property has a VortoValue using HasVortoValue invokes the full published pipeline.

For certain properties this requires an UmbracoContext to be present (RTE, Markdown) since internal links are parsed as part of the process. This means the method cannot be used when doing things like gathering node data for search.

By avoiding this and using the IPublishedContent.DataValue property directly we can use the method without fully parsing the value since all we care about is the dictionary.

@mattbrailsford mattbrailsford merged commit 5b1e5ba into umco:master Nov 9, 2017
@mattbrailsford mattbrailsford added this to the 1.6 milestone Nov 9, 2017
@JimBobSquarePants
Copy link
Contributor Author

Yay!

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

Successfully merging this pull request may close these issues.

2 participants