Joomla Asset Table Assignment

Could you explain to me what is the purpose of the asset table in joomla?

I have a script to import articles from .csv (from .xls) , which simply inserts new rows into the content table with the asset_id column (foreign key) set to 0 .

I have no problem with articles with id id 0. In any case, I would like to know if this could cause problems or disable some functions.

+6
source share
1 answer

The asset table is part of Joomla! 1.6+ ACL. It is designed to store a record for each asset that defines access rules.

You can learn more about Joomla! ACL here and there section in Joomla! 2.5. Component Tutorial adding ACL support .

If you import into articles (with resource identifier 0), they actually do not have an entry in the #__assets table, and they inherit the default access until they are opened and saved. When they are saved, a resource record will be created.

If you want to correctly create an asset record, just load the com_content model and use it to import for each article (there is no way to bulk import, we searched for one when 1.6, 1.7 and 2.5 came out).

+8
source

Source: https://habr.com/ru/post/927653/


All Articles