Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Accepting add a link with no link?

Quote Reply
Accepting add a link with no link?
Can someone please advice me what is the best way to modify LSQL so people can submit information with no link?
I have people who donít have a website and they want to post information about their business with just a phone number, but I want to keep the ability for people who have the website to add the link so they will be both in one category. So some of them will have the title not linked. Should I also create the detail pages?
I welcome any opinion and advice.
Quote Reply
Re: [modifier] Accepting add a link with no link? In reply to
You could try writing a javascript in the add section that gives a default value (http://www.nosite.com) for example if no $url is submitted. In your template you could write an if statement checking to see whether or not the <%URL%> is equal to http://www.nosite.com, and if so print "no home page etc.".


Just an idea, don't know if this is actually possible.

- Jonathan
Quote Reply
Re: [modifier] Accepting add a link with no link? In reply to

I just find the info (after a long time)CoolCoolCool

http://www.gossamer-threads.com/...i?post=142418#142418