Is it possible to theme the results page to an extent (e.g. with a tpl-file)?

Another (little) thing: we're using the file field of another content type, and renamed its human-readable name for the "download" content type. But on the download page the original field name is being used. The field name on the download page is always "attachment", regardless of the actual given field name.

Comments

knalstaaf created an issue. See original summary.

knalstaaf’s picture

Issue summary: View changes
berliner’s picture

Can you open a new issue for the filename problem?

knalstaaf’s picture

  • berliner committed b2f154c on 7.x-1.x
    Issue #2792307: Add template file for downloads page
    
berliner’s picture

Good suggestion. I have added a template called webform-protected-downloads-download-page.tpl.php that can be overridden in your theme. The current implementation will result in the same markup as before. There are no template suggestions possible yet, so the same template file will be used across all WPD enabled webforms.

Please let me know if that is working for you. The changes are available in the latest development version.

dtamajon’s picture

Hi! I tried to override the tpl.php, but it is not working for me. In fact, I think the problem is the variables are not being created for my custom tpl, as I get a blank content copying the webform-protected-downloads-download-page.tpl.php file to my theme.

Or maybe I'm missing something?