You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which Umbraco version are you using? For example: 13.2.1 - don't just write v13
V13.5.2
Bug summary
Hi!
We have a document type named 'contentpage'.
On this contentpage, we've added a tab 'taxonomies' through a composition.
In this tab, an MNTP has been added where the following document type can be chosen:
Product detail page
This composition is added to every document type used as a page, as well as some content blocks used in a Umbraco.BlockList, such as the 'FAQ Block'.
This blocklist can be added on various document types. In this example we'll be adding this content block to our 'Contentpage' document type.
Example:
FAQ Item A:
Taxonomies tab: Product detail page nr1 (Picked in the MNTP, which is added through the composition 'taxonomies')
Contentpage A:
Taxonomies tab: Product detail page nr1 (Picked in the MNTP)
FAQ Block: In the content blocks property, I add the 'FAQ Block'. On this block, I can also add taxonomies, as it also uses the same 'taxonomies' composition.
In the FAQ Block, I have created a custom Contentment data picker. In this custom data picker, I want to retrieve all related content based on the choice in the taxonomies tab on contentpage A (Not the choice on this block (yet :-) )
I can retrieve this information by using the ContentmentContentContext with which I can get the current page and thus also the choice of taxonomy (after publishing).
Issue/Question 1:
What I'm currently missing here is the culture for which I want to retrieve the list of related items.
In #397 you indicate that this is not possible for the Contentment data list, but I was wondering if this is possible for the data picker, as it loads itself when clicking the 'ADD' button.
In a previous Umbraco 8 project, we managed to bypass this issue by retrieving the mculture/cculture in a custom .js interceptor.
Issue/Question 2
As I've already indicated above, the 'taxonomies' composition is also added to the 'FAQ Block' content block.
In the previous step, I would like to retrieve related content based on a choice at the page level.
In this step, I would like to populate the data picker list based on the choice in the 'taxonomies' composition at block level.
The problem here is that the ContentmentContentContext has no information about the block we are editing at that moment.
So my question is whether it would be possible to get context about the content block you are editing in a custom data picker data source.
Steps to reproduce
Simpler example:
Clean Umbraco v13.5.2 install
Clean Contentment v5.1.0 install
Create document types (for testing purposes, allow them to be added to the root as content):
Contentpage
Create element type 'FAQ Block':
Add custom contentment data picker
Add this element type to a Umbraco.Blocklist data type & add this to the 'ContentPage'
Create pages:
Create contentpage, add the FAQ Block
Debug the custom data picker. We are not able to retrieve any context about the culture OR the FAQ Block itself.
Expected result / actual result
No response
Do you have Umbraco ModelsBuilder enabled?
Yes, it is enabled.
What browsers are you seeing the problem on?
No response
The text was updated successfully, but these errors were encountered:
Working through the exposition, am I correct in thinking the 2 feature requests for Data Picker are:
Add culture/variant parameters to the API endpoints.
Add block data to the API endpoint and access that within ContentmentContentContext.
Does that sound right?
My initial thoughts on these are...
Yes, that's definitely possible, but I'd need to review whether that'd be a breaking-change or not.
I honestly have no idea how this would work, since Block data is effectively a JSON blob, it'd mean sending more data in the API request payload. It feels quite heavy to do this in a generic way (so that it can support a wider set of Contentment users).
I'm open to ideas/suggestions, but also wondering whether your requirements would be better suited to a bespoke property-editor? 🤔
Which Contentment version are you using?
V5.1.0
Which Umbraco version are you using? For example: 13.2.1 - don't just write v13
V13.5.2
Bug summary
Hi!
We have a document type named 'contentpage'.
On this contentpage, we've added a tab 'taxonomies' through a composition.
In this tab, an MNTP has been added where the following document type can be chosen:
This composition is added to every document type used as a page, as well as some content blocks used in a Umbraco.BlockList, such as the 'FAQ Block'.
This blocklist can be added on various document types. In this example we'll be adding this content block to our 'Contentpage' document type.
Example:
FAQ Item A:
Contentpage A:
Taxonomies tab: Product detail page nr1 (Picked in the MNTP)
FAQ Block: In the content blocks property, I add the 'FAQ Block'. On this block, I can also add taxonomies, as it also uses the same 'taxonomies' composition.
I can retrieve this information by using the ContentmentContentContext with which I can get the current page and thus also the choice of taxonomy (after publishing).
Issue/Question 1:
What I'm currently missing here is the culture for which I want to retrieve the list of related items.
In #397 you indicate that this is not possible for the Contentment data list, but I was wondering if this is possible for the data picker, as it loads itself when clicking the 'ADD' button.
In a previous Umbraco 8 project, we managed to bypass this issue by retrieving the mculture/cculture in a custom .js interceptor.
Issue/Question 2
As I've already indicated above, the 'taxonomies' composition is also added to the 'FAQ Block' content block.
In the previous step, I would like to retrieve related content based on a choice at the page level.
In this step, I would like to populate the data picker list based on the choice in the 'taxonomies' composition at block level.
The problem here is that the ContentmentContentContext has no information about the block we are editing at that moment.
So my question is whether it would be possible to get context about the content block you are editing in a custom data picker data source.
Steps to reproduce
Simpler example:
Clean Umbraco v13.5.2 install
Clean Contentment v5.1.0 install
Create document types (for testing purposes, allow them to be added to the root as content):
Contentpage
Create element type 'FAQ Block':
Expected result / actual result
No response
Do you have Umbraco ModelsBuilder enabled?
What browsers are you seeing the problem on?
No response
The text was updated successfully, but these errors were encountered: