Just having a look at CCK, as from what I can glean it looks useful to learn - and could be excellent for a potential project of mine.

Seen it's usable by non-programmers, but I'm afraid I'm having a tough time figuring what on earth it's all about.
So, maybe a few notes and questions could be useful if anyone is prepared to help me out, sometimes just confirming if my notions correct or wide of the mark. (Who knows, if I figure out a bit of it, may have a go at some info for others who might be even slightly as bamboozled as me. [If there are any such people!])

First, I'm new to Drupal (used Mambo/Joomla); got some notions re Fields, Taxonomy etc.

I have looked at the CCK "Handbook", and much of it went right over my head. Maybe missed easier guide: if so, a link to this should suffice.

Right, so I can create a new content type, save something
But, this isn't interesting.
Need to add Fields, and maybe Groups; and here, I'm sucked into quicksand. (Not Drupal Hell, but an afternoon of befuddlement.)

Groups: just for the heck of it, I created a group - Brian (!) - but was none the wiser about it. What's this a group of? [Fields? - after creating a few, so can cluster together?]

On to Fields; tho really I tried Fields before groups. Various types.
Node reference: On testing, gives content creator chance to select from list of nodes; linked titles of those chosen appear on published page. Could be very nifty.

Integer: so, we're looking at whole number(s) here. Lists; tho not too sure yet what they'd be good for in output.

Decimal: not sure why have Integer and Decimal separate, but presumably works better this way.

Text list: would seem the place if I want to display lists like "spoonbill, swan, egret". But not sure which choice of list is best.
Also choice for leaving blank text box, for content creator to type in.

User reference: Testing, I find that can show my user name, say, link to my profile, in output.

Widget: maybe useful to define what one of these is; I have some idea.

In choosing widget specifications, I also get rather confused. (! - yes, you're expecting that of me by now)

Required/multiple values. I think: must choose a value, and/or can pick more than one value.
Minimum, maximum values for integers. But, what happens to those in between? [Initially, I'd thought that may be automatically generated, rather as Excel can complete cells; but not really so complex]

one value per line, in the format key|label.
so, might have an integer on a line; another integer on next line, etc
labels - might be units of measure

php code ... gonna leave that to the ninjas.

Right, so I can create Fields of several kinds, even if I don't know what they do exactly.
I can assign them to groups, though I don't know what these are groups of (just of fields, for keeping them together?).

I'd guessed that when I edit my cck test content type, I'd see the extra fields. But, no.

I do see the fields when I go to create content, using the cck test type.
Can then do some creation, and have a look at Preview to see results.
These do give some inkling of how to proceed.
One oddity: for the heck of it, I set max integer of 12; but even selecting 1, I'm getting error message saying value can't be over 12.

Right, before I develop further need for boxes of panadols and copious amounts of beer, I'll close now.
Hope the above isn't too taxing.

Comments

karens’s picture

You're right that we need a good beginning tutorial for a user, but no one has had time to write one yet. This is a good example of the thought process which would be a nice thing to refer to when writing it to help clarify the issues. I have tried to get CCK documentation cleaned up, but just ran out of time to work on it.

My biggest question here is why you aren't seeing any fields after creating them. When you edit a content type, you see a tab called 'Manage Fields', right? You must have gotten that far if you were able to add groups and fields. When you add new fields, they should show up on 'Manage fields' tab. Any groups you create will show up there, too, and your fields will be inside the group you assigned them to.

If there is nothing showing on the 'Manage Fields' tab, something is wrong with your installation. Try uninstalling any non-core modules except the content.module and a couple of the basic field types (the one's you've created so far -- number, text) in case you've got something else installed that is interferring with things and go back and look at the 'Manage Fields' screen.

Let's get this much cleaned up before answering any of the other questions.

DocMartin’s picture

Hi Karen:

Thanks for the reply, and for taking time to read thro my guff!

I hadn't meant that don't see fields: they show up in Manage Fields (where it started to seem that "groups" were of Fields - not users, say) and in Display Fields.
Even got myself a taxonomy field: looks like it could be very useful for helping navigating the site, if can wrap my brain around various notions.
Also imagefield, which puzzles me (having tried using it).

But, I'd figured I'd also see my shiny new Fields when hit "Edit" for my new content type. Instead, just seeing the default field types - title, body; nothing new.
To see the new Fields - and get some idea of what they do - had to "create content" using new content type.

Hope that's clearer.

Martin

karens’s picture

Title: How to info for Drupal duffer, please » Create a good beginner user tutorial
Category: support » task

If I'm understanding you right, you are seeing things exactly as they are designed to work, so the problem is really just one of explaining and documenting things better. It may be that the UI could be improved (it's already much better than it was), but there's no immediate plans for making dramatic changes to it.

So I think I will mark this as a task -- to use your experience to help design a beginner tutorial that will anticipate questions like this and provide some explanations.

The one thing you mentioned that looks like it might be a bug is if you set a number to be no higher than 12 and it won't let you input a valid value, so please open that up as a separate bug report so it can be followed up on.

It sounds like you've made it this far -- you have a new content type and you have added fields to it, even if you would expect it to work differently, so you can now create content and start to get a feel for how this works, which is what I suggest you do next.

DocMartin’s picture

Yes, it's the explanation/documentation that I found wanting.
Hoped that the lengthy info with questions might go some way to helping with fairly basic tutorial; it seems to me that with this, CCK should be accessible to most people who have made it this far in Drupal (installed it, know re content etc).
I can perhaps help w tutorial - at least comment on whether I'm befuddled!
There may also be places in UI where could have some more text explaining what's going on.

I've done a little with making content, seeing what happens; maybe need to mull on results, do some more experimenting, and figure how to put CCK to use on my site (and the one I may do, for which CCK plus views could make v strong combination).

OK, will file bug report re the integer and max value.

krisna123’s picture

helo, i'm newbie in here, i cann't find any tutorial for create field for cck. plz help me.
can i use database for content in cck field? plz some one give me an example.

maybe use php code??? db_query???
plz give me a tutorial. thx.

karens’s picture

Status: Active » Fixed

It may not be perfect, but there is now a 'Getting Started With CCK' tutorial in the CCK handbook at http://drupal.org/node/162242.

Anonymous’s picture

Status: Fixed » Closed (fixed)
gurukripa’s picture

there's one problem with the fields..they show on manage fields until they are assigned to a group..after that...they dont..they only show on the DIsplay Fields..

The problem is that then its not possible to edit the fields at all..this is a Bug i guess..

ANother issue is there's no way to order the groups..

cld u advice on this??