Adding a default page for a teacher and giving only their user the ability to modify it.

Events happening in the community are now at Drupal community events on www.drupal.org.
cameronheikkinen's picture

I was wondering if anyone knew a way to make the following happen.

  1. When a new user is created, add them a default page that says something like, "Coming soon..."
  2. Set a specified url for that link.
  3. Allow only that user that is created to modify it.

If anyone has any insight in this issue, it would be greatly appreciated.

Comments

Content profile

bonobo's picture

http://drupal.org/project/content_profile

This should do the job very well, although it sounds like you are not envisioning this as a profile page.

Feel free to post back with more details re your setup.

Cheers,

Bill


FunnyMonkey
Click. Connect. Learn.
Using Drupal in Education

I've got that module

cameronheikkinen's picture

I've got that module installed, but that's not really what I'm looking for. I don't really want this as a profile page. I want to be able to let the teachers in the school use this page and add pages underneath this page.

I'm using ldap data for the initial login of the teachers and I would like to have it setup so I don't have to create all their initial "blank" pages for them. I was hoping there was a way to give them a page and let them create children from that page. So in a sense each teacher gets a sort of splash page.

I hope that makes more sense,

Thanks,
Cameron

What about a book page?

ano1's picture

Hi,

Another twist would be Bill's solution along with the content type of book, or another outline enabled content type. This way, they would have their main page, and then be able to add child pages to that. If you were worried about the creation of this initial node, I can think of two options.

  1. Use logintobogin to automatically send them to the node add screen when they login the for the 1st time and/or the page is created.
  2. (unproven concept) us an action or trigger to create the node upon initial login or account activation.

Good luck, hope this helps on some level.

Ano1

The action/trigger is a nice

cameronheikkinen's picture

The action/trigger is a nice idea, but I'm not sure that you can add a page when a user logins in (say for the first time). It would be great if there was a module for that.

After that I think that it's not a big deal, as far as using the book content type, because I'm only allowing them to create a specific type of page. Upon creation of that page, I have url auto-aliasing setup so that it goes under there department/teachers/username/(new content here). So it would be something like this www.schoolsname.com/highschool/teachers/frank/.

I think what I have setup currently would work, except I will have to manually go in and give each teacher a page. After I give them a page, I set them as the author, so only they can modify it. (This is the way I have it setup with permissions. Each teacher can only modify their own content. This may be a really bad way of doing this).

If you have any other way that this would work, say a different permission set, let me know.

Thanks again,
Cameron

Found a Solution

cameronheikkinen's picture

I found out how to do what I wanted.

I used ano1's idea of the action/trigger. The rules module was the answer. It allowed for an action to happen when a user logs in the first time.

I setup an auto-alias url for the new users in a certain group (actually it's a content page). The user then logs in and gets redirected to their blank page, and then only they can modify it. Also they can only add children to the first page that gets created for them.

My new question is whether the views module can somehow get all the children links and display them in the "teachers" page. This way the teachers don't have to know any html to link from their "main page" to their "child pages."

I hope that makes sense.

Any help would be appreciated,
Thanks much,
Cameron

Drupal in Education

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: