truncHTML not working
Posted: 27 November 2008 02:57 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  95
Joined  05-12-2008

Moderator’s note: Moved to Plugins: Tech Support (Not a first-party plugin).

I have installed the latest version of truncHTML and am using the following call;

{exp:trunchtml chars=“300” ending=<a >read on</a>”}
{body}
{
/exp:trunchtml}

However when I change the chars= setting I get no difference in the amount of characters returned.  Any ideas?

Thanks,
Joe

Profile
 
 
Posted: 27 November 2008 03:10 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16398
Joined  06-03-2002

Do you have curly quotes in your template like you do in your sample above?

 Signature 
Profile
MSG
 
 
Posted: 27 November 2008 03:42 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  95
Joined  05-12-2008

What’s curly quotes?  I am using the quotes that are on the shift ’ key… like this “

Profile
 
 
Posted: 27 November 2008 03:46 PM   [ Ignore ]   [ # 3 ]  
Grad Student
Rank
Total Posts:  95
Joined  05-12-2008

Ok… I used double quotes as in ”  however when I changed to single quotes like ’  it seems to work.  Thats weird… for every other EE expression I use double quotes.

Profile
 
 
Posted: 27 November 2008 03:55 PM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  16398
Joined  06-03-2002

Did you cut and paste this from somewhere?  “ and ” are quite different from " and would not result from typing them with the double-quote key on your keyboard.

 Signature 
Profile
MSG
 
 
Posted: 27 November 2008 04:25 PM   [ Ignore ]   [ # 5 ]  
Grad Student
Rank
Total Posts:  95
Joined  05-12-2008

Yep that was it… Actually I copy & pasted from the sample code here on the plugin part of the EE website.  I wonder why the quotes are different… anyway its all good now!!

THANKS!!
Joe

Profile
 
 
Posted: 28 November 2008 08:21 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
RankRankRank
Total Posts:  661
Joined  10-22-2006

Glad to hear it’s working now.

 Signature 

utilitees - Addons for EE

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66389 Total Logged-in Users: 44
Total Topics: 84714 Total Anonymous Users: 19
Total Replies: 454687 Total Guests: 188
Total Posts: 539401    
Members ( View Memberlist )