Jump to content

Custom Field -> Listing -> Banner Code: {category}


Rik Brown

Recommended Posts

For quite a long time I've been using the following banner code in listings:

<div class="roundedPanel">

<a href="index.php?option=com_jreviews&url=search-results&order=distance&jr_radius=0.25&jr_latitude={jr_latitude}&jr_longitude={jr_longitude}" rel="nofollow">Nearby (~0.25 mi. / ~.4 km radius)</a><br />

<a href="index.php?option=com_jreviews&url=search-results&order=distance&jr_radius=0.6&jr_latitude={jr_latitude}&jr_longitude={jr_longitude}" rel="nofollow">Nearby (~0.6 mi. / ~1 km radius)</a><br />

<a href="index.php?option=com_jreviews&url=search-results&order=distance&jr_radius=2.5&jr_latitude={jr_latitude}&jr_longitude={jr_longitude}" rel="nofollow">Nearby (~2.5 mi. / ~4 km radius)</a>

</div>

I want to do the same thing but limit the results to a specific category #98 (catid=98).

I've tried adding (right after "search-results" and also after "{jr_longitude}") the following which do not change the results (still grabs from all categories):

&category={category|98}

&category={catid|98}

&category={98}

1) What is the right format to force limiting results to a single category?

2) Also, what would be the right format if I wanted to limit it to several categories?

Thanks. -- Rik

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...