Nov 21, 2008, 07:24 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Donate to MODx: Donations
Pages: [1]   Go Down
  Print  
Author Topic: manager user and Front end posting with Newspublisher?  (Read 571 times)
0 Members and 1 Guest are viewing this topic.
DfX
Member
**
Posts: 91


« on: Oct 05, 2008, 02:45 PM »

Hi Ive recentlt decided to revisit modx, Iv been playing with it again and really do enjoy it.
But when I got to newspublisher I suddenly got frustrated again. 

"Manager users are stored separately from web (front-end) users for security reasons. A web user cannot log into the back-end nor can a Manager user log into the web site (front-end)."

I suddenly remembered this was the most frusterating element I had with modx. For crying ou load I just want to have one user who is able to edit content from the front end, and If I want to I can go theough the backend as well. To accomplish this thus far, I installed the manager login snippet, which has the front end interface. Nice. And either modx or maxigallery must have done an amendment because Its working as planned, I can login as a manager user and still manage a gallery...

But When It comes to Newspublisher Im ready to pull out my hair. I remember this was such an issue before that someone came up wth a Web2Manger plugin. But I also thought it was going to be resolved another via another method in the core...

So I think I may be missing the latest info on this and unfortunately my searches are sending me in circles.
Basically the question is...
Cant manager users post a blog from the front end, too? Is it really necessary to have a separate login and user for that? Perhaps I have an older version of that snippet. Please point me in the right direction.

Thanks so much. Modx is vey cool..I jsut hope this kind of issue has been resolved. Or alternatives present. (other than 2 sepertae logins)
« Last Edit: Oct 05, 2008, 04:27 PM by DfX » Logged
BobRay
Coding Team
*
Posts: 1,720



WWW
« Reply #1 on: Oct 05, 2008, 04:55 PM »

This might help: http://modxcms.com/forums/index.php/topic,14977.0.html. I don't know why FDM isn't in the Repository.

The permission system for Modx Revolution (currently in alpha) is much different and should solve many of your problems.

NewsPublisher, IMO, is not that much easier than creating documents in the Manager and it's no use for editing them, so having manager users do all their work in the Manager isn't that much of a hardship.

Also, I think a manager user who wants to use NewsPublisher can always right-click on the document with the NewsPublisher call and select "preview."



Logged

MODx info for newbies: http://bobsguides.com/MODx.html
dev_cw
Testers
*
Posts: 2,696



WWW
« Reply #2 on: Oct 05, 2008, 05:18 PM »

Quote
I don't know why FDM isn't in the Repository.
Because it is officially in beta, although many have been using it.

I am pretty sure you can edit NewsPub to show for manager users.
Logged

Shane Sponagle | Snippet Call Anatomy | Document Specific Variables

Something is happening here, but you don't know what it is.
Do you, Mr. Jones?  -  [bob dylan]
DfX
Member
**
Posts: 91


« Reply #3 on: Oct 05, 2008, 08:57 PM »

Thanks for the responses. I looked into FDM looks very promising.
I agree really it is easy to edit from the backend. But Im trying to streamline it for someone technically challenged. That is they get intimidated by too many options. In my opinion, as someone who usually codes in xhtml and css I find that Modx Is superior to many.


But the publication user mangement issue, i thought was fixed. I rember there was also a newmanager snippet that got close too it too.
I looked through FDM and its not working for me, yet. But I also see a lot of conflicts with my naming convention so Im not ready to dive into that one yet..Ill keep reading up on it though.

dev_Cw do you know where I can read more about editing NewsPub for manager users?

Thanks in advance.
!
Logged
BobRay
Coding Team
*
Posts: 1,720



WWW
« Reply #4 on: Oct 05, 2008, 10:40 PM »

Quote
I don't know why FDM isn't in the Repository.
Because it is officially in beta, although many have been using it.

I think it might be in permanent beta.  Wink

It's been there since May of 2007.
Logged

MODx info for newbies: http://bobsguides.com/MODx.html
dev_cw
Testers
*
Posts: 2,696



WWW
« Reply #5 on: Oct 06, 2008, 05:56 AM »

FDM should work.

Anyway a simple hack to make newsPub for managers only is to edit this code (it is the last bit of code for the snippet):
Code:
default:
        // display news form
        // check if user has rights to post comments
        if(!$allowAnyPost && !$modx->isMemberOfWebGroup($postgrp)) {
            $formTpl = '';
        } else {
            foreach($_POST as $n=>$v) {
                $formTpl = str_replace('[+'.$n.'+]',$v,$formTpl);
            }
        }
        // return form
        return $message.$formTpl;
        break;

change this line:
Code:
if(!$allowAnyPost && !$modx->isMemberOfWebGroup($postgrp)) {
to:
Code:
if(!$_SESSION['usertype'] === "manager") {

This worked for me in my test environment. Note, this will only allow manager users and it will allow any manager user. To limit it to a specific manager group will need more code.

About using the manager interface, my experience is that most users can handle it with a little initial coaching. You can slim it down by limiting the role (remove chunks, snippets) and now there is also the ManagerManager plugin that allows you to move things around and rename fields as well as add some nice widgets.
Logged

Shane Sponagle | Snippet Call Anatomy | Document Specific Variables

Something is happening here, but you don't know what it is.
Do you, Mr. Jones?  -  [bob dylan]
DfX
Member
**
Posts: 91


« Reply #6 on: Oct 06, 2008, 10:34 AM »

Thank you!
Im not sure why its not working but it seems like a simple hack.  This isn't just for comments is it?
Do I need to create a doc group or something?

Thanks for your assistance.
Logged
dev_cw
Testers
*
Posts: 2,696



WWW
« Reply #7 on: Oct 06, 2008, 11:02 AM »

It should work. I have attached the entire file, maybe a typo or something.

* NewsPublisher_ManagerUser.zip (4.91 KB - downloaded 12 times.)
Logged

Shane Sponagle | Snippet Call Anatomy | Document Specific Variables

Something is happening here, but you don't know what it is.
Do you, Mr. Jones?  -  [bob dylan]
BobRay
Coding Team
*
Posts: 1,720



WWW
« Reply #8 on: Oct 06, 2008, 11:36 AM »

Be sure to clear the site cache and your browser cache before testing the changed code.

Logged

MODx info for newbies: http://bobsguides.com/MODx.html
DfX
Member
**
Posts: 91


« Reply #9 on: Oct 06, 2008, 01:11 PM »

Still cant get it to work.
Im going to go through it thoroughly though and make sure Im doing the calls right.

Do I need any user groups set up? (I have two admins (managers) on my test site.

Ill keep digging, if its working for you its more likely I have an error somewhere in my set up. So ill double check before saying this fix doesnt work for me.
Thanks again for taking the time to do that..
Logged
BobRay
Coding Team
*
Posts: 1,720



WWW
« Reply #10 on: Oct 06, 2008, 02:04 PM »

Check here to make sure you understand how permissions work. It's complicated:

http://wiki.modxcms.com/index.php/Document_Access_Permissions
Logged

MODx info for newbies: http://bobsguides.com/MODx.html
DfX
Member
**
Posts: 91


« Reply #11 on: Oct 06, 2008, 10:21 PM »

darn the point of course would be not to deal with that.
So far besides FDM (which I will try tackling soon) it looks like the only recourse is to creat web users with the same username and password and then use a plugin like web2manager to merge them. Of course that might not work either.

Thanks for the link. It has all those steps that ive dreaded...and still shows a separation between the users. Web and Manager--
I kinda get it but I kept hearing about how things would change so a year latre I hope they had.

It just seems too bad that really to have someone post from the frontend(news publisher) and be able to do basic edits (via quickedit)
The only solution still seems to be to have manager login and weblogin side by side with a replicate user/password. argghh.

I mean personally , I refer the manager side, but I can tell you without a flinch most people I make web sites for dont want to deal with it like that. We can probably thank popular applications like facebook and myspace for the "why cant I just update it from the page" request...
LOL----

Again really appreciate the support -thanks, Im kinda  re-learning this all again..
« Last Edit: Oct 07, 2008, 01:02 AM by DfX » Logged
dev_cw
Testers
*
Posts: 2,696



WWW
« Reply #12 on: Oct 07, 2008, 06:03 AM »

what does your NewsPublisher call look like? You should not need to deal with permissions with the manager hack. There are some required fields that are native to NP. I have not used it much so I am not aware of the details.

I used it like this:
Code:
[!NewsPublisher? &folder=`2` &makefolder=`1` &clearcache=`1` !]
Logged

Shane Sponagle | Snippet Call Anatomy | Document Specific Variables

Something is happening here, but you don't know what it is.
Do you, Mr. Jones?  -  [bob dylan]
DfX
Member
**
Posts: 91


« Reply #13 on: Oct 07, 2008, 09:38 AM »

well the issue appears to be this...
If I leave the document in the public view...
Even with the Hack..

People can still see the post blog link and then after clicking that the form is available. It may not accept the submission..is that what it does?

--thanks

Im going to go ahead and look at the FDM...appreciate all the pointers..
« Last Edit: Oct 07, 2008, 11:02 AM by DfX » Logged
DfX
Member
**
Posts: 91


« Reply #14 on: Oct 07, 2008, 11:33 PM »

Ok -So it looks like FDM will work for me, Although I only need its most basic functions (Its quite a robust one), I finally figured out how to get it to work...
-Phew-

Just got to do some cleaning up. This definitely should be the next step toward the evolution of blog type posting and modx (with all due credit to previous tools too). IMO-Its really great to be able to have Manager users go in and post a quick note/doc from the front end while still also being able to use Quickedit  on those created docs and more. It provides a simple way for some users to just not deal with all the rest of the 'fun stuff'.
While providing more experienced users an alt. with the flexible backend mgt.

Very impressive, I knew modx would not let me down. Glad to be back.
i look forward to learning more..thanks so much for your assistance.



Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!