Jump to:

23481 Posts in 18965 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Strange CMS error.

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: 714 Views
  • NeoTech
    Avatar
    Community Member
    5 Posts

    Strange CMS error. Link to this post

    I have a little bit of a weird problem with the CMS.. after trying to make a module for the CMS. The UI generator start acting up..

    The initial render of the Administration UI works fine. But now the tabs dont render properly anymore..
    I have removed my mod, and even reinstalled Silverstripe to a blank databasen and the error persist.

    Check attached file for more info..

    Attached Files
  • NeoTech
    Avatar
    Community Member
    5 Posts

    Re: Strange CMS error. Link to this post

    It seems like it is my theme that are messing about with the administration.. how can that be?!

  • NeoTech
    Avatar
    Community Member
    5 Posts

    Re: Strange CMS error. Link to this post

    Tried something..

    I opened the _conf.php file in mysite.. And pressed the "About" page in the admin and clicked the behaviour and todo tabs.. worked fine..

    Then without reloading the page, i changed the theme in _conf.php file. And then clicked the todo tab and behaviour tab. And then it didnt work..

    I changed the theme back again and pressed the tabs and it works fine, note this is without reloading the page.

  • NeoTech
    Avatar
    Community Member
    5 Posts

    Re: Strange CMS error. Link to this post

    Now i found out why the error occured.. now is the question why..

    i had put a file in my include that were called "Form.ss", and i did it to reformat the generic form on my frontend..

    The facinating thing is that Silverstripe uses the same Form.ss file in my theme for the Admin... Why?!

  • Willr
    Avatar
    Forum Moderator
    5503 Posts

    Re: Strange CMS error. Link to this post

    Because Form is used to render all the forms on the site. It is the default template. If you want a custom template for your form you will need to override the renderWith() function on your form object

    Note that as you have found out SS allows you to theme the cms from your themes folder so you need to be a bit careful with where you place elements.

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