{$city} in showlistings. title

Discussion in 'Templates, HTML, CSS, and Design Help' started by jason1971, Feb 14, 2010.

Thread Status:
Not open for further replies.
  1. jason1971 Customer

    HI all,

    Just wondering how I am able to add {$city} in showlistings title tag.

    I have asked this question before and got the answer from mike which was {$paging|replace:"city=":""} this worked fine but since im now running V.1.8 it does not just show up the city name it also shows up Aadid=&btnG=Do+Quick+search after it

    Any thoughts anybody ?

    Many thanks

    Jason
  2. seymourjames All Hands On Deck

    Is $city available in the showlistings.tpl template? Use Smarty debug to find out which variables are available. I don't really understand what you are looking to do. Do you mean add city to the title of each advert in showlisitings?
  3. damiun Customer

    Heeyz,

    City is available for the showlistings page with this command:

    {$entry.city}

    (the same is for state : entry.state, username seller: {$entry.username} )

    Dominick
  4. seymourjames All Hands On Deck

    The idea is to learn to use the {debug facility} by putting it into your layout.tpl file just before the body tag. You then have the general method and not the specific answer.

    It is a then case of learning a little bit of SMARTY to include it in your template file.
  5. damiun Customer

    @seymourjames,
    I agree with you,
    But for some people the debug does not work, it doesnt work the right way for me either,
    I have to go to the source and copy the the debug generated code in a new html, save it and open the new html. It just does not open as a debug.

    And that why i also gave the other examples so he can see that by entry.name (same as in viewlisting) will work in showlistings, which can also help other people.

    Dominick
  6. John Snyder Staff

    @damiun If you can see the debug code in the source via view source on your browser it means that your browser prevented the popup. Try disabling the popup blocker and refresh, I bet it will work.
  7. damiun Customer

    @juven14

    Its related to the seo mod.
    If i turn the seo mod off, the popup works,
    It i turn it on, the popup doesnt work anymore.

    Its weird but I have read it more than once on the forum already so its a known "problem"
  8. John Snyder Staff

    Can you point me to any links, I have a solution for that issue, but I couldn't find a bug in the tracker or a thread dedicated to that issue.
  9. seymourjames All Hands On Deck

  10. John Snyder Staff

    There, I made a bug report for this, since it has been "known" for a while. I also provided a solution on how to fix it, so you can implement those changes and use {debug} with the SEO module turned on.

    http://www.68classifieds.com/forums/issue-412/

    Since both issues of this thread are resolved, I'm closing it
Thread Status:
Not open for further replies.

Share This Page