Skip to content

Get document type alias in a datasource when creating a content #414

Discussion options

You must be logged in to vote

@Didier-Marin Unfortunately, I can't think of any meta-data that can be hooked into, to get the Document Type of a new page. The IContentmentContentContext itself is a slight hack, in that it uses data from the URL's querystring (the current or parent page ID), which is fine for the majority of cases. But as you say, not ideal when requiring the current page's Document Type.

The alternative approach would be to develop your own custom property-editor to get the textbox's datalist items as an async fetch (HTTP request), then you could get the extra meta-data you need (e.g. Document Type alias or GUID) and send it to the server to gather the corresponding items.

In terms of future Contentme…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by leekelleher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants