Edit button does not show up

GK User
Mon Mar 14, 2011 12:35 pm
Hello,
the Edit button does not show up when the Joomla is not configured to show extra article information such as date, author, icons, ...

Check it in templatepenguimailhtmlcom_contentarticledefault.php (same in sectionblog_item.php and categoryblog_item.php):

<div class="contentpaneopen_edit">
is within <div class="article-tools clearfix">

which is shown only if
Code: Select all
<?php if ($this->params->get('show_pdf_icon') || $this->params->get('show_pdf_icon') || $this->params->get('show_email_icon')) : ?>

So if show_pdf_icon, show_pdf_icon, show_email_icon are all false, edit button does not show up.

The original Joomla distribution handles this in another way checkin first if the user is connected and has editing right. The code is then
Code: Select all
<?php if ($canEdit || $this->params->get('show_pdf_icon') || $this->params->get('show_pdf_icon') || $this->params->get('show_email_icon')) : ?>


This has to be fixed in three above-mentioned files.
User avatar
Junior Boarder

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