Hide edit button on frondend

Moderators: mandville, General Support Moderators

Locked
kylen360
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Jan 28, 2011 3:13 pm

Hide edit button on frondend

Post by kylen360 » Mon Feb 20, 2012 1:09 pm

Hello

I have a custom use group who has full access to articles in the backend. However i dont want the edit icon to show up in the frontend when they are logged in. (its causing the site to look off centered).

In 1.5 i was able to use this http://extensions.joomla.org/extensions ... trol/14564 to fix it.

So how do i hide the edit button on the frontend of a joomla 2.5 site?

Thank you
Kyle

trankhanh89
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Wed Nov 23, 2011 10:18 am

Re: Hide edit button on frondend

Post by trankhanh89 » Tue Feb 21, 2012 3:57 pm

I also need this feature, can someone help?

MarjutPa
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri May 18, 2012 1:12 pm

Re: Hide edit button on frondend

Post by MarjutPa » Fri May 18, 2012 1:16 pm

I have the same problem with my Joomla 2.5.4. I can not find the place where I can remove that edit button on frontend. No one has answered this?

brajno
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Aug 12, 2009 12:17 pm

Re: Hide edit button on frondend

Post by brajno » Wed Nov 21, 2012 11:20 am

In Article Manager go to Options -> Permissions.
Select the group and under Edit select Denied.

You can also just hide it (editing is still allowed in front end) in /templates/your_template/html/com_content/article/default.php
By deleting:

<?php if ($canEdit) : ?>
<li class="edit-icon">
<?php echo JHtml::_('icon.edit', $this->item, $params); ?>
</li>
<?php endif; ?>

User avatar
mandville
Joomla! Master
Joomla! Master
Posts: 15150
Joined: Mon Mar 20, 2006 1:56 am
Location: The Girly Side of Joomla in Sussex

Re: Hide edit button on frondend

Post by mandville » Wed Nov 21, 2012 11:57 am

MarjutPa wrote:I have the same problem with my Joomla 2.5.4. I can not find the place where I can remove that edit button on frontend. No one has answered this?

Please update your joomla. Also any changes to core template files may be lost on upgrade.
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be reported, added to the foe list and possibly just deleted
{VEL Team Leader}{TM Auditor }{ Showcase & Security forums Moderator}

waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2954
Joined: Sun May 04, 2008 12:37 pm

Re: Hide edit button on frondend

Post by waarnemer » Fri Jan 11, 2013 11:57 am

You can do this using ACL settings.

What I did for authors who can edit in the back end but want to see a clean front end sample is this:

I created a new access level "viewer".
I created a group "viewer" under parent "public" with the same permissions as "public"
I created a user "viewer". only member of group viewer.

In 'site-configuration-site(tab)' changed default access level to 'viewer'. Now any new item will be created with standard level set to 'viewer'. It will not affect existing items.

In front end new articles are not available for public (yet) till someone set the level to public. But an author who logs in in front end with this user 'viewer' will see his new created item without any editor button whatsoever... clean! Soon as he is satisfied he can change this level to 'public' and every visitor can see it.

This way there are no hacks thus safe from overwriting when upgrading/updating and also template safe as it does not require css tricks...

wirkkalaj
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Sat Oct 20, 2012 7:25 pm

Re: Hide edit button on frondend

Post by wirkkalaj » Tue Feb 18, 2014 2:56 am

For anyone else still looking for an easy fix to hide that pesky edit article icon (edit-icon). Edit this line of code in the layout.css file. BTW I am using the Beez 20 template.
#main ul.actions li
display: change from "inline" to "none".
Done! No more edit icon messing up your layout!

waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2954
Joined: Sun May 04, 2008 12:37 pm

Re: Hide edit button on frondend

Post by waarnemer » Tue Feb 18, 2014 8:20 am

That is just hiding the icon, not the possibility to edit from front end.
You will have to change this by using ACL settings.

wirkkalaj
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Sat Oct 20, 2012 7:25 pm

Re: Hide edit button on frondend

Post by wirkkalaj » Fri Mar 14, 2014 11:08 pm

waarnemer wrote:That is just hiding the icon, not the possibility to edit from front end.
You will have to change this by using ACL settings.
Yes, well the title of the topic was "Hide edit button on frontend"

waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2954
Joined: Sun May 04, 2008 12:37 pm

Re: Hide edit button on frondend

Post by waarnemer » Sat Mar 15, 2014 3:43 pm

still if you don't use ACL, by using css the URL to edit is still available..
You are creating a security leak

cbrace
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Wed May 05, 2010 10:04 pm
Location: Amsterdam
Contact:

Re: Hide edit button on frondend

Post by cbrace » Sun Apr 12, 2015 7:20 am

@waarnemer: the OP asked how to hide the EDIT icon, not disable editing on the front-end.

v3.4 has Options --> "Show icons" --> with the standard Show|Hide|Default choices, and I have to think this controls whether the edit button is displayed, but I can't get it to work.

I set hide in both the options of the article itself as well as the menu item which points to it, but it has no effect. Only thing that works for me is this:

Code: Select all

#main .icons {
	display:none;
	}


Locked

Return to “Access Control List (ACL) in Joomla! 2.5”