Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
ACL: access.xml and config.xml
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  19 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
vinnyboy  
View profile  
 More options Jul 22 2012, 2:11 pm
From: vinnyboy <vincentna...@hotmail.com>
Date: Sun, 22 Jul 2012 11:11:14 -0700 (PDT)
Local: Sun, Jul 22 2012 2:11 pm
Subject: ACL: access.xml and config.xml

Hi,

I'm trying to implement permissions for a component I write.  Which file
should hold the actions, access.xml or config.xml?

grtz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Babker  
View profile  
 More options Jul 22 2012, 3:06 pm
From: Michael Babker <mbab...@flbab.com>
Date: Sun, 22 Jul 2012 14:06:10 -0500
Local: Sun, Jul 22 2012 3:06 pm
Subject: Re: [jgen] ACL: access.xml and config.xml

access.xml is preferred so you can use the JAccess API.

-Michael

Please pardon any errors, this message was sent from my iPhone.

On Jul 22, 2012, at 1:11 PM, vinnyboy <vincentna...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vinnyboy  
View profile  
 More options Jul 22 2012, 4:10 pm
From: vinnyboy <vincentna...@hotmail.com>
Date: Sun, 22 Jul 2012 13:10:03 -0700 (PDT)
Local: Sun, Jul 22 2012 4:10 pm
Subject: Re: ACL: access.xml and config.xml

thanks for the reply...
so I don't need config.xml then?  I saw a tutorial which uses config.xml.
and the joomla hello_world uses both files....


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Babker  
View profile  
 More options Jul 22 2012, 4:18 pm
From: Michael Babker <mbab...@flbab.com>
Date: Sun, 22 Jul 2012 15:18:13 -0500
Local: Sun, Jul 22 2012 4:18 pm
Subject: Re: [jgen] Re: ACL: access.xml and config.xml

config.xml is needed for your component's configuration.  access.xml is used to set up the ACL.

-Michael

Please pardon any errors, this message was sent from my iPhone.

On Jul 22, 2012, at 3:10 PM, vinnyboy <vincentna...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vinnyboy  
View profile  
 More options Jul 22 2012, 4:38 pm
From: vinnyboy <vincentna...@hotmail.com>
Date: Sun, 22 Jul 2012 13:38:05 -0700 (PDT)
Local: Sun, Jul 22 2012 4:38 pm
Subject: Re: [jgen] Re: ACL: access.xml and config.xml

But i still need to add a fieldset to config.xml then?  
I tried a lot of combinations, but the actions i add in the xml file just
won't show up...

I install the component, then click on 'options' , that's where i should
see my custom actions, no?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Babker  
View profile  
 More options Jul 22 2012, 4:52 pm
From: Michael Babker <mbab...@flbab.com>
Date: Sun, 22 Jul 2012 15:52:19 -0500
Local: Sun, Jul 22 2012 4:52 pm
Subject: Re: [jgen] Re: ACL: access.xml and config.xml

You'll need a fieldset, yes.  Look at com_content's config.xml to get an idea what you'll need to do.

-Michael

Please pardon any errors, this message was sent from my iPhone.

On Jul 22, 2012, at 3:38 PM, vinnyboy <vincentna...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Hartless  
View profile  
 More options Jul 22 2012, 4:55 pm
From: Alan Hartless <hart...@gmail.com>
Date: Sun, 22 Jul 2012 13:55:05 -0700
Local: Sun, Jul 22 2012 4:55 pm
Subject: Re: [jgen] Re: ACL: access.xml and config.xml

Have a read through http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Compo.... That's what I used to ad acl to my component.

Thanks,
Alan

--
Alan Hartless
HartlessByDesign, LLC
http://hartlessbydesign.com
1.832.387.4233
#end


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vinnyboy  
View profile  
 More options Jul 22 2012, 4:58 pm
From: vinnyboy <vincentna...@hotmail.com>
Date: Sun, 22 Jul 2012 13:58:09 -0700 (PDT)
Local: Sun, Jul 22 2012 4:58 pm
Subject: Re: [jgen] Re: ACL: access.xml and config.xml

Hi,

I tried this tutorial (14), and if i add an action there it works fine.  
however, when i add it from scratch to my own component, there's only 4
actions showing:

configure
Access Administration Interface
delete
edit state.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vincent Naert  
View profile  
 More options Jul 22 2012, 5:09 pm
From: "Vincent Naert" <vincentna...@hotmail.com>
Date: Sun, 22 Jul 2012 23:09:02 +0200
Local: Sun, Jul 22 2012 5:09 pm
Subject: Re: [jgen] Re: ACL: access.xml and config.xml

I think that when i'm clicking options after installing the component, that i'm not seeing the options of my component, but the options of the installer...

From: vinnyboy
Sent: Sunday, July 22, 2012 10:58 PM
To: joomla-dev-general@googlegroups.com
Subject: Re: [jgen] Re: ACL: access.xml and config.xml

Hi,

I tried this tutorial (14), and if i add an action there it works fine.  however, when i add it from scratch to my own component, there's only 4 actions showing:

configure
Access Administration Interface
delete
edit state.

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/A3X6PDdzIf8J.
To post to this group, send an email to joomla-dev-general@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-general+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vinnyboy  
View profile  
 More options Jul 22 2012, 6:10 pm
From: vinnyboy <vincentna...@hotmail.com>
Date: Sun, 22 Jul 2012 15:10:04 -0700 (PDT)
Local: Sun, Jul 22 2012 6:10 pm
Subject: Re: [jgen] Re: ACL: access.xml and config.xml

I didn't have a backend yet, which i created now.  When i click 'options'
in the admin section of my component, i get
500 - An error has occurred.

XML file did not load

any ideas...?  the xml files are both in place....


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vinnyboy  
View profile  
 More options Jul 22 2012, 6:15 pm
From: vinnyboy <vincentna...@hotmail.com>
Date: Sun, 22 Jul 2012 15:15:39 -0700 (PDT)
Local: Sun, Jul 22 2012 6:15 pm
Subject: Re: [jgen] Re: ACL: access.xml and config.xml

the xml load problem is solved... i used the wrong component name in
JToolBarHelper::preferences('com_componentname');


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
piotr_cz  
View profile  
 More options Jul 23 2012, 4:11 am
From: piotr_cz <pkoniec...@hotmail.com>
Date: Mon, 23 Jul 2012 01:11:15 -0700 (PDT)
Local: Mon, Jul 23 2012 4:11 am
Subject: Re: ACL: access.xml and config.xml
Are you sure that the XML is valid?
I've used to get this errors when XML parser could not parse the file.
XML may be quite sensitive and errors may be caused by things you
would never expect (eg. multiline comments).

If you are not using IDE with XML support, search for online XML
validators to check for errors.

On Jul 23, 12:10 am, vinnyboy <vincentna...@hotmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vincent Naert  
View profile  
 More options Jul 23 2012, 4:43 pm
From: "Vincent Naert" <vincentna...@hotmail.com>
Date: Mon, 23 Jul 2012 22:43:14 +0200
Local: Mon, Jul 23 2012 4:43 pm
Subject: Re: [jgen] Re: ACL: access.xml and config.xml
hi,
yes, the xml is valid, this problem is solved.  when I click on 'options', I
can choose 'denied' for a specific group. however, when i reload, my change
is not saved...

--------------------------------------------------
From: "piotr_cz" <pkoniec...@hotmail.com>
Sent: Monday, July 23, 2012 10:11 AM
To: "Joomla! General Development" <joomla-dev-general@googlegroups.com>
Subject: [jgen] Re: ACL: access.xml and config.xml


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vinnyboy  
View profile  
 More options Jul 23 2012, 4:46 pm
From: vinnyboy <vincentna...@hotmail.com>
Date: Mon, 23 Jul 2012 13:46:59 -0700 (PDT)
Local: Mon, Jul 23 2012 4:46 pm
Subject: Re: ACL: access.xml and config.xml

this is my config.xml file:

<?xml version="1.0" encoding="utf-8"?>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vinnyboy  
View profile  
 More options Jul 23 2012, 4:58 pm
From: vinnyboy <vincentna...@hotmail.com>
Date: Mon, 23 Jul 2012 13:58:55 -0700 (PDT)
Local: Mon, Jul 23 2012 4:58 pm
Subject: Re: ACL: access.xml and config.xml

Must say that I don't have an access.xml file now.  I followed this
tutorial:
http://www.aclmanager.net/blog/general/31-how-to-add-basic-acl-suppor... it only uses config.xml...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vinnyboy  
View profile  
 More options Jul 26 2012, 4:36 pm
From: vinnyboy <vincentna...@hotmail.com>
Date: Thu, 26 Jul 2012 13:36:23 -0700 (PDT)
Local: Thurs, Jul 26 2012 4:36 pm
Subject: Re: ACL: access.xml and config.xml

hello,
still didn't get it to work...
when i add the file access.xml, then i get the error
 500 - An error has occurred.

XML file did not load

Could someone please tell me what i'm doing wrong?

below are the files:

config.xml

<?xml version="1.0" encoding="utf-8"?>

> <config>    
>     <fieldset name="permissions" label="JCONFIG_PERMISSIONS_LABEL"
> description="JCONFIG_PERMISSIONS_DESC">
>         <field name="rules" type="rules" label="JCONFIG_PERMISSIONS_LABEL"
> filter="rules" component="com_paddles" section="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" />
>         </field>
>     </fieldset>
> </config>

access.xml:

<?xml version="1.0" encoding="utf-8" ?>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
UZ  
View profile  
 More options Jul 28 2012, 5:47 am
From: UZ <zaheerus...@gmail.com>
Date: Sat, 28 Jul 2012 02:47:16 -0700 (PDT)
Local: Sat, Jul 28 2012 5:47 am
Subject: Re: ACL: access.xml and config.xml

Delete both permissions code in both config.xml and access.xml and then try again. Your xml issue could be because of invalid path given or some typing mistake in name in the installer xml file, removing the code and trying will confirm you if the issue has to do with ACL or something else.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vinnyboy  
View profile  
 More options Jul 29 2012, 11:43 am
From: vinnyboy <vincentna...@hotmail.com>
Date: Sun, 29 Jul 2012 08:43:03 -0700 (PDT)
Local: Sun, Jul 29 2012 11:43 am
Subject: Re: ACL: access.xml and config.xml

the error remains if i make both files empty...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Usman Zaheer  
View profile  
 More options Jul 29 2012, 5:29 pm
From: Usman Zaheer <zaheerus...@gmail.com>
Date: Mon, 30 Jul 2012 02:29:15 +0500
Local: Sun, Jul 29 2012 5:29 pm
Subject: Re: [jgen] Re: ACL: access.xml and config.xml

See, that means its not able to find your installer file or maybe some
other xml file that you are mentioning in installer file. Nothing to do
with ACL.

--
Regards,
Usman Zaheer

What consumes your thoughts controls your life


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »