Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Linking Titles to Detailed Pages, Plus...

Quote Reply
Linking Titles to Detailed Pages, Plus...
OK, I have Detailed pages almost totally sorted, except...

1. If you're adding a page with Details, the form still wants a URL... it's required. So, I figured I'd change that field to hidden and provide the value myself, but I don't know what to put. The fact that it seems to insist that http: be included is a problem, and I don't know how to make the link "self referencing" as it were.

<input type="hidden" name="URL" value="<%detailed_url%>">
<input type="hidden" name="URL" value="http://<%detailed_url%>">
<input type="hidden" name="URL" value="<%get_root_url%>/Detailed/<%ID%>">

...have all been tried. What else should I do?

2. I actually only want to show the detailed input box if you're in one category, News. I know Links somehow does recognise what category you are in, because it only shows that category when you go to add a link. What I don't know how to do is call that value, like how to say:

<%if Category is News%>

The name is obviously News, but the category ID is 5, and I'm not even sure which to use.

Can anyone lend a hand?

--Bri

PS--When I get this truly finished, I'm planning to write a How-To for other totally clueless people, so maybe all this effort won't be expended on just me...



Quote Reply
Re: Linking Titles to Detailed Pages, Plus... In reply to
OK, let's make this really easy:

Can anyone tell me how to make the URL field on the add form NOT required?

--Bri

Quote Reply
Re: Linking Titles to Detailed Pages, Plus... In reply to
The URL is a key field. Ignoring or overriding it will cause problems if you are not careful. If you link to the detail pages, and only use jump.cgi to jump there, no problem. But you might have to edit jump.cgi to prevent broken jumps (it's still on my todo for the FAQ).

You can get rid of the requirement for it by editing the Links table, and emptying out the pattern match field. It won't check to see if anything is there. You need to give it the "http://" in the hidden field, because I think it's set to non-null in the database, meaning some value has to be in it, but it doesn't have to be unique.

PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: Linking Titles to Detailed Pages, Plus... In reply to
URL CHAR(255) Yes http:// TEXT ^(https?|ftp|news|mailto):\/\/

... is what the tables show as being there now in Admin view. I can't change NOT NULL from Yes to No there.

What would happen if I deleted the URL column and added it back in with NOT NULL set to No?

I realise I would lose mu current URL data, but that's fine, there are only 10 links in there.

By the way, if URL has to have a value, how is that going to work with uploading documents, which, like Details, also don't have an external URL?

Is there something really obvious I'm missing about getting the URL field to link to a Details page or document?

--Bri

Quote Reply
Re: Linking Titles to Detailed Pages, Plus... In reply to
Well, we changed it on the database rather than through the tables admin, and so far, nothing is breaking and URLs are not required.

Details are now linking with an <%if%> statement, and all seems well...