Skip to content

Data List: Custom Data source accessing the querystring ID #30

@SvenGoormans

Description

@SvenGoormans

Note: for support questions, please use the Umbraco Community forum. This repository's issues are reserved for bug reports and feature requests.
Hello !

We're using contentment package to replace the NuPicker from Umbraco V7.
We have several custom property editors with each their own custom data source.

The problem we're having is that in our GetItems method we can't reach the Id of the node that we currently are loading in the backoffice. The request url is always '/umbraco/backoffice/UmbracoApi/Content/GetEmpty?contentTypeAlias=theAlias&parentId=-20'.

What is the current behavior?

HttpContext.Current.Request.Querystring["Id"] = null

What is the expected behavior?

HttpContext.Current.Request.Querystring["Id"] => Should be the Id of the node we're loading in the backoffice.

What is the motivation / use case for changing the behavior?

We have different homepages for each culture. In each homepage we have a configuration node with a list of items. Those items are used as custom data source. Without the Id of the node where we need the items, we are unable to know which homepage we need to get the items from.

Please tell us about your set-up:

  • Contentment version: [1.0.0]
  • Umbraco version: [8.6.1]
  • Browser (if applicable?): [all]

Anything else?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions