Hi everybody
I'm new with Fabrik (and in the forum, this is my first post) but in the past 3 or 4 days I was playing with the component and I think is really amazing.
After making some simple applications that work I need now to make the "presentation" and my problem beggins here.
I haven't found any way to use a element of a form to pass to a template condition, like this, for example:
The pattemplate variable is GROUP12_LOGGED_USER_ID (its name in fabrik is Logged_User_ID).
Well, intention is to get Joomla $my->id and if it's different from zero display a button. I put this into an element of fabrik and works well to present it, but not for conditions.
Am I doing something bad?
Is there any other way to obtain "id" and use it in a condition?
What are the format of "fabrik elements" variables for pattemplate?
Thank you.
I'm new with Fabrik (and in the forum, this is my first post) but in the past 3 or 4 days I was playing with the component and I think is really amazing.
After making some simple applications that work I need now to make the "presentation" and my problem beggins here.
I haven't found any way to use a element of a form to pass to a template condition, like this, for example:
Code:
<mos:tmpl name="showbuttons" type="condition" conditionvar="Group12_Logged_User_ID">
<mos:sub condition="0">
<h3>Please, log-in</h3>
</mos:sub>
<mos:sub condition="default">
<h3>LogID: {GROUP12_LOGGED_USER_ID}</h3>
<input type="submit" name="chekIt" class="button" value="Check" onclick="alert('My ID: ' + {GROUP12_LOGGED_USER_ID});"/>
</mos:sub>
<mos:sub condition="empty">
Vacio???
</mos:sub>
</mos:tmpl>
The pattemplate variable is GROUP12_LOGGED_USER_ID (its name in fabrik is Logged_User_ID).
Well, intention is to get Joomla $my->id and if it's different from zero display a button. I put this into an element of fabrik and works well to present it, but not for conditions.
Am I doing something bad?
Is there any other way to obtain "id" and use it in a condition?
What are the format of "fabrik elements" variables for pattemplate?
Thank you.