The Joomla! Forum ™






Post new topic Reply to topic  [ 30 posts ] 
Author Message
PostPosted: Wed Apr 11, 2012 9:01 am 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
Hi!
Is there a way to limit the access level selection list in the form of a new article to the user from a group Editor?

Attachment:
Acces-danied-4.png


Best Regards!


You do not have the required permissions to view the files attached to this post.


Last edited by sone12 on Sat Apr 28, 2012 6:06 am, edited 2 times in total.
Made your "image from the sky" as an normal forum attachment. Please use the attachment feature in the future.


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 1:10 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Jan 18, 2011 2:12 am
Posts: 104
MarioMari wrote:
Hi!
Is there a way to limit the access level selection list in the form of a new article to the user from a group Editor?

Best Regards!


Your question confuses me a but correct me if I am wrong OK? You want to allow front end posting of new articles per user level. Is that it?

Well, assuming that *IS* it, all very easy. Let's make an assumption here and say that you have user level Public for people not registered or not logged on right now, Registered for those who are logged on and definitely registered and Super User for you. If that is right and you want to make SOME of those Registered members able to post new items first off, where? Eg, do you want them to be able to post a new item all over your site anywhere they like or just within a particular area? I will make the assumption that you only want to give them access to a particular area so read below:

I run www.readournovels.com and it was important to me that I have user helpers help me run things. So I have created categories for novels and under those categories, user access levels where a user I grant access to can publish, unpublish, edit, create but not delete. Unpublish is almost the same as delete but I may see things differently to the category manager so I wanted final say. In order to accomplish that, I did this, say for Science Fiction to keep this straight in my head:

1) Go to the user manager and create a user Group called Science Fiction with a parent of Public. A parent of Public is IMPORTANT.
2) Go to the particular user I want to have that access and put a tick against Science Fiction for him/her remembering that multiple ticks may mean different things you do or do NOT want to happen. So be careful there.
3) Go to the Top Level category under which Science Fiction is a sub category and ensure that no permissions are active for anyone who isnt a Super user.
4) Having made sure of that, go to the Science Fiction sub category and click Permissions. Under there, click on Science Fiction and change whatever you wish the user to have to Allowed. Remember that whatever you are allowing them to have can come back at you in the future so be sure about this.

That is it. I recommend you create yourself a test user and assign that special permission to the test user then go to the front end, logon as that test user and go to a category where the test user does NOT have any permissions to see that all is OK and nothing can be done there then go to the category where the user DOES have rights above just Registered and see that those permissions now show up on the front end as you wish them to be.

Do yourself a favour and dont allow them DELETE access because the phrase "shut up" in some countries is akin to "F... Off" in other countries. So interpretation of something that offends your higher access user may lead them to want to get rid of that article. They can UNPUBLISH it which will get rid of it from view but you can then check it out for yourself and decide if it should be properly deleted or whether it was just something stupid. Add to that the possibility that some article on your site may well be from the sworn enemy of that person. Obviously you can have as many people as you like with that higher access so multiple people able to do the same thing in that category.

All you have to do after that is repeat that process for each category to have specialised access to one part of your site but not all of it. So, joe blow can edit one category but no other while Jane Smith can edit yet another but not the one Joe Blow edits.

Hope that helps.

Greg.


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 10:59 am 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
Thank you for your reply!
Perhaps I explained it badly.

Look to the graphic description again.

Now the user from one group can give access rights for the second group - very bad. I want to limit it to him.

In such matters get tough bad as it is now, when the user for any reason for reported, the new article will give access to another group is in effect after you save the article disappears from view all groups. The effect of the black hole. :(

Reagrds!


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 11:50 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Jan 18, 2011 2:12 am
Posts: 104
MarioMari wrote:
Thank you for your reply!
Perhaps I explained it badly.

Look to the graphic description of the situation.
http://cl.ly/202A1m2g1M1D3w193g41

Now the user from one group can give access rights for the second group - very bad. I want to limit it to him.

In such matters get tough bad as it is now, when the user for any reason for reported, the new article will give access to another group is in effect after you save the article disappears from view all groups. The effect of the black hole. :(

Reagrds!


The way I explained it and how to do it suits what you want so I dont understand your reply, sorry.


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 12:20 pm 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
Quote:
Eg, do you want them to be able to post a new item all over your site anywhere they like or just within a particular area?

— I know how to restrict user access to only one category.
I would like to determine the choice of field access in the form of a new article. I want the user to "Example User2" can choose from a list of access only inflicted by the Administrator access. Not a whole list of all access view in Joomla site.
Now he can give the rights of another group.

The Joomla Permission Settings I do not find the possibility of blocking the user ergo group access rights to the Access option in forms new aricle.

Each user adds a new article may give to him any access available in Joomla.

To some extent this is understandable for me, but setting up a New Item mneu shall also it can not abut Access rights to the letter in the form of a new article.

I do not understand this. I now have effective black hole.


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 1:03 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Jan 18, 2011 2:12 am
Posts: 104
MarioMari wrote:
Quote:
Eg, do you want them to be able to post a new item all over your site anywhere they like or just within a particular area?

— I know how to restrict user access to only one category.
I would like to determine the choice of field access in the form of a new article. I want the user to "Example User2" can choose from a list of access only inflicted by the Administrator access. Not a whole list of all access view in Joomla site.
Now he can give the rights of another group.

The Joomla Permission Settings I do not find the possibility of blocking the user ergo group access rights to the Access option in forms new aricle.

Each user adds a new article may give to him any access available in Joomla.

To some extent this is understandable for me, but setting up a New Item mneu shall also it can not abut Access rights to the letter in the form of a new article.

I do not understand this. I now have effective black hole.


Look I am sorry but my only language is English and it is clear your first language isnt English so this isnt getting across but I will state it plainly this way:

You can have a subcategory and under that a group of menus or just one menu if you like and you can assign access for front end editing to that subcategory only so that any menu under that subcategory where the user has the right access will allow the user to front end edit based on what you want to allow. If you restrict it to a subcategory then any other category does NOT get affected. In my own site at www.readournovels.com there are genres of novels. The person who can front end edit in Science Fiction cannot front end edit in any other subcategory and when going to any other subcategory, the site looks exactly the same as a registered user with no higher access would see.

If you are saying that you want a user with higher access to be able to give better/higher access to anyone within only that area he has higher access in, that is a back end issue with vanilla Joomla but you would have to give more access than you are wanting to do. I dont know of any extension in Joomla that will do that but search the Joomla extensions and see if you can find one. Failing that, do a Google search for it. I found an extension I use that way. It wasnt listed here at the time.


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 7:37 am 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
I sent you to access the page. It may be easier if you want to configure your instance? You can make any changes it is only a test page.


Top
 Profile  
 
PostPosted: Fri Apr 20, 2012 3:24 pm 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
greg-oz@: And how can you visit this page sent to you?


Top
 Profile  
 
PostPosted: Fri Apr 20, 2012 9:42 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Jan 18, 2011 2:12 am
Posts: 104
MarioMari wrote:
greg-oz@: And how can you visit this page sent to you?


I havent been back here for a few days and am unlikely to until tonight either but when you first asked, you didnt give me the URL so I find it hard to get to a site unless I have an URL or a NAME I can find on a search!? ;-}


Top
 Profile  
 
PostPosted: Sat Apr 21, 2012 7:49 am 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
Hmmm have not received my PM? Ok. I send it again.

In addition, please here is the link to install the configuration of what I write. This copy Akebba Backup. After unpacking the server, enter the address directory web directory and start the installation.
http://cl.ly/0V320A1b340b3g1h1v1d

Cheers!


Top
 Profile  
 
PostPosted: Sun Apr 22, 2012 1:20 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Thu Aug 18, 2005 8:43 pm
Posts: 7846
Location: New York
Do you want to restrict to one level or to the default level?
Make a layout override and don't include the access level field.

_________________
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.


Top
 Profile  
 
PostPosted: Sun Apr 22, 2012 4:04 am 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
Thank you for your response.
Jśli hide this field for all, or whether this is the default mapping can be set in several different versions for several different groups? How and where can I do? Eg I can create and set a separate modified templates for each of the menu for the group. Well I think?


Top
 Profile  
 
PostPosted: Sun Apr 22, 2012 8:06 am 
Joomla! Master
Joomla! Master

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13758
Location: Akershus, Norway
You have a menu item of type "Create New Article", right?

Under Basic Options, set Default category=Yes and fill in the Category that will be default.


Top
 Profile  
 
PostPosted: Sun Apr 22, 2012 8:16 am 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
Thank you for the hint.

Quote:
You have a menu item of type "Create New Article", right?

— yes

Quote:
Under Basic Options, set Default category=Yes and fill in the Category that will be default.

— No. I need not limit the to Access Viewing Levels (access field in form new article).
(access to category I limit the options category permissions "Article Manager Options")

look here
http://cl.ly/202A1m2g1M1D3w193g41

or If you have time here an example of installation with a problem about which I write.
http://cl.ly/0V320A1b340b3g1h1v1d


Top
 Profile  
 
PostPosted: Sun Apr 22, 2012 8:35 am 
Joomla! Master
Joomla! Master

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13758
Location: Akershus, Norway
The Categories of the other Teams will disappear if you remove the "Create Permission" for that group on these Categories. Check the permissions for the Categories.


Top
 Profile  
 
PostPosted: Sun Apr 22, 2012 8:43 am 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
yes I know,
The problem with what I write is, that the form of a new article allows each author to any change in the Access Levels Viewing. You can see it on the prepared test instalations by me.


Top
 Profile  
 
PostPosted: Sun Apr 22, 2012 8:48 am 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
How to change the permissions to block access to the author list Access Viewing Level field in the form of a new article.


Top
 Profile  
 
PostPosted: Thu Apr 26, 2012 8:37 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Oct 19, 2008 11:12 pm
Posts: 7
Mario,

Just to join the conversation a little I believe I am having the same issue as you. Put simply:

User creates new article and is in Access Group A. Unfortunately he sees Access Group B and can therefore create an article with access for Access Group B.

I (and you I believe) want it so that we can control that Access Group A creating an article cannot assign access to Access Group B.

Correct? If so, I'm stuck on this one too!


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 4:28 am 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
Yes.
Despite the questions on many forums, no one gave way to get around — in my opinion creates a black hole.

or If you have time here an example of installation with a problem about which I write.


Top
 Profile  
 
PostPosted: Sat May 26, 2012 10:34 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Mar 15, 2012 12:59 pm
Posts: 1
Hi Mario,
I have the same problem with the access level in the frontend editor.
Have you found a solution?


Top
 Profile  
 
PostPosted: Sat May 26, 2012 10:39 pm 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
Hi!
No. Wating for Joomla support.


Top
 Profile  
 
PostPosted: Fri Jun 01, 2012 3:53 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun May 13, 2012 7:28 pm
Posts: 10
I was wondering if there is any news on this issue?

I am having the same problem. I have hidden the access level box, so that the user can not select an access level, but now every article is created using the default access level from the global config. Even though the category the article is created under can only be viewed by a custom access level.

I would like one of two solutions:

1) the access level used is based on the selected category

or if not possible

2) guidance on how to make changes to the code so that I can programmatically set the access level based on the category the user selects


Top
 Profile  
 
PostPosted: Fri Jun 01, 2012 8:05 pm 
Joomla! Master
Joomla! Master

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13758
Location: Akershus, Norway
http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core


Top
 Profile  
 
PostPosted: Fri Jun 01, 2012 8:23 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun May 13, 2012 7:28 pm
Posts: 10
Thanks for the reply. I already am trying to override the edit.php file to do this but it is not working. I have previously overridden it with success to make other changes.

To set the access level based on category selected I have tried adding some Javascript to the submitButton logic. For some reason this is not working and I can't get it to debug either. So I am left with three possible reasons:

1) There is a problem with my code (highly possible)
2) I am changing the wrong file for the submit logic
3) You simply can't do what I am trying to do

I have attached my edit.php file - any help on this would be greatly appreciated.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Sat Jun 02, 2012 5:04 am 
Joomla! Intern
Joomla! Intern
Online

Joined: Tue Feb 28, 2012 6:59 am
Posts: 60
@ jstalnecker1 Have you tried it already?. But this solution also has its drawbacks.

http://www.joomlablogger.net/joomla-tut ... nd-editor/


It's all improvisation. Joomla is at this point an important problem that must be solved in order to further develop. We need real change in the ACL Joomla. Look to cast your vote here.

http://ideas.joomla.org/forums/84261-jo ... et-as-defa
or
http://ideas.joomla.org/forums/84261-jo ... nd-editing


Top
 Profile  
 
PostPosted: Sat Jun 02, 2012 6:48 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun May 13, 2012 7:28 pm
Posts: 10
Thanks for the link. That is similar to what I am doing but I am overriding the edit.php file to assign classes the html tags I want to hide and then hiding them with css. That way I have a little more flexibility on when I show different options.

What I am trying to do now is set the access level automatically based on the category choose by the user. So far I have had no success. :(


Top
 Profile  
 
PostPosted: Sat Jun 02, 2012 7:08 pm 
Joomla! Master
Joomla! Master

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13758
Location: Akershus, Norway
What is the reason for doing this?

The articles will not be visible even if they are Public if the Category is Registered.


Top
 Profile  
 
PostPosted: Sat Jun 02, 2012 8:15 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun May 13, 2012 7:28 pm
Posts: 10
That is exactly the reason. I am building a site for several different facilities to use and one section of the site will contain brief postings related to the user's local facility. I only want users to be able to see the postings for their site - so I have user groups, access levels, and categories for each site. The manager at each site is responsible for creating the postings. These postings must appear on the site automatically without any one accessing the back end to publish or set the access level. The article needs to be set to the correct access level upon creation so it is visible.


Top
 Profile  
 
PostPosted: Mon Jun 04, 2012 11:53 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun May 13, 2012 7:28 pm
Posts: 10
I finally got this working. It seems that my override of the edit.php source was on the right track. I simply had one extra ) on line 87. That caused my changes to not work even though the article was created. Not sure why I didn't get any errors, but once I removed the extra ) the access level was set correctly.

Thanks to all who replied.


Top
 Profile  
 
PostPosted: Sat Sep 29, 2012 8:31 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Nov 28, 2011 12:13 am
Posts: 13
I've done this in a slightly easier way, mainly because I only have one set of users who I don't want to give the option of choosing the access level.

in the edit.php (for those who don't know, this is located in templates/your_template/com_content/form/), I added an if statement to the access level section:
Code:
<!-- If category = 'volunteer articles', remove access level option -->
<?php if($params->get('catid', 34)) {} else {  ?>
      <div class="formelm">
      <?php echo $this->form->getLabel('access'); ?>
      <?php echo $this->form->getInput('access'); ?>
      </div>
<?php } ?>

This removes the access level option entirely for this specific category id, when submitting articles in the front end. The default access level (for me at least) is Public, which is what I want, so all I have to do now is check the submitted article and publish (or not).

I have the UAM component installed, and it works for this too without hardcoding anywhere else.

It's not very flexible, but then I don't need it to be. Oh, and if you echo $params in the file, you can see what options you have to play with...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ] 



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group