Monday, 15 May 2017
  15 Replies
  1.3K Visits
0
Votes
Undo
Is there a possibilty to solve this via template override?

Regards

Thomas
Tuesday, 23 May 2017 10:14
·
#188598
Accepted Answer
0
Votes
Undo
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!

Monday, 15 May 2017 21:15
·
#188227
0
Votes
Undo
Hello,

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!

Tuesday, 16 May 2017 08:57
·
#188260
0
Votes
Undo
Hi Tony,

It's just about allowing some tags like <br> <b> <h1> <a>
Tuesday, 16 May 2017 10:07
·
#188274
0
Votes
Undo
Hello,

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!

Tuesday, 16 May 2017 14:58
·
#188305
0
Votes
Undo
Hi,

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.
Wednesday, 17 May 2017 14:05
·
#188361
0
Votes
Undo
This MAY be possible using a word count and this function https://github.com/judev/php-htmltruncator but I can't guarantee that it would work.

Would counting on words be 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!

Wednesday, 17 May 2017 14:14
·
#188363
0
Votes
Undo
Hi Geraint

Counting on words would be fine for me.
Friday, 19 May 2017 10:12
·
#188435
0
Votes
Undo
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!

Saturday, 20 May 2017 11:12
·
#188466
0
Votes
Undo
Hi Geraint,

This is great! Generally this works but it has some problems with special characters.
http://kultur-schloss-seefeld.de/klassik.html

Also I had to set images to display:none;
Monday, 22 May 2017 10:29
·
#188495
0
Votes
Undo
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!

Monday, 22 May 2017 13:13
·
#188527
0
Votes
Undo
Hi Geraint,

This is strange. It seems that the first 2 letters are stripped and special characters are not displayed correctly.
http://kultur-schloss-seefeld.de/klassik.html
Tuesday, 23 May 2017 10:14
·
#188598
Accepted Answer
0
Votes
Undo
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!

Tuesday, 23 May 2017 22:25
·
#188674
0
Votes
Undo
Hi Geraint,

Sorry I just managed now to install your new file. Thanks a lot, this seems to work correct.

Regards

Thomas
Friday, 26 May 2017 10:19
·
#188786
0
Votes
Undo
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!

Friday, 26 May 2017 10:28
·
#188788
0
Votes
Undo
Perfect!
Did you keep in mind that I disabled images via CSS? Otherwise the image tag would be visible as text when cutted in parts.
Friday, 26 May 2017 11:44
·
#188808
0
Votes
Undo
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.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.