Hey guys,
I am wanting to truncate my portal announcements. If you don't know what truncate is here is an example, currently my announcements show as: http://speedcap.net/sharing/files/96/47/...674227.png
However, when you truncate the announcement it should show like this: http://speedcap.net/sharing/files/90/21/...082353.png
I have tried several methods, php truncate(I'm bad at php so I didn't get far with this) and also jQuery/JavaScript. I got one working, but it only affected the first announcement. Then once I set it to show only one announcement is didn't work.
Can anyone tell me how I would get this to work?
Thanks,
- Harry.
Edit: I managed to achieve this with CSS, I will post a tutorial soon.
I am wanting to truncate my portal announcements. If you don't know what truncate is here is an example, currently my announcements show as: http://speedcap.net/sharing/files/96/47/...674227.png
However, when you truncate the announcement it should show like this: http://speedcap.net/sharing/files/90/21/...082353.png
I have tried several methods, php truncate(I'm bad at php so I didn't get far with this) and also jQuery/JavaScript. I got one working, but it only affected the first announcement. Then once I set it to show only one announcement is didn't work.
Can anyone tell me how I would get this to work?
Thanks,
- Harry.
Edit: I managed to achieve this with CSS, I will post a tutorial soon.