Copied to clipboard

Flag this post as spam?

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


  • atze187 160 posts 215 karma points
    Feb 16, 2010 @ 13:25
    atze187
    0

    ContentPicker in custom edit page

    Hi,

    I've built an edit page for my custom section and have a grid which displays some values from an xml file and provides editing capabilities. As soon as I add the ContentPicker to the grid's EditTemplate (for users to be able to select their content from tree and not having to copy and paste some node id) and want to populate the grid, I get an empty response (which in Firefox leads to an "xml element missing in row 1 column 1" error, IE just shows an empty page).

    Is it possible to use the content picker in such a scenario?

    André

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Feb 16, 2010 @ 17:22
    Ismail Mayat
    0

    atze,

    Can you paste your code you are using to add the content picker onto your edit template, i have the following in a usercontrol in ajax panel 

                        <asp:Panel ID="pickerHolder" runat="server" Visible="false">

                        </asp:Panel>

    then in code behind

    private Helpers.PickerDataExtractor pagePickerExtractor;

    private pagePicker pagePicker;

    protected override void OnInit(EventArgs e)

            {

                base.OnInit(e);

                pagePickerExtractor = new Helpers.PickerDataExtractor();

                pagePicker = new pagePicker(pagePickerExtractor);

                pickerHolder.Controls.Add(pagePicker);

     

            }

     

    That gives me a working content picker, got this code from Tim's updated zipupload package from his blog.

    Regards

    Ismail

  • atze187 160 posts 215 karma points
    Feb 16, 2010 @ 21:19
    atze187
    0

    Thanks for that, I´ll give it a try tommorrow.

    André

  • atze187 160 posts 215 karma points
    Feb 17, 2010 @ 19:55
    atze187
    0

    Hi, been busy all day with some time-wasting stuff to do on our old (a.k.a. current) website, and it didn't work in a rush (tommorrow my office mates are having some appointments, so it's gonna be a good day to investigate further). I haven't found the source of the zipupload package, but I guess I need to reference the editorControls assembly to gain access to the pagePickerExtractor, right?

Please Sign in or register to post replies

Write your reply to:

Draft