Community & Support

Suggestions for managing list content

Hi,

I'm experimenting with using Drupal as a front-end user interface for managing a list of zone files and server IP addresses. Ideally, an authenticated user account will have an interface (probably using the Views module) to display a simple list of DNS domains and a corresponding IP address. There would also be an option to add/remove. I'll use a set of backend scripts that will later pull the list data and do DNS stuff on the server itself.

It should eventually look and function something like this:

List of zones
example.com 1.2.3.4 [delete this entry]
example.net 1.2.3.5 [delete this entry]

Add new zone:
[ ] [ ] [add new entry]

So I've been playing with the base CCK module and created a new content type for "DNS Zone", where the title is the domain and the body is the IP address.

However, when I want to create new content, it allows options for menu additions, URL alias paths, etc. All it should need to do is add the info to an existing list, or maybe create a node with no menu properties (I could create the list of nodes with the View module, I suppose).

Am I on the right track? Is there a CCK-based module that will allow me to manage a set of lists like this? Is there a better way to get rid of menu options for this new Content Type I've created?

Thanks,
Andrew

Comments

CCK is used to create (and

CCK is used to create (and display) custom content types. The views module is used for managing lists of content. So the two of them together would do what you want.

As for the menu setting (and others) you will always see those logged in as user 1, other users will see a subset depending on what permissions you have granted them.

And if you only allow a single IP, I would disable the body and add a single line text field for the IP.

I have no personal

I have no personal experience with it, but the CCK IP Address module looks like it may help for entering IP addresses.

Ok here is what is going on.

Ok here is what is going on. You are working as user #1 right? That is the super admin account. You have all permissions. An authenticated user, unless you give the permissions, will not have the ability, nor will they see, the menu field, the alias field and all those other goodies which require you to set permissions in order for him to access them. Make a new user and give him create rights on your content type. Then log in as him and you will see the difference.

Edit:
So yes you are on the exact right track IMO.

Got it working

Nevets and Gforce301,

Thanks so much for your replies. I actually figured out some of this a little while after I posted, but didn't get a chance to post an update to my original question. I'll remember to test more as an unprivileged user account as I get through this project.

Themphill,

I did see that IP address module, but it looked like it was a devel snapshot for Drupal 5. I'm actually running the latest Drupal 6. I may experiment with it later, if it offers validation of IP formatting.

Thanks again for all the answers.

-Andrew

nobody click here