Page 1 of 1

[solved] Formbrowser help

Posted: Wed Dec 23, 2009 10:42 am
by balle
I am making an application where I use some fields users have submitted with formbuilder, I don't want to use the standard template so I am trying to make one myself.

I can't find the parameter I have to use if I want to call a specific field from all the entry's who have been approved by me.

So I am searching for something like this:
{foreach from=$list item=entry}
         {$entry->field[name]}
{/foreach}

Hope its clear what I want.

Re: Formbrowser help

Posted: Wed Dec 23, 2009 2:04 pm
by Peciura
To inspect record in form browser paste

Code: Select all

<pre>
{$list|var_dump}
</pre>
at the top of  "List Template" of appropriate form browser.

Re: Formbrowser help

Posted: Wed Dec 23, 2009 7:10 pm
by balle
Thanks, that brings me a step closer, but I can't find how to call these parameters now?

Re: Formbrowser help

Posted: Wed Dec 23, 2009 7:59 pm
by Peciura
I can't find how to call these parameters
Here is smarty variable syntax from http://www.smarty.net/manual/en/languag ... iables.php
{$foo}        bar}   bar()} bar($baz,2,$bar)} <-- passing parameters
{"foo"}       <-- static values are allowed

{* display the server variable "SERVER_NAME" ($_SERVER['SERVER_NAME'])*}
{$smarty.server.SERVER_NAME}

Re: Formbrowser help

Posted: Thu Dec 24, 2009 10:56 am
by balle
OK it's working now, thanks

I did it with this code:

Code: Select all

{foreach from=$list item=entry}	
{$entry->fields[3]}
{/foreach}
3 is the sorting number you gave on the first tab to a field

Re: Formbrowser help

Posted: Thu Dec 24, 2009 7:14 pm
by Dr.CSS