Hi! I need to be able to filter my component
Content admin list according to the admin logged in and his user group, if Super User, can see all content of my component, if it's added to specific group or his childs, then can only see his own created content and other same group users content, for that I think this table structure should work.
#__com_mycomponent_contents
- id
- title
- slug
- Other table fields
#__com_mycomponent_contents_user_map
I want to be able to get the associated user id's from each content using the contents_user_map table and to store that associations on content save.
So far, I have added this field in my Content form
<field
name="allowed_content_users"
type="contentuserlist" // custom field that gets all users name and id
label="Allowed Users"
multiple="true"
layout="joomla.form.field.list-fancy-select"
/>
Also added this field to the Content edit.php tmpl file, so far so good, the field appears but on save, I can't see that field in the ContentTable.php file in the store method
How can I solve this, or there is a more Joomla way to handle auxiliary tables (xref, map tables)
Thanks!