View Full Version : Hard coding searches
Can you create a link that is a hard coded search so that when the link is clicked the search results page is displayed using the keywords you hard coded into the link?
Something along the lines of...
<a href="www.mydomain.com/mm5/merchant.mvc?Screen=SRCH&value=search+for+these+words">Search For These Words</a>
Yup. href="http://www.mydomain.com/mm5/merchant.mvc?Screen=SRCH&Search=search&20%for&20%these&20%words"
Ah ha, I was pretty close. Thanks Leanne.
For anyone following this thread, this is what worked for me...
<a href=”http://www.mydomain.com/mm5/merchant.mvc?Screen=SRCH&Search=search+for+these+words”>Search For These Words</a>
I had to use the plus sign (+) as opposed to &20%
KayfabeRockStar
10-27-08, 08:12 PM
Does anyone know how to hard code a search using the POWER SEARCH mod? I have this: merchant.mvc?Screen=SRCH&Search=&mvt:product:customfield_values:customfields:AUTHOR ;
... and it works, but only displays the author's first name and I don't know how to tell it to only search the AUTHOR field.
Thanks!
Under the Power Search tab is a list of searchable fields that you can check/uncheck. Not sure if that answers your question...
KayfabeRockStar
10-27-08, 09:31 PM
No, I'm sorry. I mean when hard coding like you example above. I have:
<a href=merchant.mvc?Screen=SRCH&Search=&mvt:product:customfield_values:customfields:AUTH;>
&mvt:product:customfield_values:customfields:AUTH;</a>
It only links to a search results page for the first name of the author. It appears in my custom field as JOHN HANCOCK, but my hard code returns only JOHN ... and I don't know how to hard code the link to include the search of only the author field.
Is this more clear?
Yes, it's much clearer. Unfortuantely I don't have a solution. I don't know why it would only return JOHN when the field is JOHN HANCOCK.
I don't know that Bill from Emporium Plus will find this thread but it's his module and I'm sure he'd be much more help than I. You might want to start a new thread with Power Search in the topic line. Bills very active, and helpful, in this forum.
KayfabeRockStar
10-27-08, 10:00 PM
Thanks, I'll go straight to the source! :)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.