The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Dec 09, 2010 1:16 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Aug 16, 2010 3:46 pm
Posts: 4
Hi,
I'm developing an extension for joomla 1.6 but I have some problems.
I need to add new user groups and new actions during installation of my component. I think I can do that with some statements in a XML installation file but I can't find any information about this.
I saw action.xml file but I can't understand what I can do with this file.

Can you help me?


thanks in advance!


Top
 Profile  
 
PostPosted: Mon Dec 20, 2010 7:04 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Mon Dec 08, 2008 10:57 am
Posts: 159
You need to define the permission types in access.xml and you need to implement that in your view.html.php on every view.

Refer here

_________________
www.joomalai.co.in, www.jeema.net
Your Joomla Specialist from Chennai, India


Top
 Profile  
 
PostPosted: Wed Dec 22, 2010 11:09 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Aug 16, 2010 3:46 pm
Posts: 4
I read that page and I tried to create an access.xml in my component but seems not work.

this is my access.xml:
Code:
 
<?xml version="1.0" encoding="UTF-8"?>
<access component="com_area_strumentale">
        <section name="component">
                <action name="com_area_strumentale.mantainer" title="JACTION_MNT" description="JACTION_MNT_COMPONENT_DESC" />
        </section>
</access>


I can't understand why this action is not in joomla ACL manager after component installation.
Can you help me?


Top
 Profile  
 
PostPosted: Wed Dec 22, 2010 11:21 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Mon Dec 08, 2008 10:57 am
Posts: 159
Have you created the config.xml file for your component? Refer the same page and create a config.xml.

Once you include the rules inside your config.xml you need show the parameters icon in the view.html.php

JToolBarHelper::preferences('com_helloworld');

You can see the component preferences where you can set the access permission.

Once you define the permission you need to use JAccess/getActions to determine the permissions for the current user

_________________
www.joomalai.co.in, www.jeema.net
Your Joomla Specialist from Chennai, India


Top
 Profile  
 
PostPosted: Wed Dec 22, 2010 2:43 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Aug 16, 2010 3:46 pm
Posts: 4
ok! now it works!
I didn't create config.xml.

thank you very much!


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 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