Member
Member
gwmbox   2010-12-16, 01:29
#1

Hi guys

Is there a way to NOT show the unpublished menu items for pages and news on the front end when logged in as admin? We do not use front end editing so have no need for front end viewing of unpublished pages.

That editing can be done in the backend.

My reason: So admin can remain logged in to view the site as a visitor will, without needing to log out to view the site with the pages hidden.

Cheers

GW

Member
Member
sbillard   2010-12-16, 04:48
#2

Make an admin with out any rights. All he will see is the public content. (But of course, he will not have these rights on the back end, either!)

What I usually do is just browse with a different internet browser and leave that one not logged in.

Member
Member
gwmbox   2010-12-16, 05:46
#3

Yes that is what I am doing now, dual browsers, but it would be a good feature to have maybe for a future release, a select to show or hide front end unpublished menu items for admin.

Cheers

GW

Member
Member
sbillard   2010-12-16, 05:58
#4

It is so easy to either log-out or to use a different browser that it is hardly worth applying any development effort to this. Specially since it could NEVER be exactly the same as what a guest user would see.

That being said, you might take a look at the "no_show" plugin. I suspect that it could be modified to do what you want.

Member
Member
sbillard   2010-12-16, 23:05
#5

Well, that approach will not do what you want. However, with a small filter addition to the cookie autorization it is possible to make a plugin that will deny the logon cookie for the front end.

Such a plugin is now available in tonight's build. You may not really like it, though. It makes it so that an admin is actually not logged in when viewing the front end.

BTW, it would be possible to extend the plugin to list which admins had this option. Not sure if that is actually useful, though.

Member
Member
gwmbox   2010-12-17, 15:45
#6

Cheers for that, I will take a look at the nightly build and update in the morning....

Being NOT logged in to the front end is fine by me as I do not use the front end for any editing etc, however there may be times where the login is needed, so I will have a think about the filter options you mentioned.

Cheers

GW

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.