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

Default file upload URLs and dirs aren't passed as Smarty vars for use in templates #6

Open
benkeen opened this issue Jun 4, 2014 · 0 comments

Comments

@benkeen
Copy link
Member

benkeen commented Jun 4, 2014

You SHOULD be able to access the file upload URL and folder for each field through the following variables:

{foreach from=$submissions item=submission name=row}
{foreach from=$display_fields item=field name=col_row}

{$field.field_info.settings.file_upload_url}
{$field.field_info.settings.file_upload_dir}

{/foreach}
{/foreach}

But right now they only get passed if the values have been expressly overridden for that field. Those values should ALWAYS be passed.

As a temporary workaround, people can manually override the default "File Upload folder" settings for each file field. Once this is fixed, they can safely delete that setting.

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