Gossamer Forum
Home : Products : Gossamer Links : Discussions :

category search - select option

Quote Reply
category search - select option
In category search (category.html), how can I use <%if category_id%> with select option

Like :

In Reply To:


<SELECT class=formboxes NAME="Range">
<OPTION VALUE="All">the entire directory</OPTION>
<OPTION VALUE="This">only this category</OPTION>
</SELECT>
Instead of :

In Reply To:


<%if category_id%>
<input type="radio" name="catid" value="" checked> the entire directory
<input type="radio" name="catid" value="<%category_id%>"> only this category
<%endif%>


Thanks,


Quote Reply
Re: category search - select option In reply to
<SELECT NAME="catid">
<OPTION VALUE="" SELECTED>the entire directory</OPTION>
<OPTION VALUE="<%category_id%>">only this category</OPTION>
</SELECT>

Regards,

Eliot Lee
Quote Reply
Re: category search - select option In reply to
Thanks, Eliot
It worked this way

<%if category_id%>
<SELECT NAME="catid">
<OPTION VALUE="" SELECTED>All directory</OPTION>
<OPTION VALUE="<%category_id%>">This category</OPTION>
</SELECT>
<%endif%>

Regards,



Quote Reply
Re: category search - select option In reply to
Good for you...yea, forgot the conditional statement that should be placed in the file...

I use two separate header files...one for category pages and one for other pages. In the category.inc header file...I use radio buttons for searching categories and also <a href="<%build_add_url%>?ID=<%category_id%>">.

Regards,

Eliot Lee