Announcement

Collapse
No announcement yet.

Drop down search box

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Drop down search box

    Hi there

    I am looking at creating a drop down search box on every page on my site, but not sure if this is possible.

    My product catelogue is made up of records with Artist/Title/Label etc.

    I want my drop down list to appear like:

    New In
    Complete Catelogue
    Artist 1
    Artist 2
    Artist 3
    etc

    Is this easily achievabe.

    Thanks for any direction

    Steven

    #2
    Hi there

    Are these categories you mention actually different sections in your store? If so, you can use code similar to the following in your overall layout template (normally Act_Primary.html):

    <FORM METHOD="POST" ACTION="http://your.URL/ss000001.pl">
    <INPUT TYPE="HIDDEN" NAME="NOLOGIN" VALUE="1">
    <P>Select a category:
    <SELECT SIZE="1" NAME="SECTIONID">
    <option value="artist%5f1%2ehtml">Artist 1
    <option value="artist%5f2%2ehtml">Artist 2
    ...
    </select>
    <input type="Submit" value="go">
    </FORM>

    where the values of the options are the filenames of your section pages (encoded so that an underscore '_' becomes '%5f' and a full stop '.' becomes '%2e').

    Naturally, you have to customise the above text to work with your web site.

    Comment

    Working...
    X