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.

Archive /

Our old forums are still available as a read-only archive.

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

Custom Table Administration


Reply


7 Posts   2828 Views

Avatar
sarahk

Community Member, 46 Posts

21 July 2007 at 7:16am

I've created 3 new tables for my SilverStripe site and now I need to manage them. Each table needs to be administered.

I've created a controller and I can see my form showing on the site (doesn't do anything yet).

In the admin section I can see my "page" and it's looking like a content page right now. I need it to have 3 separate forms
* to add/edit/delete rows in table 1
* to add/edit/delete rows in table 2
* to upload csv files, groom data and insert into table 3

If I create something like the NewsHolder::NewsPage concept for this won't I end up with a similar structure at the front?

What is the best approach for working wiht this?

thanks

Sarah

Avatar
xmedeko

Community Member, 94 Posts

21 July 2007 at 10:32am

maybe GenericDataAdmin? http://doc.silverstripe.com/doku.php?id=genericdataadmin

Avatar
sarahk

Community Member, 46 Posts

21 July 2007 at 2:10pm

Thanks, that gives me something to get started with :)

Avatar
sarahk

Community Member, 46 Posts

23 July 2007 at 5:31pm

Thanks

I used the tutorial at http://doc.silverstripe.com/doku.php?id=leftandmain and changed the classname to GenericDataAdmin. I've got the base screen up so now i can start to play :)

Is the artist who did the buttons available to do more?

Avatar
sarahk

Community Member, 46 Posts

8 August 2007 at 1:29pm

I've been off this project for a bit and back at it now, trying to work out what I should be putting in my javascript so that it catches the correct info on the left and makes the correct call to the right.

Are there any tutorials on how to extend LeftAndMain_left.js?

Avatar
elijahlofgren

Google Summer of Code Hacker, 222 Posts

9 August 2007 at 6:45am

> Are there any tutorials on how to extend LeftAndMain_left.js?

I think you were able to work this out in #silverstripe yesterday?

05:37 < sarahk> elijah - who do we submit changes to the docs to?

Hi Sarah,

If you want to edit the wiki simply [url=http://doc.silverstripe.com/doku.php?id=start&do=register]register[/url] and then [url=http://doc.silverstripe.com/doku.php?do=login&id=start]login[/url]. :)

If you are talking about the API docs, you can submit a patch on the [url=http://www.silverstripe.com/contributions/]Contributions forum[/url].

Hope this helps,

Elijah

Avatar
sarahk

Community Member, 46 Posts

9 August 2007 at 8:16am

Thanks Elijah

I wouldn't touch the api docs but I have stuff to add on the tutorial... not all the way through yet but I know alot more than I did!