If you enable having manager users see unpublished documents in the front end, you can work with the idea of having the document unpublished. Use a snippet to scan the SESSION to see if the user is a logged-in manager user and create a link to the unpublished page if he is.
} else { return false; }
[!ManagerCheck? &chunk=`NewsLink` &groups=`admins`!]
[(base_url)]index.php?id=51
If I get what you are saying, you want to have:
- a page for Admins to go to and edit/add pages on the front end
- with the Rich Text Editor available
I have done this with using the following combination:
Front End Document Manager (Snippet)- Custom TinyMCE Call
- Logout/Manager Links (Snippet)
Modifying the Logout/Manager Links snippet is very easy to turn it into a login or you could use Manager Links (which it is based on).
The reason I don’t used NewsPublisher anymore is that it is designed to use with WebUsers and it is a pain. By default the FDM is available to Admins only (you can extend it to groups and users as needed).
Hope this helps (may make more work though).
Jay
I don’t need the admin to be able to add/edit pages, other than what is available with NewsPublisher - though I do need them to be able to use QuickEdit.
I’ve basically hacked QuickEdit so the main toolbar doesn’t show up and have used TV’s for the content areas, so when the manager logs in there is a nice little edit button next to every section of content. This way, the client need never know that the manager even exists.
Your combo looks a bit lengthy for what I’m trying to achieve. I have managed to hide the link with a CSS workaround, but when someone enters the URL (from looking in the source or whatever) for the news updating page, it’s accessible to the public.
Security isn’t a huge issue with this site, though this is too much of a hole to ignore.
I just need a page to be only accessible when the manager is logged in.
Quote from: thehen at Jan 04, 2008, 07:23 AM
I don’t need the admin to be able to add/edit pages, other than what is available with NewsPublisher - though I do need them to be able to use QuickEdit.
I’ve basically hacked QuickEdit so the main toolbar doesn’t show up and have used TV’s for the content areas, so when the manager logs in there is a nice little edit button next to every section of content. This way, the client need never know that the manager even exists.
Your combo looks a bit lengthy for what I’m trying to achieve. I have managed to hide the link with a CSS workaround, but when someone enters the URL (from looking in the source or whatever) for the news updating page, it’s accessible to the public.
Security isn’t a huge issue with this site, though this is too much of a hole to ignore.
I just need a page to be only accessible when the manager is logged in.
Ahh, I think I get what you are doing now. My solution may be overkill for the time permitted but it is actually what I would do and have done in the same case. (I don’t use quickedit though as I like the front end forms of FDM better for clients. JS popups can confuse some of my clients so I try to avoid them as much as necessary (although Tiny MCE uses them)
If you have an admin user with the proper permissions they will be able to access pages even if they are unpublished. So if the only person going to the NewsPublisher page is an admin then you should be able to unpublish it. Just use the [~5~] where 5 is the id of your newspublisher publish page.
If I am not mistaken the Manager Login only works with its sibling snippet so it may not do what you want it to do.
On your link, I am not sure if it is correct or not. I would try the following [~51~] but I’d have to check the params to see how the manager login worked again. Try placing a full URL in your "NewsLink" chunk: <a href="[~51~]">Edit</a> to generate the link when the manager is logged in.
