Hi Bahram, I checked again and I modified title tag and other tags in header.tpl as you instructed then refresh but all my listing title remain unchanged, I tried adding new listing still the same.
Beside header.tpl file do I need any other change?
Printable View
Hi Bahram, I checked again and I modified title tag and other tags in header.tpl as you instructed then refresh but all my listing title remain unchanged, I tried adding new listing still the same.
Beside header.tpl file do I need any other change?
Hi there,
Yes, I think it's a good solution use the combination of 2 functions for it.
Also you can create a new smarty modifier for it.
Code:Only registered members can view the code.
Hello Wei, I am using general_simple and in this templates, it is head.tpl and not header.tpl
Find :Change to:Code:Only registered members can view the code.
Find:Code:Only registered members can view the code.
Change to:Code:Only registered members can view the code.
Code:Only registered members can view the code.
Hello Wei Hong and Errol,
Bahram is right but for listing title you need to change code in other files.
For change Listing title open file: ftp://templates>>your_template>>tpl>>blocks>>listing.tpl
find: $listing.listing_title
and change to: $listing.listing_title|ucwords
in 5-6 places in the file.
for featured listings in boxes: ftp://templates>>your_template>>tpl>>blocks>>featured_it em.tpl
find: $featured_listing.listing_title
and change to: $featured_listing.listing_title|ucwords
save and check again.
Thanks Victor... yes, you right. my changes only modify meta title and not listing title.
Sorry Wei and Errol...Actually i thought, the question is only about meta title. Also thanks to Curtis
Hello,
Go to ftp > libs > smarty > plugins > create your modifier here like 'function.<function_name>.php'
where <function_name> is the name of your function
open your modifier and insert code like below:
then use your modifier in smarty code like {$text|your_function_name}PHP Code:
Only registered members can view the code.
Very nice Rudi...thanks
Thanks Viktor and Rudi, it's very clear I made it. One question is can we add condition for title of certain listing type only?
For classified ads I want ucfirst for title, but for businesses ads I want ucwords. Is it possible to do?
Pls don't mind this post