Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smarty template custom export type #30

Open
Merk46 opened this issue Nov 30, 2020 · 0 comments
Open

Smarty template custom export type #30

Merk46 opened this issue Nov 30, 2020 · 0 comments

Comments

@Merk46
Copy link

Merk46 commented Nov 30, 2020

Hi guys, I've a problem with Smarty Template. What I'm doing right now is to export groups of data from an online tool called Formtools (www.formtools.org) via Smarty template. I've got a script who export data by colums, but I need to group some of that fields into another one completely different. How can I select all the columns I need and put them into another field?

This is the script:

[code]
{strip}

<export_datetime>{$datetime}</export_datetime>
<export_unixtime>{$U}</export_unixtime>
<form_info>
<form_id>{$form_id}</form_id>
<form_name></form_name>
<form_url>{$form_url}</form_url>
</form_info>
<view_info>
<view_id>$view_id</view_id>
<view_name>Dati preliminari</view_name>
</view_info>

{foreach from=$submissions item=submission name=row}

{foreach from=$display_fields item=field_info name=col_row}
{assign var=col_name value=$field_info.col_name}
{assign var=value value=$submission.$col_name}
<{$col_name}></{$col_name}>
</{$message}>
{/foreach}

{/foreach}


{/strip}[/code]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant