Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

TreeDropdownField


Reply


330 Views

Avatar
Sultan

Community Member, 8 Posts

25 March 2013 at 7:56pm

Edited: 25/03/2013 8:01pm

TreeDropdownField makes the page blank. The version i m using is 3.0 When i open the treedropdownfield which contains the list of all local pages and then resize the window the page goes all blank. I dont know whether its SS bug or some bug which came coz of my work.
Console has this error - TypeError: $(...).attr(...) is undefined
[Break On This Error]    
...redraw:function(){if(window.debug)console.log('redraw',this.attr('class'),this.g..
leftandmain.js

I have added the field in the following manner -
public static $has_one = array(
'PGFirstThumburl'          => 'SiteTree',
)
$PGFirstThumbImageURL = new TreeDropdownField("PGFirstThumburlID", "URL for image one", "SiteTree");

If there is anything plz help me...