Gossamer Forum
Home : Products : Gossamer Links : Discussions :

if not category popup-window?

Quote Reply
if not category popup-window?

how do i change Links in that way, that instead of displaying the error-message ".. first choose a category .." popping up a window?

As example:

If a user is in a category - simple using add.cgi in templates ... if he's not in a category - using a little javascript for a new window with instructions ...

Thanks for hints.

Quote Reply
Re: if not category popup-window? In reply to

You would want to edit the templates that generate the link to add.cgi (header.txt in the defaults). You would do something like:

<%if category_id%>
<a href="<%db_cgi_url%>/add.cgi?ID=<%category_id%>">Add a Link</a>
javascript pop up code



Gossamer Threads Inc.