Support Forums

{$entry.title|replace:'&':'&'}

This is a discussion on {$entry.title|replace:'&':'&'} within the Technical Support forums, part of the Technical Support Forums category; Hi, I am tring to use Code: {$entry.title|replace:'&':'&'} in my showlistings but it just shows & instead of &, this ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 07-02-2009, 06:32 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 37
bowers01 is on a distinguished road
Default {$entry.title|replace:'&':'&'}

Hi,
I am tring to use
Code:
{$entry.title|replace:'&':'&'}
in my showlistings but it just shows & instead of &, this same code works fine in viewlistings.
Any idea?
Cheers
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 07-02-2009, 09:43 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

did you clear template cache? Did you edit the correct showlistings template?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 07-02-2009, 11:00 AM   #3
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 37
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by Lhotch View Post
did you clear template cache? Did you edit the correct showlistings template?
Hi,
Thanks for the reply, yeah i have cleared the templates_c folder. It is in the right file, it used to show as & but would not validate. So i put that in so it will but doesnt show properly, its like its not being parsed as html just as plain text.
Any ideas?
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 07-02-2009, 11:30 AM   #4
All Hands On Deck
 
seymourjames's Avatar
 
Join Date: Mar 2008
Posts: 3,527
Rep Power: 89
seymourjames is a jewel in the rough
Default

No reason why I can put my finger on but just try it with " instead of '. It will probably not make a difference.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline  
Old 07-02-2009, 09:37 PM   #5
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 37
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by seymourjames View Post
No reason why I can put my finger on but just try it with " instead of '. It will probably not make a difference.
Thanks for the reply but it still does the same thing.
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 07-05-2009, 01:24 AM   #6
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 37
bowers01 is on a distinguished road
Default

any other ideas?
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 07-05-2009, 08:17 AM   #7
All Hands On Deck
 
seymourjames's Avatar
 
Join Date: Mar 2008
Posts: 3,527
Rep Power: 89
seymourjames is a jewel in the rough
Default

This works for me in showlistings. I just tried it. Note use of " and not ' or ' '.

{$entry.title|replace:"&":"&"}


It clearly puts & into the page source which it should but gets displayed on your page as just &. Voila!!!
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline  
Old 07-05-2009, 10:00 AM   #8
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 37
bowers01 is on a distinguished road
Default

I just found something strange.
The title is already changed. I looked at the source code which is what i should have already done and it was coming out like this
Quote:
&
if i remove the replace it was coming out
Quote:
&
which is fine, then i remembered the only 2 ads on my site were placed during v4.07 or 8.
All new ads are already changed to & was this a new feature in 4.09?
Problem is solved anyway, for the two older ads i went into administration and opened them up and then just clicked submit and it changed them to &
as far as i can remember i did not implament anything to do this so it must have been a new feature.
Cheers,
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 07-05-2009, 06:08 PM   #9
All Hands On Deck
 
seymourjames's Avatar
 
Join Date: Mar 2008
Posts: 3,527
Rep Power: 89
seymourjames is a jewel in the rough
Default

If you don't do the replace, I can tell you that in 4.14, the source will just put & and not &
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 stage cat and sub-cat entry for new listings sunshinemike Technical Support 0 01-14-2009 11:31 AM
Mod - Block entry of link hel68c Modules / Plugins / Modifications 2 01-08-2009 05:37 PM
Replace $0.00 if no price entered topbidz Technical Support 12 04-26-2008 05:38 AM


All times are GMT -4. The time now is 12:38 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0