Remember me? forgot password | register

SilverStripe Forum

8059 Posts in 2078 Topics by 1154 members

Jump to:

Site Builders

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Community » SilverStripe Forum » Site Builders » TreeDropdownField in Popup
Page: 1 go to end Reply
Author Topic: TreeDropdownField in Popup 1279 views
  • OzziNL
    avatar
    Community Member
    22 posts
    2 SilverStripe Sites

    TreeDropdownField in Popup Link to this post

    Hi,
    I want on a complextablefield a TreeDropdownField ( used it when it was a page ) but it's gives a Javascript error when loading the tree.

    Should this work or is it a bug?


       function getCMSFields_forPopup() {
    $fields = new FieldSet();
    $fields->push( new TextField( 'Label' ) );
    $fields->push( new DropdownField( 'Style', 'Banner style', array('mooi' => 'mooi', 'lelijk' => 'lelijk' ) ) );
    // $fields->push( new TextField( 'Link' ) );
    $fields->push( new TreeDropdownField('Link','Link','SiteTree') );

    return $fields;
       }

    Attached Files
  • Ingo
    avatar
    Core Development Team
    313 posts

    Re: TreeDropdownField in Popup Link to this post

    this is a pretty complex piece of code, we can't get much mileage out of the provided error-message. can you please install the IE script debugger (http://blogs.msdn.com/ie/archive/2004/10/26/247912.aspx) and post the specific error you're getting?

  • OzziNL
    avatar
    Community Member
    22 posts
    2 SilverStripe Sites

    Re: TreeDropdownField in Popup Link to this post

    Okay, installed the script debugger. The messages I get are then:

    First click on '(Choose)': row 496 'null' is empty or not an object (see line496.jpg)

    Second click on '(Choose)': row 1803 Type does not match (I hope good translated from dutch) (see line1803.jpg)

    I hope you can use this information, I'm not very familiar with script debugging but otherwise I can give you the url of my development site. (and the admin/passwd)

    Last edited: 9 January 2008 at 1:15am

    Attached Files
  • Ingo
    avatar
    Core Development Team
    313 posts

    Re: TreeDropdownField in Popup Link to this post

    that helps a lot, thanks! i don't have time to debug this now (its pretty much a border-case), but created a ticket: http://open.silverstripe.com/ticket/2106

  • OzziNL
    avatar
    Community Member
    22 posts
    2 SilverStripe Sites

    Re: TreeDropdownField in Popup Link to this post

    Great! Thanks!

  • schellmax
    schellmax's avatar
    Community Member
    10 posts

    Re: TreeDropdownField in Popup Link to this post

    i have the same problem, the ticket has now been open for 4 month...
    ist there a workaround how to get a link choose in the popup?

    Last edited: 16 May 2008 at 8:45pm

    1279 views
go to top Reply

Currently Online:

Sigurd, Wojtek

Welcome to our latest member: Anonymous user