Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
knalstaaf CreditAttribution: knalstaaf commentedComment #3
berliner CreditAttribution: berliner commentedCan you open a new issue for the filename problem?
Comment #4
knalstaaf CreditAttribution: knalstaaf commentedSure!
#2792469: Display field name instead of "attachment"
Comment #6
berliner CreditAttribution: berliner commentedGood 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.
Comment #7
dtamajon CreditAttribution: dtamajon commentedHi! 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?