Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [hegu] Form display based on the user name

Quote Reply
Re: [hegu] Form display based on the user name In reply to
How about trying it other way around.

1. Setup a new category field, lets call it 'allow_add'. With options Yes/No
2. Now assuming you have already created the categories and there are more categories where you want to allow users to be able to add listing, have 'Yes' value as default.
3. Modify the value to 'No' under 'Edit Categories' for each category, you don't want to allow end users to add listing.
4. Under include.html setup tags li

<%if alow_add eq 'Yes'%>
<%include add.html%>
<%else%>
Sorry you can't add listing here.
<%endif%>

In addition, if you have different type of froms for different type of category, you can setup more options than Yes/No for allow_add category field and just change the if/elseif options under add.html and it should do the trick.

Hope this helps.

Vishal
-------------------------------------------------------
Subject Author Views Date
Thread Form display based on the user name hegu 12529 Apr 22, 2009, 1:34 PM
Thread Re: [hegu] Form display based on the user name
brewt 12285 Apr 22, 2009, 2:59 PM
Thread Re: [brewt] Form display based on the user name
hegu 12285 Apr 22, 2009, 3:27 PM
Thread Re: [hegu] Form display based on the user name
brewt 12292 Apr 22, 2009, 4:13 PM
Thread Re: [brewt] Form display based on the user name
hegu 12286 Apr 22, 2009, 9:10 PM
Thread Re: [hegu] Form display based on the user name
hegu 12259 Apr 23, 2009, 11:35 AM
Thread Re: [hegu] Form display based on the user name
hegu 12235 Apr 25, 2009, 9:23 PM
Thread Re: [hegu] Form display based on the user name
Andy 12301 Apr 26, 2009, 1:56 AM
Post Re: [Andy] Form display based on the user name
hegu 12212 Apr 26, 2009, 7:17 AM
Thread Re: [Andy] Form display based on the user name
hegu 12154 May 17, 2009, 7:00 AM
Thread Re: [hegu] Form display based on the user name
Andy 12134 May 17, 2009, 9:01 AM
Thread Re: [Andy] Form display based on the user name
hegu 12104 May 19, 2009, 10:14 AM
Thread Re: [hegu] Form display based on the user name
Andy 12169 May 19, 2009, 11:02 AM
Thread Re: [Andy] Form display based on the user name
hegu 12125 May 19, 2009, 12:02 PM
Thread Re: [hegu] Form display based on the user name
VishalT 12112 May 19, 2009, 3:26 PM
Thread Re: [SWDevil.Com] Form display based on the user name
hegu 12090 May 19, 2009, 5:01 PM
Thread Re: [hegu] Form display based on the user name
VishalT 12119 May 19, 2009, 5:26 PM
Thread Re: [SWDevil.Com] Form display based on the user name
hegu 12064 May 19, 2009, 5:31 PM
Thread Re: [hegu] Form display based on the user name
Andy 12103 May 20, 2009, 12:05 AM
Post Re: [Andy] Form display based on the user name
hegu 12045 May 20, 2009, 7:11 AM