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….

 

0 Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>