Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • sunjeev Friend
    #145824

    I want to remove the edit article option from the front end of my website (telineII) .

    This is because i am using a 3rd party component that restricts article submission into certain section/category by user group, problem is that when the author clicks the pencil icon he can edit his article outside this component which unlocks all sections etc.

    Its the pencil in image below i want to remove.

    Css Magician Friend
    #322836

    Dear sunjeev,

    In order to problems, this is default by Joomla, and not setting in back-end. But, when you want to not show in front-end, you can have style


    .contentpaneopen_edit {
    display: none;
    }

    or you can remove some lines


    <?php if (($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own')) && !$this->print) : ?>
    <div class="contentpaneopen_edit<?php echo $this->escape($this->params->get( 'pageclass_sfx' )); ?>" >
    <?php echo JHTML::_('icon.edit', $this->article, $this->params, $this->access); ?>
    </div>
    <?php endif; ?>

    in htmlcom_contentarticledefault.php (lines 13) , htmlcom_contentcategoryblog_item.php (lines 9) , htmlcom_contentfrontpagedefault_item.php (lines 9) , htmlcom_contentsectionblog_item.php (lines 9)

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Css Magician 15 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum