Hello
I created a cck field with a Text field called "user_category" with "Check boxes/Radio button" type.
In "Allowed values list", I entered 3 values:
0|Student
1|Lecture
2|Worker
In my Content type (that has the fields above), there are three radio buttons, so I can select "Student", "Lecture" or "Worker". I then created some records using this Content type (or form). So far so good.
Now, I have to create a module that will show the list of records. For each record, I have to display user_category such as "Student", "Lecture" or "Worker".
There is a simple way to do that???
The problem here is that the three values above is added into table "content_node_field" with very funny String as following:
field_user_category | text | a:4:{s:15:"text_processing";s:1:"0";s:10:"max_length";s:0:"";s:14:"allowed_values";s:24:"0|Student
1|Lecture
2|Worker";s:18:"allowed_values_php";s:0:"";}
Could you please help
john
Comments
Have you checked out the
Have you checked out the views module.
thanks, but
but I want to have more control over the list . For example, at the bottom of the record list , I want to add a link "Add new record" to link to the form. Also an user only can see the list of records that were created by that user. Can I use "views" module to do that
Yes, you can filter on
Yes, you can filter on current user and you can use the footer text to add the link.