hi guys
when a superadmin or author etc login to the frontend, and want to edit an article (joomla articles) there is no option to edit.
there is for modules, but not for articles.
can I get a fix please thanks heaps!
teitbite wrote:Hi
Please tell me which article system are You using. Is it K2 or regular joomla articles.
$params->get('show_hits')
|| $canEdit
teitbite wrote:Hi
Sorry. I must have been tired reading it
Please edit file /html/com_content/article/default.php and add under line 79 which should looks like this:
- Code: Select all
$params->get('show_hits')
this line
- Code: Select all
|| $canEdit
$aside_exists = true;
teitbite wrote:Hi
Edit button is displayed or not regarding the joomla settings, so if some users are restricted from editing will not see the button. It's dependable from joomla, not the code n this file.
If You want buttons to show always than You need to change in line 73 of this file value to true. Like this:
- Code: Select all
$aside_exists = true;
with the above the modification from my previous post is not neccessary.
teitbite wrote:Hi
Please tell me an url to an example of such page.
<script type="text/javascript">
(function($) {
$(document).ready(function() {
$('.itemBody').removeClass('gkHasAside');
});
})(jQuery)
</script>
.itemAsideInfo {
right: 0;
}
.itemAsideInfo #gkSocialAPI {
display: none;
}
<gavern:social><li id="gkSocialAPI"></gavern:social>
<gavern:social><a href="http://twitter.com/share" class="twitter-share-button" data-text="<?php echo $this->item->title; ?>" data-url="<?php $cur_url; ?>" GK_TWEET_BTN_SETTINGS>Tweet</a></gavern:social>
<gavern:social><fb:like href="<?php echo $cur_url; ?>" GK_FB_LIKE_SETTINGS></fb:like></gavern:social>
<gavern:social><g:plusone GK_GOOGLE_PLUS_SETTINGS callback="<?php echo $cur_url; ?>"></g:plusone></gavern:social>
<gavern:social><g:plus action="share" GK_GOOGLE_PLUS_SHARE_SETTINGS href="<?php echo $cur_url; ?>"></g:plus></gavern:social>
<gavern:social><a href="http://pinterest.com/pin/create/button/?url=<?php echo $cur_url; ?>&media=<?php echo $pin_image; ?>&description=<?php echo str_replace(" ", "%20", $this->item->title); ?>" class="pin-it-button" count-layout="GK_PINTEREST_SETTINGS"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="<?php echo JText::_('TPL_GK_LANG_PINIT_TITLE'); ?>" /></a></gavern:social>
<gavern:social></li></gavern:social>
<ul>HERE COMES THE CUT PART OF CODE</ul>