The Joomla! Forum ™






Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Apr 12, 2012 1:48 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Sep 01, 2005 9:15 pm
Posts: 4
Location: Austria
If I try to use com_categories with a custom extension with section, how is it possible to set the acl rights for a usergroup?

com_categories requires the aclgroup com_<name>.section in the acl table but I have no Idea how I could create this the easy way.
its not possible with com_config to save such a ruleset, also formfieldrules could not load such section because I think it requires a asset_id.


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

Joined: Thu Aug 18, 2005 8:43 pm
Posts: 7846
Location: New York
Do you have more than one kind of category?

Just copy what is in one of the core components.

_________________
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 11:28 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Sep 01, 2005 9:15 pm
Posts: 4
Location: Austria
I have more then one category.

The problem is that all joomla core extensions are using only one category pro component so they don't have this problem....


Top
 Profile  
 
PostPosted: Wed Apr 25, 2012 1:56 pm 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Thu Aug 18, 2005 8:43 pm
Posts: 7846
Location: New York
And do you have the sections set up correctly in the access.xml for the extension? Can you paste a copy of the xml please?

_________________
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: Wed Apr 25, 2012 4:53 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Sep 01, 2005 9:15 pm
Posts: 4
Location: Austria
The "productfinder" section should be used for the category
I use this link to edit the categories: index.php?option=com_categories&view=categories&extension=com_custom.productfinder
This works fine for superadmin but not for a manager.
Code:
<?xml version="1.0" encoding="utf-8"?>
<access component="com_custom">
   <section name="component">
      <action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" />
      <action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" />
      <action name="core.create" title="JACTION_CREATE" description="JACTION_CREATE_COMPONENT_DESC" />
      <action name="core.delete" title="JACTION_DELETE" description="JACTION_DELETE_COMPONENT_DESC" />
      <action name="core.edit" title="JACTION_EDIT" description="JACTION_EDIT_COMPONENT_DESC" />
      <action name="core.edit.state" title="JACTION_EDITSTATE" description="JACTION_EDITSTATE_COMPONENT_DESC" />
      <action name="core.edit.own" title="JACTION_EDITOWN" description="JACTION_EDITOWN_COMPONENT_DESC" />
   </section>
   <section name="productfinder">
      <action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" />
      <action name="core.create" title="JACTION_CREATE" description="JACTION_CREATE_COMPONENT_DESC" />
      <action name="core.delete" title="JACTION_DELETE" description="JACTION_DELETE_COMPONENT_DESC" />
      <action name="core.edit" title="JACTION_EDIT" description="JACTION_EDIT_COMPONENT_DESC" />
      <action name="core.edit.state" title="JACTION_EDITSTATE" description="JACTION_EDITSTATE_COMPONENT_DESC" />
      <action name="core.edit.own" title="JACTION_EDITOWN" description="JACTION_EDITOWN_COMPONENT_DESC" />
   </section>
</access>


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



Who is online

Users browsing this forum: No registered users and 12 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