SOLVED K2 edit button on frontend not available on user page

Amazing blog Joomla template for personal website with extensive features, additional typography and nice showcase of featured posts.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed May 28, 2014 11:11 am
Reply with quote
Report this post
Why is this a problem?
Because when a frontend editor saves an article without publishing it, the only way to later edit it/publish it is through his k2 user page on the list of last articles.
On gavick publisher template the edit button is unavailable, so I've modified this file
templates\gk_publisher\html\com_k2\templates\default\user.php
in the following way:
After row 60
Code: Select all
<?php if($this->params->get('userItemTitle')): ?>

Insert this code:
Code: Select all
<?php if(isset($item->editLink)): ?>
               <!-- Item edit link -->
               <span class="userItemEditLink">
                  <a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $item->editLink; ?>">
                     <?php echo JText::_('K2_EDIT_ITEM'); ?>
                  </a>
               </span>
               <?php endif; ?>

And off you go!!!
Please, moderators, include this alteration in a later version of this template.
Thanks in advance
User avatar
Senior Boarder

GK User
Thu May 29, 2014 8:21 am
Reply with quote
Report this post
Thanks for your solution. We will fix this issue in following template update.
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.