Gossamer Forum
Home : Products : Links 2.0 : Customization :

Links as Club Membership Database?

Quote Reply
Links as Club Membership Database?
Helloooooooooooooooo Alex, (sorry, been listening to Tom Leykis too much)

I love the Links program as a links database, and see that it might suit my purpose as a membership database. I'm wondering how easy it would be to increase the number of fields for each entry (like for address, and other such info)? I mean, would it be as simple as modifying the code where the entry is created and where the pages are built (and stuff) to include the new fields, or is the rest of the code written around a certain number of fields per resource?
I'm only a novice at hacking PERL, and don't want to give myself more of a headache than I can handle. It's just that many of the features of the Links are those that I would like in such a membership database (static html pages, search feature, admin confirmation ad addition to database, etc..).

Thanks a ton to anyone who can offer suggestions!
-Greg
Quote Reply
Re: Links as Club Membership Database? In reply to
Basic steps are:

1. Add the new fields to links.def. There is a %db_def variable that describes the layout of the database.

2. Add the fields to all the add and modify templates if you want users to be able to add or modify these fields. If they are admin only fields, then you can just leave it blank.

3. If the fields need some starting default value (for instance Ratings has to start at 0), add that to %add_system_defaults in links.def.

That should be it!

Cheers,

Alex