I'm really sorry - there was a silly typo in my code I've tested this on some Korean text and it appears to work ok.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
The HTML has to be stripped. If it isn't then you truncate before a html tag closes your whole page is messed up.
What are you trying to do exactly?
Many thanks
Tony
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!
But if you do that and it is truncated before </b> then your whole site is in bold. It's just not possible with a truncation by number.
You could instead add a Custom Field HTML which you could duplicate text which isn't truncated and users set the output they want for list views in here.
Many thanks
Tony
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!
Yes I know that, but in my case I would have to add an additional Field for the introtext which would only be visible in the category list views. So the main Editorfield must be disactivated for this view.
For all new events this would be ok but for all old events it's a bit difficult.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
Please unzip and upload this file to components/com_jevents/views/default/helpers/defaultloadedfromtemplate.php and then use
{{Truncated Desc:TRUNCATED_DESC:20 words}}
in the layout
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
Try this version - it should deal with the UTF-8 character issue.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
I'm really sorry - there was a silly typo in my code I've tested this on some Korean text and it appears to work ok.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
Good to hear - I'll include these changes in the next release of JEvents.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
The code is simply designed to ensure that the truncated HTML is valid HTML - it will probably leave images intact so you will need to keep your CSS changes.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
Page :
1
There are no replies made for this post yet.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »