Webform module integration to my page didn’t work well with images while displaying through views mysql. It displays numbers instead of images (actually this is the place where I am facing issues). When i checked the mysql tables of webform, the image was getting stored as number rather than file reference or as image which was getting displayed in views grid. However image was getting stored in OS filesystem. Am i making mistakes ? pl direct me as i am so young with drupal. Else suggest me if this feature will not available or i can get it corrected.

Comments

quicksketch’s picture

Hi there, thanks for asking this question.

Webform stores the File IDs in the database, so if you try to pull this data out with Views or MySQL, you will indeed only get an integer number. The File IDs point at rows in the "file_managed" database table, which contains the actual file path.

Webform 4.x includes special Views integration that should make pulling out files and displaying them as links possible. They should be displayed in the same way as if you were looking at a submission directly (the same as node/x/submission/y).

Are you sure you're using Webform 4.x? The built-in integration with Views seems like it should work for you.

If you need to change the way file display, you should be able to override the theme_webform_display_file() function in your theme's template.php file.

quicksketch’s picture

Category: Feature request » Support request
Status: Needs review » Active
quicksketch’s picture

Status: Active » Closed (fixed)

Closing after lack of activity.