Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jacob 39 posts 88 karma points
    Nov 24, 2010 @ 16:19
    Jacob
    0

    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.

     

     

  • Jacob 39 posts 88 karma points
    Nov 24, 2010 @ 17:13
    Jacob
    0

    Sorry for the double post, can not delete or edit the post.

Please Sign in or register to post replies

Write your reply to:

Draft