Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

Directory entry without URL?

Quote Reply
Directory entry without URL?
Hi,

Looking at putting up a white pages type directory, which may or may not contain a URL. Does links have the flexibility of adding directory entries with / without URL's?

Sample entry could be

Name:
Address:
Phone:
Email: (Optional)
Fax: (Optional)
Website: (Optional)

Possible?
Quote Reply
Re: [shriram] Directory entry without URL? In reply to
Much of the power of Links comes from the URL field.

You can disable the field, or change the pattern match to allow "http://" to be a valid url. In that case, if you did duplicate checking, you'd get a lot of the same, but you wouldn't really alter any of the other functionality.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Directory entry without URL? In reply to
So I could turn off the URL field if I wanted to use links to maintain a white pages with optional URLs.

Is this global or can it be optionally turned on / off by category?
Quote Reply
Re: [shriram] Directory entry without URL? In reply to
You would need to edit the regex match from ^\w:\/\/ to being empty. You would also need to make the field not-required (can't remember, but I'm pretty sure its an option along on the page where you edit the regex).

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [shriram] Directory entry without URL? In reply to
Shriram

You can set up another column in your links Table called Show_URL and call it in your link.html template like the following example.
<%if Show_URL>
<small><%URL%></small><br>
<%endif%>

<%ifnot Show_URL%>
Undisclosed
<%endif%>
You can also do this with your email, fax , phone etc.
Show_Email , Show_Fax , Show_Phone

You can have control over what is displayed when validating or you can give the user the option on the add form to have it displayed or not.

I don't think there is anything that this program cannot do by way of customisation, the only limitation is imagination.

Regards

minesite
Quote Reply
Re: [shriram] Directory entry without URL? In reply to
Hi Shriram,

Yes, Andy is correct, Links SQL 2 incorporates a very easy way to change the URL field from its default Required status to Not Required.

And incorporating Minesite's advice for the templates will ensure that the link to the external website only shows up when there is a value in that field.

Jack.
-------------------------------------------------------------------------------------------
Jack Ong, C.O.O., Gossamer Threads, Inc.
9th Floor, 100 West Pender, Vancouver, BC, Canada, V6B 1R8
Email: <jack@gossamer-threads.com>
Tel: (604) 687-5804 Fax: (604) 687-5806
Quote Reply
Re: [JackOng] Directory entry without URL? In reply to
Jack / Minesite,

Thanks a ton for the info. I've got my credit card ready ... just waiting for my domain to be taken off the restricted list on neulevel.biz.

Have a couple of other questions. Will post them in a new thread.

Regards,
Shri
Quote Reply
Re: [minesite] Directory entry without URL? In reply to
I finally got around to installing the license I'd purchased and playing with this.

I did this .. which worked.

<%if URL%>
<ul><li><a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>
<%endif%>


<%ifnot URL%>
<ul><li><%Title%>
<%endif%>


A belated "Thanks!". :)
Quote Reply
Re: [shriram] Directory entry without URL? In reply to
Your welcome, you also might be able to simplify it a little:

<%if URL%>
<ul><li><a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>
<%else%>
<ul><li><%Title%>
<%endif%>

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [shriram] Directory entry without URL? In reply to
You could also do:

<%if URL%>
<ul><li><a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>
<%elsif Description%>
<ul><li><a class="link" href="<%db_cgi_url%>/detail_page.cgi?ID=<%ID%>"><%Title%></a>
<%end%>

If you had a description, or details, you could still jump to a detail page. I'm tweaking detail_page.cgi to handle the changes to 2.1.x and to override the default loading of detailed.html to allow a passing in of a p= (like page.cgi).

You can't use page.cgi because that doesn't load the link data by default.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Directory entry without URL? In reply to
You can use jump.cgi, to jump to detailed pages. So you could do:
Code:
<%if URL%>
<a href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>
<%elsif Description%>
<a href="<%db_cgi_url%>/jump.cgi?Detailed=<%ID%>"><%Title%></a>
<%end%>

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Directory entry without URL? In reply to
Ivan,

Thanks, this is what I ended up using. :)
Quote Reply
Re: [shriram] Directory entry without URL? In reply to
We have a yellow pages type of directory - similar to what I think you're trying to do. I'd be happy to see your site when it's ready. You can see ours at www.Meowhoo.com.



Best of luck!

If you love cats - visit www.TheCatSite.com

Visit my LinkSQL based Cat Site - www.Meowhoo.com
Quote Reply
Re: [Anat] Directory entry without URL? In reply to
http://www.geobaby.com/resources/