Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to add a new working field in DB?

Quote Reply
How to add a new working field in DB?
Hi once again,
of course I know how to add a field ina database :)
But - how have I to add it if I need to build in corresponding function in a template?
F.e., I add a field called "Favourite" in LINKS database (ENUM "Yes", "No").
Can I call it from template link.html like that:

<%if isFavourite%>
<small>Favourite!</small>
<%endif%>

or need I change something else for that?

Another question: how can I include this field in admin's "Modify Link" section?

Thanks in advance.

Quote Reply
Re: How to add a new working field in DB? In reply to
Hi,

Go to Database->Links->Properties and click on Add New Column. This will add the column to the database, and it will automatically be available in the templates and in the admin.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] How to add a new working field in DB? In reply to
I have added a column, all the templete has reflected this changem except user add link templete,.

Weather need to do a manual edition>



Thanks
Quote Reply
Re: [courierb] How to add a new working field in DB? In reply to
up
Quote Reply
Re: [courierb] How to add a new working field in DB? In reply to
settled



thanks all have provided infos to me