Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

truncating title and introtext not working in J1.7
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: truncating title and introtext not working in J1.7
#17781
truncating title and introtext not working in J1.7 12 Years, 9 Months ago Karma: 0
Hi sorry to post again but the reply to my previous post is now giving me:

404: Not Found

Sorry, but the content you requested could not be found

can you please post the required code in reply again for truncating title and intro text in J1.7

Thanks
Regards
Chris Lewis
Last Edit: 2011/07/27 11:11 By outtherechris.Reason: typo
The administrator has disabled public write access.
 
#17782
Re:truncating title and introtext not working in J1.7 12 Years, 9 Months ago Karma: 747
Hello,

Use the next code:

Code:


{$title|truncate:10}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#17783
Re:truncating title and introtext not working in J1.7 12 Years, 9 Months ago Karma: 0
Thanks!

Does the same apply truncating the introtext?

Would you be kind enough to demonstrate what I would need to put in the Item Template field to show 1. the intro text truncated to 350 2. a read more link.

I have attached a screen capture of the front end module when i have entered the readmorelink into the Item Template field

Regards
Chris
Last Edit: 2011/07/27 11:27 By outtherechris.
The administrator has disabled public write access.
 
#17785
Re:truncating title and introtext not working in J1.7 12 Years, 9 Months ago Karma: 747
Yes, use the next code for intro text:

Code:


{$introtext|truncate:10}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#17786
Re:truncating title and introtext not working in J1.7 12 Years, 9 Months ago Karma: 0
Thank you that works perfectly. Though I am still having a problem getting the read more link to show.
I have attached a screen capture of the Item Template field for your info.
Thanks again for the great support.

Regards
Chris
The administrator has disabled public write access.
 
#17787
Re:truncating title and introtext not working in J1.7 12 Years, 9 Months ago Karma: 747
{$readmore_link} predefined variable contains only link, not HTML code. You can use it with custom HTML code that create button or something another. For example you can use the next code:

Code:


<a href="{$readmore_link}">Read more...</a>



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12