First I have to say that I am truly amazed by Fabrik. I could build site a with joomla and include a full archive of 'study subjects' without knowing a single word of PHP JS code.. Amazing..
Everything run smooth until I decided to insert a PHP button on a list. The button should open a new window with a custom report (joomla article) that will include data from the selected record by using fabrik placeholders. To do so I used the following strategy...
I inserted the js code in a PHP plug-in in a list 1.
var url1 = 'index.php?option=com_content&view=article&id=1¶m1=';
var myrowid = ??? how to obtain rowid???;
var addr = url1.concat('myrowid');
window.open(addr,'_blank','scrollbars=yes');
the placeholders in the new window are in the form:
{fabrik view=element list=1 rowid=[param1] element=ambvis___ct}
Now, I can open a new window and obtain the first row of the list if I use rowid=1 , but I can't find a way to obtain the rowid of the selected row. I tried different solutions found in the forum, but none worked..
Clearly I should study php and js..
Still, any help??
Everything run smooth until I decided to insert a PHP button on a list. The button should open a new window with a custom report (joomla article) that will include data from the selected record by using fabrik placeholders. To do so I used the following strategy...
I inserted the js code in a PHP plug-in in a list 1.
var url1 = 'index.php?option=com_content&view=article&id=1¶m1=';
var myrowid = ??? how to obtain rowid???;
var addr = url1.concat('myrowid');
window.open(addr,'_blank','scrollbars=yes');
the placeholders in the new window are in the form:
{fabrik view=element list=1 rowid=[param1] element=ambvis___ct}
Now, I can open a new window and obtain the first row of the list if I use rowid=1 , but I can't find a way to obtain the rowid of the selected row. I tried different solutions found in the forum, but none worked..
Clearly I should study php and js..
Still, any help??