Front-end edit buttons missing?

GK User
Mon Oct 20, 2014 1:45 am
Hi
I have enabled front end editing in the site and in K2; some of the articles and modules show an "edit" button, but many do not. Is this a small bug in the template?
User avatar
Expert Boarder

teitbite
Tue Oct 21, 2014 9:26 am
Hi

Im afraid edit button is conected with some other header element, so please try match headers with the articles which does have edit button or show me the working and not working example so I'll try to fix it.
User avatar
Moderator

GK User
Wed Oct 22, 2014 1:19 am
It seems that all the modules are OK but not the articles. So I can't figure out a pattern with headers...
Can I send you a login by PM?
User avatar
Expert Boarder

teitbite
Thu Oct 23, 2014 9:02 am
Hi

Yes I meant articles. What affects it are extra informations ad their configuration. You can send me an access to ftp and show me the page where there is no edit button along with the access so I'll be able to see (not see) it.
User avatar
Moderator

teitbite
Sat Oct 25, 2014 10:13 am
Hi

I got Your joomla panel access, but I need an ftp access to find the cause of it. Please send it to me.
User avatar
Moderator

GK User
Sat Oct 25, 2014 3:55 pm
OK its done.
User avatar
Expert Boarder

teitbite
Mon Oct 27, 2014 1:56 pm
Hi

I have checked everything, but looks like it's just misconfiguration. Edit link is not showing even in a default joomla template as (not)seen on screenshot. Please try follow this instruction in order to meet all requirements https://www.gavick.com/documentation/su ... -k2-items/ if this will not work than You will have to report it to K2 developers.
User avatar
Moderator

GK User
Mon Oct 27, 2014 7:15 pm
Got it. But it is not only a K2 problem. None of my Joomla articles show a front-end edit button.
Also, the modules are not being edited at the front end, instead they are opening the administrator. Since Joomla 3.2 I think they should be editable in the front end.
User avatar
Expert Boarder

teitbite
Wed Oct 29, 2014 12:09 pm
Hi

Module frontend editing is still in a TODO list. I apologise for that. Meanwhile we have provided a link to module configuration at backend.

But edit button for regular joomla articles is in fact missing in wide-layout style. I'm gonna inform programmers about it. Than You for report.

If You want You can try add it Yourself manually with this code:

Code: Select all
   <?php if ($canEdit) : ?>
     <ul class="item-info">   
      <li><?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.edit', $this->item, $params)); ?></li>
   </ul>
   <?php endif; ?>   


files are in /html/com_content/article/ folder.
User avatar
Moderator

GK User
Tue Nov 04, 2014 2:14 am
Hi
I have added your code to the php files, and front-end editing works now. But the result is not really professional enough. It seems it does not work at all with JCK, only with JCE. The look is bad, there are bugs, and the (very important) Joomla 3.2 versioning is missing.

So I have a question - can I replace the front-end editing with a simple link to the back end of the article, the same as the module front-end editing?
Thank you
Stephen
User avatar
Expert Boarder

teitbite
Thu Nov 06, 2014 9:37 am
Hi

I have informed developers about this. I've just checked and it has been added as a task before the next update, so this fix will be available with template package soon.
User avatar
Moderator

GK User
Thu Nov 06, 2014 8:36 pm
Thank you Teitbite. When is the next update?
User avatar
Expert Boarder

teitbite
Sat Nov 08, 2014 11:42 am
Hi

Sorry, but I cannot tell for sure. You will need to observe updates page for that.
User avatar
Moderator

teitbite
Thu Nov 27, 2014 11:15 pm
Hi

I've just seen that this fix is implemented. It will be included in packages soon.
User avatar
Moderator

GK User
Sat Nov 29, 2014 6:22 pm
Thanks!
User avatar
Expert Boarder

teitbite
Sun Nov 30, 2014 12:31 pm
Hi

Scheduled for a Monday updates releases.
User avatar
Moderator

GK User
Mon Dec 22, 2014 2:35 am
Hi Teitbite:
I just upgraded to v 3.15, but still there seems to be some articles not offering front-end editing.
My site is dev.ficcionesmedia.com/provencal-2 and the front end login is only through the "News" page.
Look under the "Menus" (and each sub-menu) and also "About Us" has no editing button.
I sent you the login credentials before, but I will send again by pm.
Thank you for your help.
User avatar
Expert Boarder

teitbite
Mon Dec 22, 2014 6:59 pm
Hi

Looks like everything is connected with edit and print buttons. You can change it by editing /html/com_content/article/default.php and replacing:

Code: Select all
     <?php if (
      $params->get('show_category') ||
      (
         $params->get('show_parent_category') &&
         $this->item->parent_slug != '1:root'
      ) ||
      $params->get('show_hits')
     ) : ?>
     <ul class="item-info">
        <?php if ($params->get('show_category')) : ?>
        <li>
           <?php
              $title = $this->escape($this->item->category_title);
              $url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug)) . '" itemprop="genre">'.$title.'</a>';
           ?>
           
           <?php if ($params->get('link_category') and $this->item->catslug) : ?>
              <?php echo JText::sprintf('TPL_GK_LANG_PUBLISHED_IN', $url); ?>
           <?php else : ?>
              <?php echo JText::sprintf('TPL_GK_LANG_PUBLISHED_IN', '<span itemprop="genre">' . $title . '</span>'); ?>
           <?php endif; ?>
        </li>
        <?php endif; ?>
        
        <?php if ($params->get('show_parent_category') && $this->item->parent_slug != '1:root') : ?>
        <li class="parent-category-name">
                  <?php   $title = $this->escape($this->item->parent_title);
                       $url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_slug)) . '" itemprop="genre">'.$title.'</a>';?>
                  <?php if ($params->get('link_parent_category') and $this->item->parent_slug) : ?>
                  <?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
                  <?php else : ?>
                  <?php echo JText::sprintf('COM_CONTENT_PARENT', '<span itemprop="genre">' . $title . '</span>'); ?>
                  <?php endif; ?>
        </li>
        <?php endif; ?>
        
        <?php if ($params->get('show_hits')) : ?>
        <li class="itemHits"><?php echo JText::sprintf('TPL_GK_LANG_HITS', $this->item->hits); ?></li>
        <?php endif; ?>
        
        <?php if (!$this->print) : ?>
         <?php if ($params->get('show_print_icon')) : ?>
         <li><?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.print_popup',  $this->item, $params)); ?></li>
         <?php endif; ?>
         
         <?php if ($params->get('show_email_icon')) : ?>
         <li><?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.email',  $this->item, $params)); ?></li>
         <?php endif; ?>
         
         <?php if ($canEdit) : ?>
         <li><?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.edit', $this->item, $params)); ?></li>
         <?php endif; ?>
        <?php else : ?>
        <li><?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.print_screen',  $this->item, $params)); ?></li>
        <?php endif; ?>
     </ul>
     <?php endif; ?>


width:

Code: Select all
<ul class="item-info">
        <?php if ($params->get('show_category')) : ?>
        <li>
           <?php
              $title = $this->escape($this->item->category_title);
              $url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug)) . '" itemprop="genre">'.$title.'</a>';
           ?>
           
           <?php if ($params->get('link_category') and $this->item->catslug) : ?>
              <?php echo JText::sprintf('TPL_GK_LANG_PUBLISHED_IN', $url); ?>
           <?php else : ?>
              <?php echo JText::sprintf('TPL_GK_LANG_PUBLISHED_IN', '<span itemprop="genre">' . $title . '</span>'); ?>
           <?php endif; ?>
        </li>
        <?php endif; ?>
        
        <?php if ($params->get('show_parent_category') && $this->item->parent_slug != '1:root') : ?>
        <li class="parent-category-name">
                  <?php   $title = $this->escape($this->item->parent_title);
                       $url = '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_slug)) . '" itemprop="genre">'.$title.'</a>';?>
                  <?php if ($params->get('link_parent_category') and $this->item->parent_slug) : ?>
                  <?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
                  <?php else : ?>
                  <?php echo JText::sprintf('COM_CONTENT_PARENT', '<span itemprop="genre">' . $title . '</span>'); ?>
                  <?php endif; ?>
        </li>
        <?php endif; ?>
        
        <?php if ($params->get('show_hits')) : ?>
        <li class="itemHits"><?php echo JText::sprintf('TPL_GK_LANG_HITS', $this->item->hits); ?></li>
        <?php endif; ?>
        
         <?php if ($params->get('show_print_icon')) : ?>
         <li><?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.print_popup',  $this->item, $params)); ?></li>
         <?php endif; ?>
         
         <?php if ($params->get('show_email_icon')) : ?>
         <li><?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.email',  $this->item, $params)); ?></li>
         <?php endif; ?>
         
         <?php if ($canEdit) : ?>
         <li><?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.edit', $this->item, $params)); ?></li>
         <?php endif; ?>
     </ul>
User avatar
Moderator

GK User
Mon Dec 22, 2014 8:57 pm
I made the change as you told me and everything is working now, except the joomla article edit button is hidden under the article image! (I found it by deleting the image in "ABOUT US")
How do I move the article info or give it a bigger z-index?

By the way I forgot to say that the front-end editing format is excellent now in version 3.15. Good job!
User avatar
Expert Boarder

GK User
Tue Dec 23, 2014 2:54 pm
Update: I changed the menu type to "single article" from "single article one page wide" and the problem has disappeared.
User avatar
Expert Boarder

teitbite
Tue Dec 23, 2014 2:58 pm
Hi

You can revert it back and show me the url with example. It's probably just some css missing.
User avatar
Moderator

GK User
Tue Dec 23, 2014 3:20 pm
Sorry for this, I posted too soon.
I actually need to keep the "single article one page wide" format in "About Us" page, so I do need to move the edit button or make it visible over the article image.
The url is http://dev.ficcionesmedia.com/provencal ... .php/about
Here is the screenshot (and another page showing the edit button
Screenshot 2014-12-23 09.15.54.png

Screenshot 2014-12-23 09.13.21.png
User avatar
Expert Boarder

teitbite
Sat Dec 27, 2014 6:18 pm
Hi

Ok. I've just checked the problem. Looks like this code is much too early in this case. I need You to give me an access to ftp or send me the file: /html/com_content/article/default.php so I can correct it.
User avatar
Moderator

teitbite
Mon Dec 29, 2014 9:43 pm
Hi

I've made some changes. Please check if it's ok now. Here is a new content of folder: /html/com_content/article/
User avatar
Moderator

GK User
Tue Dec 30, 2014 1:03 am
Thank you so much for your work on this Pyotr. The client is quite difficult, and so (as you can see) I have modified the template A LOT since I started :(
You have corrected the menu items where the edit button was missing. But unfortunately the edit button is missing in the articles under the "MENUS" item (Lunch Menu, Dinner Menu, etc.)
Can I ask you one more time to take a look at this?
Stephen
User avatar
Expert Boarder

teitbite
Tue Dec 30, 2014 2:41 pm
Hi

It's working there as well. You just need to add this to override.css

Code: Select all
.gk-menu-container {
    margin: 0;
}
User avatar
Moderator

GK User
Tue Dec 30, 2014 6:30 pm
Thank you!
User avatar
Expert Boarder

GK User
Thu Jan 01, 2015 3:29 am
Just one little problem remaining. Since the fix, Joomla "single articles" are appearing with this "NULL" message on top.
Screenshot 2014-12-31 21.19.54.png

The "single Article - one page layout" does not have this problem, so I changed all the lunch menu, dinner menu, etc to single Article - one page layout.
But you will still see it if you link to a single article directly, for example by clicking on "Brunch" or "Lunch" or "Dinner" module on home page.
User avatar
Expert Boarder

teitbite
Fri Jan 02, 2015 11:35 am
Hi

Sorry, my bad. I've left it there by accident.

Fixed now.
User avatar
Moderator

GK User
Fri Jan 02, 2015 1:53 pm
Thank you!
Can you please let me know which files you changed? I made a copy of the site yesterday on the live host.
Happy 2015 to you.
User avatar
Expert Boarder

teitbite
Sat Jan 03, 2015 10:29 am
Hi

I have changed all files from /html/com_content/article/ folder. A package with files is attached. Plus the part of the code for css:

Code: Select all
.gk-menu-container {
    margin: 0;
}
User avatar
Moderator

GK User
Mon Aug 03, 2015 10:40 am
Is problem solved now ? I've made a site with this template 2 month ago but I'm still having this problem. I have joomla articles for frontend edit, not k2 articles
User avatar
Fresh Boarder

teitbite
Wed Aug 05, 2015 10:54 am
Hi

This is over 6month old thread, but I believe if You will use the attchment from my post above it would fix this problem for You as well.
User avatar
Moderator

GK User
Mon Feb 08, 2016 12:02 am
Hello and sorry for asking but i just installed last update and the problem seems to be there can we have all the files changed so as to apply easy?
Thanks in advance
User avatar
Fresh Boarder

teitbite
Thu Feb 11, 2016 12:18 pm
Hi

Of course, but it's the same package as in my last post. Not much has changed since than.
User avatar
Moderator

GK User
Mon Apr 18, 2016 11:05 pm
Hi!
Same problem as antonis.
Just after package installation I saw the EDIT icon and everything seemed to work well.
Unfortunately neither the “save“ button nor the “cancel“ button are active.
What can I do in order to activate these buttons?

Thank you in advance!
User avatar
Fresh Boarder

teitbite
Sun Apr 24, 2016 1:02 pm
Hi

Have You replace the file I provided ? If yes that tell me the exact url to the page You have this problem with and send me an access if it's necessary to see the issue.
User avatar
Moderator


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