I'm having a tough time conceptualizing this for some reason. My site, KidPub.com, is a place for kids to publish stories. I'm trying to set up pages that a classroom can use. What I 'm trying to put together is:

- A landing page for each class. Call it a Class Page.
- The Class Page has content that can be edited by a teacher/page-owner, but not with the Edit tab, I'd like to use a webform instead.
- Each Class Page has a link for the teacher/page-owner to add a new story to the page
- Teachers should be able to manage their class' stories (edit, delete)
- Stories should display a link back to the Class Page

I've been trying to do this with Views and Contemplate with not much success. The landing page is simple...I've created a new content type, Class Page, and there's a View to display a list of them.

My attempts have been mainly around using the UID of the Class Page owner to group the nodes into a class, since the individual students are not necessarily site members...the teacher owns all of the nodes and the author field for a particular story is simply a text field. I'd like to avoid allowing the teacher into the Edit tab, as I don't want them messing about with things like Comment settings and such. I'd rather present them a simple for to add a story.

My trouble is in getting a View to show up on the Class Page with the correct stories, and in setting up the webform to add a node.

Am I at least on the right track. or would you do this differently? I'd prefer to use out-of-the-box Drupal modules but I have done a fair amount of PHP in the past.

Thanks...

Perry
www.kidpub.com

Comments

sepeck’s picture

This is probably to late for your site but have you looked at the DrupalEd distro? They may have a solution for this in their setup you can look at. See also their groups site

From your description it sounds as if you may need Organic Groups though I can't think of a way to get around the 'edit tab' update.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

pbarnett’s picture

Hi Perry.

Have you looked at Organic Groups?
It would allow you to set up a group for each of your classes, offers a lot of features, and integrates nicely with Views.

Worth a look.

Pete.

N6546R’s picture

I looked at OG, but the use case isn't really a group, it's one user (the teacher) with edit privs on 'their' page. I'm leaning toward Contemplate with custom tables.

pbarnett’s picture

Yes, I'm impressed by the API that Contemplate delivers; despite being an aging programmer I still like to get my hands dirty ;-)

N6546R’s picture

So now I've been playing a bit with OG on my dev site, I can see how it could be modified slightly to serve my purpose. I'd basically just need to disable a few features, and I'd end up with a single-member OG for each class. It's probably overkill for what I need, but it would avoid a fair amount of coding.

pbarnett’s picture

Sorry, sepeck; I replied to a stale copy of this and didn't see your post.

Pete.

sepeck’s picture

the more people recommending resources the better. If if those overlap :D

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

nevets’s picture

While I have not used the mySite module it sounds like it could be useful for what you are trying to do.