Hi, I am anticipating Drupal for a new community website. The site will involve my members submitting reviews of their CD's, DVD's and Book, but I need to know, can I use the 'submit article' feature to manage the submission of reviews? The reviews will somehow need to be sorted, and also, can I add fields for users to fill in... so rather than having one field that says: "type article" I could have several fields such as "type review", "type rating", "purchase date" etc. also, can I make some of these fields optional?

Thanks

Comments

schwa’s picture

Using the content.module, aka CCK, you can create new content types (based on Article node, if you wish, but called Book Review or Latest Film or whatnot) that have their own submission forms with whatever fields you like. You can set the fields to be required or not. It's really quite simple. Search under CCK (content construction kit) for lots of handbook pages that walk you through the process.

eviljoker7075’s picture

Thank you! That's prefect, just one more question, will that categorise things easily, so for example alphabetical artist name, or author etc?

schwa’s picture

Yes, I think that the fields are sorted according to weight, so you can place them in any order you'd like by setting their respective weight heavier/lighter (just like blocks) - easy to make the input alphabetical that way. And there are a number of different kinds of fields (text, numbers, pre-set dropdown options, etc) to accommodate whatever kind of input you'll require from the author.

If you're talking about creating alphabetical lists of the published nodes via their various custom fields, you can do that very nicely with the views.module. cheers!

eviljoker7075’s picture

Not checked it out yet, but on first inspection the point you covered in the second paragraph seems to cover my needs, thank you both very much!

eviljoker7075’s picture

One more thing, if I have an optional field, is there anyway I can hide this if a user does not fill it in. So for example on my site I ask for their favourite song on an album, however if they chose not to answer it still comes up with the heading on the published node - is there anyway I can stop that?

ryivhnn’s picture

I'm not sure how CCK works as of yet as I haven't gotten around to playing with it (despite it being installed on one of my sites), but if you have a template file for those nodes, you could add in an if statement around the bits of script that will pull the content from the forms so that they only show if there is something there to show.

Vague example:

 if $favourite_song != "")
{
  echo "Favourite song: " . check_plain($favourite_song);
} 

works at bekandloz | plays at technonaturalist