Hi,

Could someone tell me the best way to create an address book on my site? I'd like authenticated users to be able to add/delete their own entries. I'm still really new to Drupal so the more detailed the explanation the better!

Thanks :)

Kristen

Comments

vm’s picture

goto administer -> content types
click on add new content type
create a new content type and call it address

expand on the fields you can add, by installing CCK.module and the CCK addons in the download area, CCK category.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

turkeybat’s picture

In a previous, but failed attempt to figure out how to make an addressbook, I've already created an "addressbook" under content types and added fields for it.

I also have CCK.module installed. I have not installed the CCK addons.

What else do I need to do to get the adressbook working?

Thanks!

Kristen

vm’s picture

cck.module doesn't do much more on its own beyond core without the field addons. Investigate the addons in the CCK category and add fields you find necessary for an address book.

like .... address field see: http://drupal.org/project/cck_address

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

turkeybat’s picture

Ok, I've uploaded the Address field for CCK and activated it and set it so authenticated users can access it. Now what do? I have the content type "addressbook" and it's fields created. I'm assuming these two things need to link together so I can see something?

vm’s picture

I assume you mean a list ?

if so you have two choices, read: http://drupal.org/handbook/modules/taxonomy

This will introduce you to how to organize your content so that lists can be created.

Then you want to pay specific attention to:

Using categories in menus

The menus on your site can call for items that match specific taxonomy terms--that is, terms you’ve named your categories. Here's how.

When you create a new term, Drupal assigns it a number. And you can call up all the items categorized under that term by calling for its number.
To see your term's number, go to the categories page, choose list terms for the category to which your term belongs, and now hover over your term's name in the list. You'll see the number.
Now, on the menus page (administer >> site building >> menus) you can create a menu item for your term. Select add item, and when you fill in the path field you add your category like this:
taxonomy/term/1

If your category "sonatas" is term 1, this would call for all the nodes of that category.

If your category "Bach" is term 2, you could call for only those sonatas written by Bach:

taxonomy/term/1,2

Or if Brahms is term 3 and you want to call for everything that has to do with either Bach or Brahms, you’d do it this way:

taxonomy/term/2+3

The other option is to use the views.module which is a query builder and can help you create a custom query to create lists, more documentation for views , as well as tutorials can be found in handbooks -> contributed modules -> views

My suggestion is to spend more time in the handbook, check out the drupaldojo.com site, and lullabot.com as well as google to seek out tutorials on how to work with Drupal. Using the search tool here at drupal.org can be of benefit as well.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

kriskd’s picture

I should have searched before I posted: http://drupal.org/node/196873

I'm trying to pretty much do this exact same thing. I have a decent understanding of CCK and Views, but what trips me up is when I create a new content type a title and body is required. Well, maybe the body isn't required, but I'm not seeing how to get rid of it.

So, if recommending CCK and Views, how does the title and body work into the address entry?

vm’s picture

The body field can be removed by omitting the title per the description in administer -> content types -> add content tab

To omit the body field for this content type, remove any text and leave this field blank

The title field can be changed to any label you want or use the auto_nodetitle.module and hide the title field

Description
-----------
This is a small and efficent module that allows hiding of the node title field. To prevent
empty node title fields it sets the title to the content type name or to an configurable
string. If the token module is installled it's possible to use various node data for the
autogenerated title - e.g. use the text of a CCK field.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

kriskd’s picture

Excellent! That was exactly what I needed. Thanks again!