Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Suggestions !

Quote Reply
Suggestions !
We are going to add Phone and Fax fields to the DB. However one particular category requires a field that is of no use to any other category.

i.e. Churches - field required - Service Times.

Seeing no other category requires this field how would you suggest this be accomplished within Links2.



------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory




Quote Reply
Re: Suggestions ! In reply to
I don't completely understand your question, Ian. To make fields required, all you do is set the field to 1 in the links.def field in the required attribute of the field.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Suggestions ! In reply to
Hi Elliot!

Here is the issue another way then.

One category called Churches needs a field called "Service Times" in the database.

Title,Category,address,contact,Service times,url,email,phone,fax.

"Service Times" is only relevant to that category.

All other categories only need the following fields on the add form.

Title,Category,Address,Contact,URL,email,Phone,fax.

Pray that is clearer.

------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory




Quote Reply
Re: Suggestions ! In reply to
Does anyone have any suggestion how I could handle the question in links. Or is it not possible?

------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory




Quote Reply
Re: Suggestions ! In reply to
Here's a suggestion...I don't know if it's what your looking for, or even right for that matter, but worth a shot:

I'm not sure how you would NOT have the field on your add form, but why not just make that field Not required...that way people could still submit there link and leave that field blank. Then to call the field couldn't you just use something like this in your link.html?

<%if Service Times%>
<%Service Times%><%endif%>
<%ifnot Service Times%>
<%endif%>

Like I said..I'm not sure if this is right, but it was just a thought.

Good Luck!
Quote Reply
Re: Suggestions ! In reply to
Also...I just found this.....it might be what your looking for.

http://www.gossamer-threads.com/...um3/HTML/003912.html
Quote Reply
Re: Suggestions ! In reply to
Thanks Domenic !

I sent the author of that minimod a email.


------------------
www.nzcid.godzone.net.nz
New Zealand Christian Internet Directory