Hi,
I want to extend user profile to allow users to input multiple entries of the same information, e.g. I want users to add in their languages skills, education, experience etc... which could be multiple entries. Just to take one exampl education, a person might have several educational information to put in like his Bachelors Degree, Masters etc... so each degree should specify something like the school he/she attended, the years that he/she was there, the field of study and so on.
So my question is how can I provide the user with a form containing these fields for each time he/she want to enter his/her educational information? Is the a module for that? I have checked out content profile module, it allows you to specify the fields using cck, but only allows one entry for one content type.
Thanks for reading this.
Comments
Content profile..
If you enter a text field using cck and content profile you can have the field use multiple values.. the option is there under global settings.. "Number of values: " then a drop down box.
Actually that's not what I really want
First of all thanks for your reply. Second I have to say that is not what I really need, what I need is to have multiple entries of full educational information like this:
User1
-Educational Information 1
-Level: Master's Degree
-Field: Business Administration
-Institution: Harvard
-Dates Attended: 2005-2007
-Educational Information 2
-Level: Bachelors's Degree
-Field: Economics
-Institution: Yale
-Dates Attended: 2000-2004
This means, that with a certain user, we can associate one or more education content types (created using cck and attached to the profile of the user using content profile). So my questions is can I do that? If so how, is there a module that will allow me to do so, or am I going to do some code adjustments?
Thanks again.
=-=
seems to me you want to create views (lists of data) and with the content profile.module list those views in the panels provided.
I tried that but ...
Well I tried that, I made a page view, and assigned it a menu tab for it menus entry, the view it self consisted of a list of a custom Education Content Type entries, meaning the user created several nodes of type Education, then those nodes were listed in the views page.
However when the page is displayed, the title and the parent menu tabs are messed up, making it look like another page, I wish I could attach some images here it would make things clear. Anyways in short the views thing didn't do it for me.
Thanks for your help, anymore suggestions would be very much appreciated...
You can do what your asking with a View
You can get to what you are looking for by creating a view and then embedding that view in a block that you only show on the user pages.
*Note replace 'Education' with whatever you named the view when it was created.
_
What am I missing? Why use views_embed_view rather than simply create a block view?
the core profile
This is doable using the core profile module and adding addition all fields, either select boxes, text fields and text areas.
I think my profiles have 15 or so extra fields.
administer > user management > profiles
at the bottom of the page is a list of different fields you can add.
sorry
I guess there are lots of different ways to do things. I think we both replied at the same time
Well you can have that but...
What I want is to have a single form with only the fields mentioned above, then use that one form to enter several educational information. Meaning a user has one or more nodes of type Education, which is attached to his/her profile.
What you suggested is to have a single form which has the fields mentioned above repeated as much as I want to and then let the user fill everything at once, using that same form. Yes you can do it that way but that would raise questions like, how many times should I repeat the fields, should the repeated fields be visible or should I add an "add more" link and show the repeated fields only then? I hope you get my point.
Thanks for all your replies please keep them coming.
node reference to education node.
What I would do is use contemplate module and the prepopulate module.
Using contemplate, add a link onto the Profile that says "Enter you Education Information"
When a user clicks this, it takes them to a new education node and automatically creates a node reference back to profile. You can do this using prepopulate module or the nodereference_url widget. The new node will have a node reference back to the user profile, call it "User". Then the new node will also have all of the fields you list above that the user can complete.
Using the nodereferrer module, you can then insert a view of a users educational achievments into the profile. Or, you could even have a block that comes up when you view the user profile.. that would be cool.
Other options you could use if you don't want to use contemplate and prepopulate include node reference Popup add and reference (http://drupal.org/project/popups_reference)
that sounds neat too
I like tpaintons idea and WorldFallz must know some inside info about CCK3.. I need to look at that..
On one site, I made the profile fields in groups or categories so they are on different tabs in the Edit user profile. It has About Me, My Details, My Links, Account and Location tabs for editing, but all the fields show on the profile page and no references are made in the site to those fields, but I suppose that is possible too. The profile page does show the groups, but they are still all on the one page.
_
If you're feeling really brave you can try out the v3 version of cck which includes the new functionality of creating combo fields-- so you would add an education combofield consisting of all the fields you want and it would be treated as a single field. Another option is http://drupal.org/project/flexifield.