K2 – Limit Intro Text

I was surprised I wasn’t able to do this easier, but it looks like others have struggled with this as well. I did get it fixed, and was able to limit the word count. I didn’t make a override yet but I will.

In the latest_item.php file I replaced:

<?php echo $this->item->introtext; ?>

with

<?php echo K2HelperUtilities::wordLimit($this->item->introtext, 50); ?>

Here is the thread that helped me solve it

https://www.joomlaworks.net/forum/k2-en/29406-solved-can-we-have-introtext-word-limit

I hope this helps someone else out there…

 

 

Joomla 3.7 Upgrade – Law Swift Template – K2 Content Module Displaying All The Posts

I purchased this theme last year and it has been great.

https://themeforest.net/item/law-swift-lawyer-attorney-business-template/9431146

I upgraded to Joomla 3.7 and the K2 content modules broke. They would display all the posts at once.

I fixed this issue by uninstalling the T3 Framework plugin, downloading a new version, and installed the new version. Totally fixed the issue.

I hope this helps someone else out there…

 

Upload .vcf files in joomla

I wanted vcards or .vcf files to uploaded and downloaded from a joomla site so the customer could update them themselves.

I had K2 installed on the site and it was easy for me to download the .vcf file, but uploading was unsupported.

JCE was installed and I discovered that JCE “File Manager” add-on has an allowable file extensions built in. It was easy for me to add the extension. Then I used “JCE File Browser” to upload the files. Here is the article that helped me out.

https://www.joomlacontenteditor.net/support/forum/unable-to-link-to-a-file-with-extension-vcf

I hope this helps someone else out there…

 

K2 edit blog button not showing

I am using K2 component on a Joomla site and find it very useful.

I was setting up Front-End adding and editing of K2 blog items.  Here is a great video for setting that up.

I ran into this issue with the template that has a “HTML” override for the K2/templates/default/category_item.php. The code looks like this.

k2_blog_post_edit_code

The issue was the templates “Modal”.   I removed the highlighted class and rel tag, and added “_blank”. Now the “Edit item” button was showing and I could click it and edit the post. It of course opened in a new window.

I looked at the code from the original K2 component/templates/default/category_item.php file. It has “data-k2-modal=”edit”” to open in a modal. I added this line and I was close enough.

One issue remained where the “close” button didn’t close the window; however, if I clicked outside the modal window it would close the modal window.

I hope this helps someone else out there….