1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Search string results question

Discussion in 'Templates, HTML, CSS, and Design Help' started by jason1971, Dec 8, 2014.

  1. jason1971 Customer

    Hi all,

    What I would like to achieve is to pull out the {$categoryid} part of the search url string and replace it with it's {$categoryname} on the showlistings.tpl page.

    Here's an example of the search results string I have:
    searchresults.php?type=853&opt36=Yes&Submit=late-deals-on-holiday-homes-in-Boscastle

    With the type=853 being the categoryid for Boscastle, how would I go about showing it on the showlistings.tpl page for example like: <h2> Holiday homes in Boscastle with late deals</h2>

    I have done a {debug} and came up with the following, but I am unsure which to use, and how I would go about implementing it (If it is at all possible)

    Many Thanks Jason

    {$paging} "type=853&amp;opt36=Yes&amp;Submit=lat..."



    {$querystring_city} "type=853&amp;opt36=Yes&amp;Submit=lat..."
    {$querystring_country} "type=853&amp;opt36=Yes&amp;Submit=lat..."
    {$querystring_dateadded} "type=853&amp;opt36=Yes&amp;Submit=lat..."
    {$querystring_display} "type=853&amp;opt36=Yes&amp;Submit=lat..."
    {$querystring_expiration} "type=853&amp;opt36=Yes&amp;Submit=lat..."
    {$querystring_featured} "type=853&amp;opt36=Yes&amp;Submit=lat..."
    {$querystring_id} "type=853&amp;opt36=Yes&amp;Submit=lat..."
    {$querystring_price} "type=853&amp;opt36=Yes&amp;Submit=lat..."
    {$querystring_state} "type=853&amp;opt36=Yes&amp;Submit=lat..."
    {$querystring_title} "type=853&amp;opt36=Yes&amp;Submit=lat..."

Share This Page