Hi mates!

I've just began playing with drupal and I love it so far :)

Today I have a website for a swedish "dogclub" for the breed Australian terrier.

At the moment the homepage is driven by a CMS that I made myself. But I really would like to test drupal instead. But my problem is "Vetdata". It's a list with memberdogs and there veterinary examination result. Today, it looks like this:

http://aussieklubben.se/?m=vetdata&p=vetdata&get=a&id=13

Could something familiar be done with some of the modules / core that exist with drupal today?

Best regards, Patrik

Comments

diegogers’s picture

Use those two modules, with CCK you add custom fields to any conten type (or create a new one), so you could add "Regnr,Knä,Öga,Annat" as separete fields. And then with views you can create a cust list with that fields.

http://drupal.org/project/cck
http://drupal.org/project/views

pawe’s picture

Thank you for you answer!

That seems to be what I been looking for :)

Is it possible to make the veterinary examination result in some kind of subpage? And tie that examination to a specific dog? So when I a dog have made a new examination I just make a new examinationpage and tie that to the dog? How should you have done that?

Thanks again!

robertdouglass’s picture

You might consider making separate node types (content types) for dogs and examinations. Dog types would have name, breed, age, weight and such fields. Examination would have date, symptom, diagnosis, prescriptions etc as fields. Then, you would give the Examination node type a node reference field and restrict the target type to dogs. So every examination would refer to a dog. Then Views will give you options for how to present the dog reference, and you whould choose for it to be a link. Thus, your first view would be examinations, and every examination listed would have a refernce link to the dog that got examined.

- Robert Douglass

-----
Lullabot | My Drupal book | My Digg RSS feed

pawe’s picture

Aah, wonderfull. Drupal sure is powerfull! I must say....

Is there possible to make it reverse in somehow? No I have done as you wrote in your reply. Then I made a Viewtablelist with the dogs (and with a link on the dogsname). But is it possible to make the page with the dog also show the examinations? I mean. When you click on the dogs name the "dog info" shows up. But is it possible to also show the examinations on that dog? :) That would be exact as I want it (and have it now on my current homepage)...

Thank you so much for your time! Sure is appreciated!

robertdouglass’s picture

The need for bi-directional node references is recognized and I'm not up to date on the latest efforts along these lines, so doing more research and talking to people doing the coding will be useful to you. There is a CCK group where you can search and ask questions.

BUT in the absence of bi-directional node references, I think it is possible to make a view that lists examinations and takes the dog's id as an argument, thus giving you a list of examinations for that dog. There is a view field that you can add to content types which renders the view. So 1) create your view to show a dog's examinations, 2) use the view field and add that view to your dog type, 3) you'll have a list of all examinations a dog has had.

- Robert Douglass

-----
Lullabot | My Drupal book | My Digg RSS feed

pawe’s picture

Thanks alot!

I found a module that made all the work.. :)

The module was: Node relativity....

Drupal sure is funny too work with. And it just keeps getting better.. :D