This code works in an article..
{fabrik view=form id=4 usekey=ref rowid=XAMC}
.. to fill in the form with details for user with username XAMC.
I'm trying to modify the article plug-in code to pick up the user name as I do with list pre-filters using {$my->username}. Simply substituting this for the literal user name doesn't work i.e. {fabrik view=form id=4 usekey=ref rowid={$my->username}}.
How can I modify the article plugin code to load the data for the logged in user ? Thanks.
PS I tried with a new view just retrieving the data for the logged in user - this works fine. I thought that if I created a page with the form relating to this single record view then it might be filled with the user data. However it is displayed with all fields blank.
{fabrik view=form id=4 usekey=ref rowid=XAMC}
.. to fill in the form with details for user with username XAMC.
I'm trying to modify the article plug-in code to pick up the user name as I do with list pre-filters using {$my->username}. Simply substituting this for the literal user name doesn't work i.e. {fabrik view=form id=4 usekey=ref rowid={$my->username}}.
How can I modify the article plugin code to load the data for the logged in user ? Thanks.
PS I tried with a new view just retrieving the data for the logged in user - this works fine. I thought that if I created a page with the form relating to this single record view then it might be filled with the user data. However it is displayed with all fields blank.