Hide edit button on frondend
Moderators: mandville, General Support Moderators
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Jan 28, 2011 3:13 pm
Hide edit button on frondend
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
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
-
- Joomla! Apprentice
- Posts: 19
- Joined: Wed Nov 23, 2011 10:18 am
Re: Hide edit button on frondend
I also need this feature, can someone help?
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri May 18, 2012 1:12 pm
Re: Hide edit button on frondend
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?
-
- Joomla! Apprentice
- Posts: 6
- Joined: Wed Aug 12, 2009 12:17 pm
Re: Hide edit button on frondend
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; ?>
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; ?>
- mandville
- 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
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}
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}
-
- Joomla! Hero
- Posts: 2954
- Joined: Sun May 04, 2008 12:37 pm
Re: Hide edit button on frondend
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...
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...
-
- Joomla! Intern
- Posts: 64
- Joined: Sat Oct 20, 2012 7:25 pm
Re: Hide edit button on frondend
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!
#main ul.actions li
display: change from "inline" to "none".
Done! No more edit icon messing up your layout!
-
- Joomla! Hero
- Posts: 2954
- Joined: Sun May 04, 2008 12:37 pm
Re: Hide edit button on frondend
That is just hiding the icon, not the possibility to edit from front end.
You will have to change this by using ACL settings.
You will have to change this by using ACL settings.
-
- Joomla! Intern
- Posts: 64
- Joined: Sat Oct 20, 2012 7:25 pm
Re: Hide edit button on frondend
Yes, well the title of the topic was "Hide edit button on frontend"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.
-
- Joomla! Hero
- Posts: 2954
- Joined: Sun May 04, 2008 12:37 pm
Re: Hide edit button on frondend
still if you don't use ACL, by using css the URL to edit is still available..
You are creating a security leak
You are creating a security leak
-
- Joomla! Apprentice
- Posts: 38
- Joined: Wed May 05, 2010 10:04 pm
- Location: Amsterdam
- Contact:
Re: Hide edit button on frondend
@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:
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;
}