Modifying templates to use it dynamically with Contact Form 7
-
Hello everyone,
I’m currently working on a download portal for free files, and my goal is to have a link open a form created with ‘Contact Form 7’ (which is already functioning) that includes the title of the download, so I can identify which download the request is for. Generally, this is not a big deal and works when I open a single download page on my website. However, it doesn’t work when I list the downloads on a page using a shortcode like ‘[sdm_show_dl_from_category category_slug=”2143″ fancy=”1″ pagination=”20″]’, as it only displays the title of the page itself—in my case ‘test’—and not the specific download title, such as ‘2143 – Alle Bilder’.
I’m currently using the shortcode [dynamictext dynamicname “CF7_get_current_var key=’title'”], but this only displays the title of the page, not the title of the download in a download category overview.
To keep things simple, I’m looking for a solution to grab the download ID and the download TITLE. Alternatively, I need to know how I can modify the existing template without losing my changes after a plugin update.
You can see an example on the given page. Click on “Kontaktformular ?ffnen” and you’ll see the title of the page above the checkbox.
Displaying “test”: https://www.merker.sh/test/
Displaying “2143 – Alle Bilder”: https://www.merker.sh/sdm_downloads/2143-alle-bilder/I already tried creating a child theme and copying the template files from your plugin into my child theme to make my changes ‘update-safe’, but it seems this is not currently supported by your plugin.
Best regards,
JulianThe page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.