Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Add new functions to CMS

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

Page: 1
Go to End
Author Topic: 917 Views
  • pean
    Avatar
    Community Member
    5 Posts

    Add new functions to CMS Link to this post

    I am sort of new to SilverStripe but getting into it more and more, now I am a bit stuck though.

    I want to add more pages to the CMS. I'll explain my scenario:
    I've created a contact form with a bunch of fields and a file upload and I want to show all the entries and link to the files for download in a list in the CMS.

    I've googled around for a while now, and all I got is a new button at the top of the CMS, how do I add new pages? Can someone point me in the right direction?

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: Add new functions to CMS Link to this post

    Get a look at ModelAdmin.php

  • UncleCheese
    Avatar
    4085 Posts

    Re: Add new functions to CMS Link to this post

    Well, the docs will be a little more useful than the PHP file.

    http://doc.silverstripe.org/doku.php?id=modeladmin

  • pean
    Avatar
    Community Member
    5 Posts

    Re: Add new functions to CMS Link to this post

    Thanks, that should get me started.

  • MateuszU
    Avatar
    Community Member
    89 Posts

    Re: Add new functions to CMS Link to this post

    If you subclass LeftAndMain, the CMS will pick up the class automatically, and insert it in the CMS menu. Have a look how the CMSMain is done, and steal the code from there. Why are you implementing that wihin CMS, may I ask? What's the scenario?

    Cheers

  • pean
    Avatar
    Community Member
    5 Posts

    Re: Add new functions to CMS Link to this post

    I sometimes have difficulties getting mail through properly, and since I already let the customer login to the CSM to control their own content, it seems like a good idea to put content coming from the website there too.

    I also though that is should be a good start to start playing around with the CMS...

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