pagePicker on custom section and ClientDependencyPathCollection
Hello
Im trying to use a ContentPicker on a aspx page in my own section in Umbraco, whenever I try to use the ContentPicker like this post suggests http://www.nibble.be/?p=87 I get a cast error, eventhough the id 1034 is the datatype ContentPicker.
Now I tried using a pagePicker since that is aparently the datatype Umbraco sees 1034 as eventhough it says ContentPicker in the database.
pagePicker on custom section and ClientDependencyPathCollection
Hello
Im trying to use a ContentPicker on a aspx page in my own section in Umbraco, whenever I try to use the ContentPicker like this post suggests http://www.nibble.be/?p=87 I get a cast error, eventhough the id 1034 is the datatype ContentPicker.
Now I tried using a pagePicker since that is aparently the datatype Umbraco sees 1034 as eventhough it says ContentPicker in the database.
So far I got this code:
DataTypeDefinition dataTypeDefinition1 = DataTypeDefinition.GetDataTypeDefinition(1034);
umbraco.editorControls.pagePicker mediaPicker = (umbraco.editorControls.pagePicker)dataTypeDefinition1.DataType.DataEditor;
PlaceholderMediaPicker.Controls.Add(mediaPicker);
I tried looking at the editContent page of Umbraco and did the JsIncludes and have registered ClientDependency.Core but now I get
The PathNameAlias specified for dependency ../js/umbracoCheckKeys.js does not exist in the ClientDependencyPathCollection
Can anyone tell me if im working in the right direction and maybe give me some input how to get this to work.
Sorry for the double post, can not delete or edit the post.
is working on a reply...