Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Quick question (again)

Quote Reply
Quick question (again)
In links.def how do I make it possible for a field to already have a http:// ready? But make it optional i.e. if I remove http:// when I add a new link it will be accepted. At the current time I get an error saying it can not be blank.

Thanks In Advance

Quote Reply
Re: Quick question (again) In reply to
This is what I currently have:

Preview => [16, 'alpha', 40, 200, 1, 'http://', '^'],
Review => [17, 'alpha', 40, 200, 1, 'http://', '^']

also if its not too much bother could somebody tell me how to 'order' the categories so that they are not sorted alphabetically.

For example:

A
B
C

becomes

B
A
C

etc.

I hope you understand :)

Quote Reply
Re: Quick question (again) In reply to
Why do you need http:// to be optional?.....ALL URL's use http://

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Quick question (again) In reply to
If you want the whole field to be optional...change.....

Review => [17, 'alpha', 40, 200, 1, 'http://', '^']

to.......

Review => [17, 'alpha', 40, 200, 0, 'http://', '^']



Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Quick question (again) In reply to
Its used with a if context...

i.e. If there is a review.. then link it.. http://

if there isn't then leave it blank

Do you understand btw thanks :)


Quote Reply
Re: Quick question (again) In reply to
As I said...use...

Review => [17, 'alpha', 40, 200, 0, 'http://', '^']

instead of

Review => [17, 'alpha', 40, 200, 1, 'http://', '^']


Paul Wilson. Shocked
(Dont blame me if I'm wrong!)