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


Recent Events
  • 18/11/2017 Black Friday is coming

    Don't wait BLACK FRIDAY, use FRIDAY17 coupon code to get 35% discount for all our extensions right now.

  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.


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 6 Years, 4 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 05:11 By outtherechris.Reason: typo
The administrator has disabled public write access.
 
#17782
Re:truncating title and introtext not working in J1.7 6 Years, 4 Months ago Karma: 670
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 6 Years, 4 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 05:27 By outtherechris.
The administrator has disabled public write access.
 
#17785
Re:truncating title and introtext not working in J1.7 6 Years, 4 Months ago Karma: 670
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 6 Years, 4 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 6 Years, 4 Months ago Karma: 670
{$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