Limit number of title characters in K2 apart from 1st item

Earlier I posted a project looking for the best solution to limit the number of characters in titles for category listings powered by the K2 extension on a Joomla website. However soon after posting, I tried using a simple if else statement that used the PHP strlen() function. This worked fine but it applies the function to every item whilst I need the first title to be full length and not trimmed.

I briefly considered using the K2 content module to display the first K2 item but there is no where within K2 to apply an offset value. Therefore this displays the first K2 item twice which is not a satisfactory solution.

The way forward I believe is to modify my earlier code amendment to use $key variable but I am not sure how to do this.

Any decent PHP coder with knowledge of K2/Joomla should be able to do this in less than an hour.

Skills: Joomla, PHP, CSS, HTML, MySQL

See more: limit number words textarea, php email limit number spam, limit number products osc, can limit number attendees facebook event, joomla title characters, limit number attendees facebook events, limit number words textarea html, fancy upload limit number uploads, limit number macros excel, javascript limit number words textarea, limit number swf plays, javascript limit number words text area, limit number login joomla, limit number ips accessing web site, program prints number characters number space characters mips, limit number pages allowed print, zen cart limit number subcategories, php xml reader limit number items, fix error item number nonnumeric characters, limit number characters phpmyedit field

About the Employer:
( 84 reviews ) Leeds, United Kingdom

Project ID: #20890697

Awarded to:


Hello, Nice to meet you. Can you please give me this job? I have checked and got the issue. I can fix it for you. My portfolio: [login to view URL] I More

$15 USD in 1 day
(32 Reviews)

6 freelancers are bidding on average $19 for this job


Dear Client! I am very happy to see your project detail. I think it is just my project. :) I already read your requirement and understood fully. As you can see in my profile, (my review: More

$20 USD in 7 days
(25 Reviews)

Hello! I am a web developer. I have checked your project description. I can do it fast I guarantee the good result. I will wait for your reply. Thank you.

$20 USD in 1 day
(28 Reviews)

Client: Cost for task requested would be $25 Delivery within 1 day. Feel free to contact me for further info or to discuss the project. Other than my freelancer experience I have over 500 jobs on Upwork: http://www.u More

$25 USD in 1 day
(86 Reviews)

Hello, Nice to meet you.. i had experiance in joomla. i read your work properly. i am ready to work with you right now.. i ll show my works in private [login to view URL] to start work with you .

$15 USD in 1 day
(32 Reviews)

Dear Hiring Manager, Over 8+ Years of experience in developing web applications using technologies like PHP, HTML, AJAX and JavaScript in diverse domains like Finance, Health, Ecommerce, Telecom, Education etc. Dexte More

$20 USD in 7 days
(23 Reviews)