By tassoman on
Hi to all. In version n. 5 we got the fantastic node creation tool. But this tool let you insert only a title and a body type fields. I would also add a rating field. It could be just a set of radio buttons, but it must store a number i can use in lists and views.
I've tried adding the module fivestars but this let visitors rate the node. I would let the writer add a rating to his writing, then users rate the same writing. Module userreview does it verywell but isn't ported yet to v.5. How to port modules to 5?
Comments
What about the VotingAPI
What about the VotingAPI add-on for cck 5.0? Haven't tried it, but it might be what you need? In the list of cck field add-on modules:
http://drupal.org/project/Modules/category/88
Should I use cck?
You mean I should use cck to create my custom node type instead of default built in 5.0 custom type support?
___________
by tassoman
geek, net addicted user
As far as I know, that is
As far as I know, that is cck, which is now built in to 5.0. Check out the list of additional fields (integer, decimal, text, etc) you can add to your type under "add field" tab when you create a new type . If one of those isn't applicable, you can find more via the link I provided. Upload them like regular modules, enable them under CCK in administer>site building>modules, and they'll show up in the list. :)
Could you elaborate on this?
I can't find any we to do this in a custom node editing mode. I know I can add fields to a user profile, but not to a custom node.
How are you getting it done?
Check your administer>site
Check your administer>site building>modules>cck to see if all the CCK field elements are enabled. You should see something like this (I'm running 5 beta but will be virtually the same):
http://i1.tinypic.com/2eqf0qr.jpg
Once those are enabled, go to administer>content management>content types, hit the 'add content type' tab and create your new content type. Save that type. When it appears in the list of content types, hit 'edit' to the right. You'll see tabs at the top of the editing form for your new type that say 'manage fields' and 'add field'. Hit 'add field' and you're off to the races, looks like this:
http://i13.tinypic.com/2ry0zde.jpg
cheers!
I thought your original post...
...implied that CCK is already installed into the core, but it isn't I just downloaded and I am about to test.
Thank for the heads up, now I have a whole new module to learn.
:)
Content types without cck
Would be better managing raw content types without installing cck. I mean all kinds of form input, no matter about if is date or if is numeric. Just support to add content types with radioes and/or chkboxes and/or select
__________
by tassoman
geek, net addicted user
I think I agree...
I think what you are saying is that it would be nice if the CCK functionality was part of Drupal core. I agree, but there are good points on both sides about pros and cons. I'm just happy that Drupal and CCK exist to begin with.
CCK should do what the user is requesting. I'm thinking integer (radio button) set to a single selection with the formatting:
For a five "star" system.
hey there, yeah, apologies:
hey there, yeah, apologies: I was both unclear and wrong - CCK is not part of core and I was under the impression OP was already using it; myself, I was using a 5.0beta install to which cck had been added. 5 does have a limited built-in content construction function of sorts but it's not cck and you need cck for any additional field installation.
I'm a big fan of CCK & think you'll really like it -- combined with Views, it's an extremely powerful tool for site construction. Just wish there were audio/video fields ready, but soon...
cheers.
What would I do with Views?
The thing I found with CCK is that even if I organize my input fields with CCK, when the content is actually displayed it doesn't adhere to the order.
I found this quite weird.
Would Views help me organize the order in which my contents' data is displayed?
Contemplate
Zoo, what you probably really want is the ConTemplate module, which delivers a fabulous screen o'variables that are available in any given content type, and allows you to theme each one however you'd like, add more html, whatever. In essence it automates the process of creating a new node-contenttype-tpl.php for each cck type. It's pretty brilliant, just has a few exceptions, like attached files and attached audio (it's limited by the kinds of fields other modules make accessible to it). Check it out!
Got it.
I got it.
I will be incorporating it so we can make it work for us.
Thanks.
Not working?
Hello
I've tried to add a vote-api rating type but it asked for a group before.Then I've added the group but there's any way to get the field shown... where's that? how i can edit already created fields?
Voting-api score content type is a field that appears only when node is published, so visitors could rate it. So now i have 3 equal fields called: rating, rating_0, rating_1, how to delete the unwanted undescored, and edit the first i've added to cck?
___________
by tassoman
geek, net addicted user
manage fields
use the "manage fields" tab after hitting 'edit' for that content type, I'm presuming?
Votingapi fields don't show in Manage Fields Tab
I wound up with the same problem of many identical votingapi fields before I realized they only showed up on publishing a node.
I would very much like to delete these fields but they do not show up under the Manage Fields Tab. Is this missing hook in the votingapi field. Is there some way to delete votingapi fields once you create them?
Don't think so...
When you manage a field you are allowed to set the display name.
The actual field name that goes in the DB is determined by your input to the display name. In your case, rating was used previously so it would create new field in the DB using _1 and _2 suffixes.
You don't have access to those in the UI, you will have to go into your DB to change them, just do a search in phpMyAdmin for "rating_1" or whatever you want to find and modify
Just make sure you know what you are doing before you go deleting that stuff.
To counter that, I found that I had to make the display name be something I'd like in the DB and then go back and change what it would look like to the user:
Good for user:
Movie
--Rating
--Artist
--Length
CD
--Rating
--Artist
--Length
For the user, if they are looking at a CD or Movie node, they don't have to see the field look like this:
CD
--CD Rating
--CD Artist
--CD Length
To them it looks best:
CD
--Rating
--Artist
--Length
But if I just enter rating in the field for CDs, I'd end up with rating, rating_1, rating_2, and so on when I also enter Rating for Movies, and TV Shows and so on.
I entered CD Rating instead so that the DB would store it as cd_rating, then I went back in and changed what the user would see (to avoid CD Rating, CD Artist, CD Length) to just rating under a CD node.
I hope that isn't too convoluted.