Webmastersite.net
Register Log In

Search in category. Links in alias cats
How to make them show up.

Comments on Search in category. Links in alias cats

webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Nov 12, 2007 - 1:03 PM:

I have asked this before in a support ticket but I cant remember how to do this...

I have created a seach form that has a drop down list of categories as part of the search query. Problem is if a link is aliased to a category, they do not show up when tha category is searched. I need them to show up even if they are just aliased to the category.

I realise this will cause them to show up miltiple times during a normal search, but I am not using normal search.

Can you remind me how this is done please paul.

Thanks
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 14, 2007 - 12:24 AM:

The code says that if you fill in catidsearch, incatid or catid form fields (all the ways one would normally search specific categories or groups thereof) it doesn't eliminate aliases. What's the HTML of your category dropdown?
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Nov 14, 2007 - 8:54 AM:

Here ia my excat code... Aliased links do not seem to show up...

<form action="search.php?action=filter&filled=1&whichtype=links" method="post">
<input type="hidden" name="catidcondition" value="="/>
<select name="catidsearch">{CATOPTIONS}</select>
In <input type="hidden" name="searchcountiescondition" value="like" /><select name="searchcountiessearch">
<option>Aberdeenshire</option><option>Angus</option><option>Antrim</option><option>Argyll and Bute</option><option>Armagh</option><option>Bedfordshire</option><option>Belfast</option><option>Berkshire</option><option>Bristol</option><option>Bridgend</option><option>Buckinghamshire</option><option>Caerphilly</option><option>Cambridgeshire</option><option>Cardiff</option><option>Carmarthenshire</option><option>Ceredigion</option><option>Cheshire</option><option>Clackmannanshire</option><option>Conwy</option><option>Cornwall</option><option>Cumbria</option><option>Denbighshire</option><option>Derbyshire</option><option>Devon</option><option>Dorset</option><option>Down</option><option>Dumfries and Galloway</option><option>Durham</option><option>East Ayrshire</option><option>East Lothian</option><option>East Sussex</option><option>East Yorkshire</option><option>Edinburgh</option><option>Essex</option><option>Falkirk</option><option>Fermanagh</option><option>Fife</option><option>Flintshire</option><option>Glasgow</option><option>Gloucestershire</option><option>Gwent</option><option>Gwynedd</option><option>Hampshire</option><option>Herefordshire</option><option>Hertfordshire</option><option>Highlands and Islands</option><option>Humberside</option><option>Inverclyde</option><option>Isle of Anglesey</option><option>Kent</option><option>Lancashire</option><option>Leicestershire</option><option>Lincolnshire</option><option>London</option><option>Londonderry</option><option>Manchester</option><option>Merseyside</option><option>Merthyr Tydfil</option><option>Middlesex</option><option>Midlothian</option><option>Monmouthshire</option><option>Neath Port Talbot</option><option>Norfolk</option><option>North Ayrshire</option><option>North Yorkshire</option><option>Northamptonshire</option><option>Northumberland</option><option>Nottinghamshire</option><option>Oxfordshire</option><option>Pembrokeshire</option><option>Perth and Kinross</option><option>Powys</option><option>Rhondda Cynon Taff</option><option>Renfrewshire</option><option>Rutland</option><option>Scottish Borders</option><option>Shetland Islands</option><option>Shropshire</option><option>Somerset</option><option>South Ayrshire</option><option>South Lanarkshire</option><option>South Yorkshire</option><option>Staffordshire</option><option>Stirling</option><option>Suffolk</option><option>Surrey</option><option>Swansea</option><option>Torfaen</option><option>Tyne and Wear</option><option>Tyrone</option><option>Vale of Glamorgan</option><option>Warwickshire</option><option>West Dunbartonshire</option><option>West Lothian</option><option>West Midlands</option><option>West Sussex</option><option>West Yorkshire</option><option>Western Isles</option><option>Wiltshire</option><option>Worcestershire</option><option>Wrexham</option>
</select>
<input type="submit" value="Search" class="button"/></form>
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 15, 2007 - 8:03 PM:

Tested, works fine, shows the alias I made.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.