Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Custom Add Url form for category

Quote Reply
Custom Add Url form for category
Is it possible to have a different "add url" form for different categories?

Thanks,
Quote Reply
Re: [Chrisp] Custom Add Url form for category In reply to
Hi,

How complex do you need it? You change add.html to something like:

Code:
<%if Category eq 'Cat1'%>
<%include cat1.html%>
<%else%>
<%include regular.html%>
<%endif%>

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Custom Add Url form for category In reply to
Hi Alex & all,

the above code works well , but how can it be modified if I have huge number of categories ???

As I have different links types in various categories, I added a custum fiels for category (type=1 ... type=10)

How can I read the value of the "type" of the passed cathergory within add.html (in order to present the right form as you have proposed) ???

??

thanks in advance

Fab