We have moved to GitHub Issues
Created by Shannon Deminick 11 Jul 2016, 12:49:07 Updated by Warren Buckley 21 Jul 2016, 14:49:01Tags: Star
Relates to: U4-8741
Relates to: U4-8742
Currently we can only query IPublishedContent by INT ids, but we need to be able to query (fast) by it's GUID id too
Other things we need to support:
what's a "site extension method" again?
It's an extension method on DynamicPublishedContent called Site() - you'll find it. It does just AncestorOrSelf(1) IIRC. It traverses up to find the current node's 'Site' node.
Querying by guid for content has to be implemented with XPath, that can be done in PublishedContentQuery in a simple way. For media it has to be implemented with Examine and that needs to be done in the media cache itself. Meaning we would need to change the signature of IPublishedCache to add (at least) a new
I'd rather just do content, without changes to IPublishedCache, in 7.5 - and see what we can do to optimize + media in 7.6. Thoughts?
Yup that sounds reasonable
Created U7-8741 for 7.6 and U7-8742 for 8.0.
Adds .Site(), .Children("alias1", "alias2"...), and UmbracoHelper .Content and .TypedContent methods accepting guids.
ready for review
Code reads perfectly fine @zpqrtbnk but I am gonna be nit-picky & ask for XML inline docs please as we are generating documentation from these automatically, so that we all start to get in a better habit & being mindful to create docs, so setting as
Reopened for now.
have added doc to all new/modified methods that are visible to users is that ok?
Lovely thanks :)
Type: Feature (request)
Backwards Compatible: True
Due in version: 7.5.0
Sprint: Sprint 38