Jump to:

5451 Posts in 1673 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » CMS assets ajax file selector customization

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

Page: 1
Go to End
Author Topic: 837 Views
  • ROlckers
    Avatar
    Community Member
    8 Posts

    CMS assets ajax file selector customization Link to this post

    I would like to know where (specifically in which file and function) the code is executed when a request similar to the one below is sent (via ajax):

    http://<URL>/admin/EditForm/field/<PAGETYPE>/EditFileForm/field/ExistingFile/tree?forceValue=

    This request is sent when a file from e.g. Attach Image -> From the file store is selected and the dropdown field is populated with a list of files. I suspect it has everything to do with CMSMain.php -> getEditForm(), however I'm not sure and don't want to just start hacking away.

    Your help would be greatly appreciated!

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: CMS assets ajax file selector customization Link to this post

    I assume that ExistingFile is a TreeSelectorField? In that case this URL will be handled by the tree() method of TreeSelectorField.

    837 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.