How to manage the assets table ?

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
duddy67
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 229
Joined: Sun Jul 12, 2009 12:04 pm

How to manage the assets table ?

Post by duddy67 » Tue Jan 24, 2012 9:04 pm

Hi,

I need to deal with the #__assets table for one of my component but the assets table management
remains a mystery to me.

In order to grab some example I "greped" the whole joomla root directory but I didn't get a single insert('#__assets' or INSERT INTO "#__assets" query. :eek:
So how (and where) Joomla manage the rows insertions / deletions on the assets table,
is there a specific treatment for it ? ???

Thanks for your answers.

crandaddy
Joomla! Explorer
Joomla! Explorer
Posts: 431
Joined: Wed Jun 14, 2006 8:14 pm
Location: Texas: Dallas/Fort Worth area
Contact:

Re: How to manage the assets table ?

Post by crandaddy » Tue Jan 24, 2012 10:18 pm

Have you taken a look at this article?

http://docs.joomla.org/Developing_a_Mod ... _-_Part_14

duddy67
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 229
Joined: Sun Jul 12, 2009 12:04 pm

Re: How to manage the assets table ?

Post by duddy67 » Thu Jan 26, 2012 8:43 am

Thanks, I checked it out but it still doesn't answer to my question (how to add an entry in assets table).
But may be I wasn't clear enought about my goal. Actually I'd like to add
a category to my component during its installation (I've already opened up a topic here http://forum.joomla.org/viewtopic.php?f=642&t=643109), but it seems very tricky and I think I have to learn more about the assets table managing to resolve my pb.
So if you have any info I'll take it.

crandaddy
Joomla! Explorer
Joomla! Explorer
Posts: 431
Joined: Wed Jun 14, 2006 8:14 pm
Location: Texas: Dallas/Fort Worth area
Contact:

Re: How to manage the assets table ?

Post by crandaddy » Thu Jan 26, 2012 2:47 pm

I believe you can manage that through the access.xml file and Joomla manages the rest (not 100% sure but that is what I would check into first). You would add a <section name="category"> ... </section> piece to that file. You might check out the com_content component access.xml file in the administrator section for an example.

duddy67
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 229
Joined: Sun Jul 12, 2009 12:04 pm

Re: How to manage the assets table ?

Post by duddy67 » Thu Jan 26, 2012 4:47 pm

Indeed, it could have been the solution but I'm afraid it is not. The access.xml files are only about actions (create, delete etc...) against the component elements and the component itself.
I didn't see any category name in the com_content access.xml file so I guess the assets table is managed in another way.

Thanks for your help anyway and let me know if you have any further info.

crandaddy
Joomla! Explorer
Joomla! Explorer
Posts: 431
Joined: Wed Jun 14, 2006 8:14 pm
Location: Texas: Dallas/Fort Worth area
Contact:

Re: How to manage the assets table ?

Post by crandaddy » Thu Jan 26, 2012 6:29 pm

I would assume that the access.xml file would be applied to any category that is created for the component and then you would need to override the rules for any categories that you want to be different from your standard rule set.


Locked

Return to “Joomla! 2.5 Coding”