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

Add Module Config to Admin Panel


Reply


4 Posts   2478 Views

Avatar
Adam

Community Member, 2 Posts

20 January 2008 at 3:40pm

Hi guys,

Been looking for some info for a while, but can't seem to find it. I'm building a site for a client who needs a module for adding available courses, but I can't seem to find any information about adding a new panel to the admin interface.

The two options I'm looking at are, adding a new page up the top (where Site Content, Files & Images, Newsletter etc are), or is it possible to create a new page type specifically for this, and add a new tab within the "Content" tab of the page (next to Main and Meta Data maybe).

I think I've seen that this is possible, but can't for the life of me find where I read it.

Cheers,
Adam

Avatar
SilverRay

Community Member, 167 Posts

20 January 2008 at 4:45pm

Edited: 20/01/2008 4:50pm

Very possible. I suggest to have a thorough look at the tutorials, see
<http://doc.silverstripe.com/doku.php?id=tutorials>
For instance, in the second tutorial you can see how to add a tab like you described, with the addFieldToTab thingie; in the fifth tutorial you can read how to set up relationships so that you can 'attach' your course information to pages. You'll want to create custom page types for this.

Does this help you? Or you need more specific examples?

Avatar
Adam

Community Member, 2 Posts

21 January 2008 at 3:07am

Yep, the tutorial, awesome :)

I knew I'd read it somewhere, thanks for your help!

Now, I've got the courses details entered, is there a way to mod the search tutorial, so that it only searches the "Courses" information?

I'd like to have a search engine on this page, with the ability to search for the course name etc (but only show results that I've entered in the courses tab, so narrowing SQL query down to just the particular "courses" db table). Is that also possible? Any particular pointers?

Thanks again,
Adam

Avatar
SilverRay

Community Member, 167 Posts

21 January 2008 at 12:16pm

Well, I would like to know that too. The problem I have is that the search function does not search the contents of the many_many relations that I've set up (whereas you want to have the search function work *only* for these specific tables)...

Perhaps one of the core developers can chime in on this?

Thanks!