Link to a certain category on search.php

This is a discussion on Link to a certain category on search.php within the v3.0 Questions & Support forums, part of the v3.0.x Help & Support category; Hello, I would like to link from a page directly to a certain category of the category list on the ...


Go Back   68 Classifieds Forums > Archives > v3.0.x Help & Support > v3.0 Questions & Support

 
 
LinkBack Thread Tools Display Modes
  #1  
Old 01-29-2007, 07:59 AM
Junior Member
 
Join Date: Dec 2006
Posts: 8
Rep Power: 0
Default Link to a certain category on search.php

Hello,

I would like to link from a page directly to a certain category of the category list on the search.php page, so that already this certain category appears, with the extra fields, and not the search.html page, where one has to look for a certain category again - in the category list.
Does anyone know how this can be made?
How do the links have to be? Something like: ..domain/search.html... and what else? - to get directly to the category.

Thank you for your help.
Best regards
Herbert

  #2  
Old 01-29-2007, 08:25 AM
GSP GSP is offline
Senior Member
 
Join Date: Apr 2006
Posts: 122
Rep Power: 0
Default

To link to a category it should look like this:

http://yoursite.com/category.php?type=X

Change the X to the category number. The easiest way to find your category number is to simply browse a category and look at the number listed after type= in your address bar.

Hope this answers your question.
  #3  
Old 01-29-2007, 01:06 PM
Junior Member
 
Join Date: Dec 2006
Posts: 8
Rep Power: 0
Default

Thank you for your help, but I don't want to link to a category, I want to link to a certain category in the category list on search.html to have this category come up with the extra fields in the search function, without having to go to search.html fist, check the category list and click on the link in it.

Thank you very much
Herbert
  #4  
Old 01-29-2007, 01:27 PM
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,146
Rep Power: 57
Default

You just have to add the search query to the link:

yoursite.com/searchresults.php?searchtext=&type=&city=&state=&c ountry=&minprice=&maxprice=&zipCode=&miles=&Submit =Search

Then just fill in the details you wish to be displayed

type=categoryid
searchtext=some text value
city=cityname
etc=etc

Is this what you are looking for?
__________________
Regards,

John



�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
  #5  
Old 01-29-2007, 04:33 PM
Junior Member
 
Join Date: Dec 2006
Posts: 8
Rep Power: 0
Default

Thank you, but I think I have to try to explain.
If one click on "search", the search feature shows a category list, where you can choose a category to search - not browse.
If you have searchable extra fields in this category, you can search for them now.
So, I would like to link from the normal category page, when you browse, to the category in the category list of the search feature, where one finds the extra fields to search.
So, for example, if someone browses the normal car category, he finds all the listed cars there. If he searches using the search feature instead of browsing the categories, he, for example can search for a special make of a car, using the extra fields displayed in the search feature.
Now, if somebody browses through the categories but want to narrow the listings, he has to go from browsing the category to the search feature. There he has to look for the same category in the category list, click on it, and then he can narrow the adds searching the extra fields.
I would like to link from the normal category page, when you browse, directly to the same category in the category list of the search feature, where the extra fields can be found.
I hope I expressed myself clearer know.

Thank you
Herbert
  #6  
Old 01-29-2007, 05:34 PM
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,146
Rep Power: 57
Default

I understand now, however, I can't think of an easy way to achieve this.
__________________
Regards,

John



�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
  #7  
Old 02-01-2007, 07:19 AM
Junior Member
 
Join Date: Dec 2006
Posts: 8
Rep Power: 0
Default

Thank you for your reply.

Is there any way to link from a page to the searchable extra fields of a certain category?

Best regards
Herbert
  #8  
Old 06-20-2007, 04:51 AM
Junior Member
 
Join Date: Jun 2007
Posts: 7
Rep Power: 0
Default

Quote:
Originally Posted by juven14 View Post
I understand now, however, I can't think of an easy way to achieve this.
I would like to do this too. If there is some easy way to modify search.tpl.php so I could just set the default value for the category drop-down (and show the relevant extra fields immediately on page load), something like this, I would be very happy:

http://mysite.com/search.php?type=18
(for category id 18)

Another related question: is there an easy way to modify search.php.tpl to remove the category selector alltogether, setting the category in the URL as above, and showing the relevant extra fields immediately on page load?

If these mods are hard, what makes them hard? Thanks for considering,
Jake
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accounts... doc1975 Pre Sales Questions 2 09-08-2006 02:48 PM
Show the visitors which category has new ads pat01 v3.1 Modules & Modifications 7 07-28-2006 02:25 AM
category link - admin panel juven14 v3.1 Questions & Support 7 06-27-2006 04:57 PM
Category Link gppromano v3.1 Modules & Modifications 0 06-24-2006 10:37 AM
Category Link : avoid duplicate content in Google frommarcq v3.1 Suggestions and Feedback 0 06-14-2006 05:29 AM


All times are GMT -4. The time now is 09:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21