Basdub
Member
Wow really didn't know how to put that in a short sentence.
I have a form that load with the key setting to -1 and key name to my "user_id" field to load the record of the current user.
I added, in my template, a button to show a detail view of the record. The only way to do this, that I've found so far, was to add rowid='the current logged in user corresponding rowid' in the request like this:
myweb/index.php?option=com_fabrik&tmpl=fabrik_details_general&view=details&formid=1&layout=sdc_details_general&rowid=3
the tmpl is a component template.
Once the page is loaded, I can simply change the rowid value in the address bar of my browser and view the record of any other user.
Is there a way I could load the data somewhere using rowid for currently logged in user. In other word, once the default.php file of my details view template is reached, the form and the data is already loaded. Could I prevent that and/or replace it with the appropriate rowid that is not changeable on the client side?
I have a form that load with the key setting to -1 and key name to my "user_id" field to load the record of the current user.
I added, in my template, a button to show a detail view of the record. The only way to do this, that I've found so far, was to add rowid='the current logged in user corresponding rowid' in the request like this:
myweb/index.php?option=com_fabrik&tmpl=fabrik_details_general&view=details&formid=1&layout=sdc_details_general&rowid=3
the tmpl is a component template.
Once the page is loaded, I can simply change the rowid value in the address bar of my browser and view the record of any other user.
Is there a way I could load the data somewhere using rowid for currently logged in user. In other word, once the default.php file of my details view template is reached, the form and the data is already loaded. Could I prevent that and/or replace it with the appropriate rowid that is not changeable on the client side?