Moderated by: FocalMedia Team, Miles, Gerrit, Rian

FocalMedia.Net Forums » Other Products »  FM SiteSearch Pro

Page: 1 of 1

« Back to Topic Index Page 1 | Replies: 5

 Author  Topic: Search one folder
AgentX

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of AgentX 
I'm trying to make a search box that just searches one folder on my site.
The Specialized Search Box is fine but I don't want the select-options box.

I'm not sure how to replace the select box with a hidden value of the folder to search. Thanks.


Total Posts: 22 | Joined: Oct 11, 2002 - 9:33am | IP Logged

FocalMedia Team

Moderator
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of FocalMedia Team 
Hidden variables look like this for example:

< form method="POST" >
< input type="hidden" name="hidden_name" value="hidden_value" >< input type="text"
name="T1" size="20" >< input type="submit" value="Submit" name="button" >
< /form >

Take the drop down box field name and a value and present it as a hidden value in the form. For example:

< input type="hidden" name="field_name" value="value" >

Miles


Total Posts: 1441 | Joined: Jul 27, 2002 - 4:28am | IP Logged

AgentX

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of AgentX 
How to make a search input field for this directory structure:

/Folder/Subfolder-A
/Subfolder-B
/Subfolder-C

In other words, a search-box that exclusively searches Subfolders A to C.

Is there some way to submit multiple hidden values?


Total Posts: 22 | Joined: Oct 11, 2002 - 9:33am | IP Logged

FocalMedia Team

Moderator
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of FocalMedia Team 
The specialised searching capabilities only allows you to search one folder at a time.

What you can do is to setup a second copy of FM SiteSearch Pro and just select the folders that you want this copy to search.

Miles


Total Posts: 1441 | Joined: Jul 27, 2002 - 4:28am | IP Logged

AgentX

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of AgentX 
Thanks for the suggestion Miles.
I've given it a try, but apart from being a bit complicated, it doesn't really solve my problem.

I would like to be able to use the search selection box allowing users to pin down their searches to specific directories.

For site maintenance purposes, all searchable files are within subdirectories within the 5 main directories of the site.

Would there be some way to tweak the script so that when a directory is selected for searching, the search works on all subdirectories of that folder? It would seem quite a logical procedure (I assumed at first this was how it worked).

Sorry to be a pain about this, but in every other respect I've found the script flexible and easy to customize.

If it is difficult, maybe it would be worth considering for a future upgrade of the script.

Cheers.


Total Posts: 22 | Joined: Oct 11, 2002 - 9:33am | IP Logged

FocalMedia Team

Moderator
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of FocalMedia Team 
We will consider it for future versions.

Thanks
Miles


Total Posts: 1441 | Joined: Jul 27, 2002 - 4:28am | IP Logged


Lock Topic

 

Forum Legend

New Member

Reply to topic

More than 50 posts | Member

Reply to topic with quoted message

More than 100 posts | Full Member

Edit Message

More than 150 posts | Advanced Member

View profile

More than 200 posts | Advanced Member

Email member