Jump to:

23007 Posts in 11866 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » nestedurls branch

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

Page: 1
Go to End
Author Topic: 801 Views
  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    nestedurls branch Link to this post

    Hi, I was just wondering what the state of the nestedurls branch is? I know it's not due until 2.4 but I was wondering how up-to-date it is with the stable release and whether anyone's had any luck getting it to work. I'm guessing it's relatively old since the code looks very different from 2.3, even in parts that have nothing to do with URLs.

    I've been having a go at it but it seems like I'm running into error after error, particularly around forms in the CMS. So yeah has anyone gotten it to a working state or is it something I'll have to live without for now?

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: nestedurls branch Link to this post

    Hey There, I'm the maintainer for the nestedurls branch.

    The code in the nestedurls branch is very up to date, but is actually based off trunk rather than the 2.3 branch. I (and others, including the core SilverStripe team) have used the branch successfully for multiple projects, and it seems to be working fine overall. Could you elaborate on your projects perhaps?

  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Re: nestedurls branch Link to this post

    Well I'm pretty stoked to hear that...http://svn.silverstripe.com/open/modules/sapphire/branches/nestedurls IS the place to get the latest version?

    I've basically had problems I've had so far:
    TreeDropdownField - needed to remove a section of TreeDropdownField::tree() that was throwing the "TreeDropdownField->tree(): the object #$ID of type $this->sourceClass could not be found" exception...just commenting out that block seems to make it work fine.

    Folder - had to remove the code that adds the "Unused files" tab because it didn't think Folder_UnusedAssetsField existed, or something to that effect.

    Form - had to change "return $this->controller->Link($this->name);" to "return Controller::join_links($this->controller->Link(), $this->name);" in Form::FormAction() so the tree dropdown in Image fields would load. Otherwise it had a "Action 'field' isn't allowed on class Image_Uploader" JS error.
    Also commented out the "if($this->validator->getErrors()) {}" block in Form::FormAttributes() because little popup forms in the CMS had [null] validators and it was causing an error.

    Of course for all I know I might have managed to download and old version or something...

    801 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.