Hi I am working one my school site. I need help with couple of things.
Create a student profile with CCk
create associated content types like marksheets,etc
Each student has a unique ID: Enrollment No
This would be the user name for drupal site.
and all the pages of the student will have the URL as school.org/students//
now to display the student in a section in a class of the year. We'll use books, such as
2008
-class 5
--section C
---
-----marksheets
-----competitions participated
-----custom pages added by him
Now url for last three items goes like this
school.org/students/enroll_no/class_section/
This can be done by editing the default URL alias, and putting the cck fields in the URL.
NOW THE PROBLEMS
1) how to create permissions that a student can author a page and outline to the book.
but restricted to his profile only.. and after he is promoted to next class he cant add any more pages.
I have never worked with OG.
is it possible to do with OG?
2) Mulitplying the views for each student.
Now i can create a view and define a path for A STUDENT like this
school.org/students/enrol_no
which shows every detail associated with cck field=particular enroll i.e that student.
now how do i achieve it for every enroll no and define the path automatically.
Comments
Og - See Book Expand
There is a module I wrote called 'Book Expand' which restricts the creation of Book pages to the group context in which the top-level parent book exists. All you need to do then is create a class for each student which corresponds to an Organic group, then when the student moves up, although their old book still exists, they won't be able to edit it anymore since they will be a member of a different group.
I just recently updated it, so it should work fine. Check it out.
Dave
thanks
Your module :
Last updated: September 1, 2008 - 12:01
How much time will it take it to port to 6.x version??
I am totally confused... how to manage the classes and students and specialyy students over all profile
i wanna have neat URLs like this
school.org/students/enrollno/ to show all the details of that student
as i mentioned we can do it via views for a particular students, but how do i do it for every one???
plus if the user is a part of a group its all posts goes under
school.org/students/enrollno/5_c/ where the student belongs to group 5 C
student will be a part of a OG, then i dont think there is any need of creating any custom profile field for his class.
But one thing anoys me, is the registration.
when the anyone will click the link "author" they will be redirected to user profile. is there any way i can add views to the user profile???
let me check out the OG.
Ok
Alrighty lots of questions.
If you want nice urls like that, look into Views Arguments. I was just reading about this today, and what you want looks like it is possible. Create 1 view, include some arguments, use the arguments to determine the content of the view. You may need some custom argument handling code, but probably not.
You can use the Bio/Nodeprofile module (I prefer Nodeprofile here but I forget why...) and the Panels module (or the Advanced User module) to customize the display of the user profiles pages, including things like adding extra tabs, etc...
Porting to Drupal 6 - the problem here is that the API for the book has completely changed and I can see that it will be some work to unravel the changes conceptually for me. Hence there may be a delay in the porting of my module, especially as I am doing it as a hobby rather than being paid for it (paid work always comes before unpaid work).
Thanks
I have installed content profile and OG
( in v6.x nodeprofile and bio are not supported)
Just playing with them!
I must start working on profiling the case study for the site from now. Otherwise if site is complete, i'll feel lazy to do it.
Teachers module is complete with CCk+views.
but the module content profile has given a new scope. Let me check it out.