{user:id} gets the current user id so you can read the requisite record or save the correct record.
You can check if the user is an admin by checking if there is an entry on user_usergroup_map with the user id and the required group id
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine! Donations: paypal.me/healyhatman Professional Work: kamron@skyspider.com.au Custom CF / CC Plugins and Extensions: skyspider.com.au/store
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine! Donations: paypal.me/healyhatman Professional Work: kamron@skyspider.com.au Custom CF / CC Plugins and Extensions: skyspider.com.au/store
Installed dynamic actions demo and have the delete page looking like it should delete but seems delete event not firing. Have tried to follow the demo as closely as possible. I am deleting a record from 2 related tables => a user record from the Joomla users table and the record in the related table that holds additional user data.
Have included some pics to try show what I've done.
Also not sure why there are 2 delete icons, one red one black - followed the dynamic action demo classes and content settings, and tried omitting some settings. Anyway most important task now is getting the delete working.
One thing I do not follow in the dynamic action demo is the article_id= .... . For eg the delete condition id:{data:article_id} in the delete_article function. Is article_id an url parameter created in the view article_delete_confirm ?
Two related Joomla tables => users (joomla core) and misc_user_addfields.
users (pk) = id
misc_user_addfields (pk) = id
misc_user_addfields (fk) = userid
Want to delete a record, ie all fields (39) where users.id = misc_user_addfields.userid.
So in a delete_member function have created and linked 2 models (member and member_misc_fields). This returns all 39 fields if I tick include all the provider fields in the list view. But this creates a directory list of 39 columns. I want a list with just a few columns from each table , just enough for the admin person to identify the correct record for deletion.
I have been experimenting with different delete conditions in the delete_member function but have repeatedly been deleting all users from the users table. But not from the related misc_user_table. Then have to reinstall the Super User with phpMyAdmin. Took an hour to figure how to do this, getting quite good at it now. Think caused by using continuous in the delete conditions. Ticking protect against full deletion did not protect against full deletion.
The deletion conditions
id={data:id}use
userid={data:id}use
results in 1052 Column 'id' in where clause is ambiguous
What are you using for your where condition in the delete action
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine! Donations: paypal.me/healyhatman Professional Work: kamron@skyspider.com.au Custom CF / CC Plugins and Extensions: skyspider.com.au/store
The delete function works now. The correct record is deleted from both fields. And in the Where condition have said that users 62 and 1258 are not to be deleted. This works.
But cant figure why the success and error messgs are not firing. I have followed the dynamic actions demo closely and cannot see why it does not work.
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store