Hi there,
Just checking back on this issue?
Thanks!
-Scott
Hi Nayeem,
Wanted to elevate this again and give in an indication of how troubling it is.
Doesn’t seem like the img tool in here supports embedded images:
I have to keep clicking through one template at a time to find the latest one added, or another if I want to see a different look and feel.
Kind regards,
-Scott
Hi Nayeem,
Please press them again as this is some pretty critical functions of the software and it seems like it’s not too complicated of a fix (sort functions on the queried data). I would really hope this is something they can fix as a core feature of the software quickly.
Kind regards,
-Scott
Hi Nayeem,
I need a timeline as to when this will be fixed, can you tell me when that will be available?
Thanks,
-Scott
Hello, any update on this fix?
Kind regards,
-Scott
Hello, it has been almost a month and this is a significant issue for us, is there any timeline for when we can expect a fix?
Kind regards,
-Scott
Hello, just checking on the status of this issue and curious if there is an estimated timeframe it will be fixed? We currently have a number of documents that need to be sorted alphabetically and have no means of doing that. Thanks!
Hello, just checking on the status of this issue and curious if there is an estimated timeframe it will be fixed? I have users that will begin using this soon and at the moment they have no visibility of the available templates. They currently have to select each one to see if it’s the one they want. Thanks!
Hello, just checking on the status of this issue and curious if there is an estimated timeframe it will be fixed? Thanks!
One thing you might want to look at is the twig template engine: https://twig.symfony.com/
You could really enhance your wp-admin template tool by giving people with non programming skills more power to control content in the templates with if/then and other similar logic.
Be well!
-Scott
Hi Nayeem,
You answered my question… I was curious if there was any relationship between the admin template tools, and a PHP template script whereby one could have more control over the design of the template in wp-admin (say for non-developers managing the site), while any coding would be done in the PHP side.
Be well!
-Scott
Hi Nayeem,
I got it working, thanks. Just curious, is there a way to maintain a relationship between the wp-admin Downloads Template (where you can build HTML, CSS, etc.) and the custom PHP templates or are those two completely independent. I’m just curious if there is a way to give other team members some HTML editing access while the PHP is done on the back end.
Thanks!
-Scott
Hi Nayeem,
Appreciate the help stepping through this process. I’ve looked through the directory at the PHP templates in /wp-content/plugins/download-manager/src/Package/views/link-templates but I don’t see any files there that correspond to the custom template I created in wp-admin with the Create Link Template button.
Can you give some more detail on how I link custom PHP to the custom template I created in admin?
Thanks!
-Scott
Thanks for this, I assume I would need to go that route to use this piece of code you suggested?
$expired_date = get_post_meta( $ID, ‘__wpdm_expire_date’, true );
Thanks!
-Scott
Hi Nayeem,
Thanks for this info, just to be clear on my end, I’m using the built in Template tool in the wp-admin section which I believe is just HTML, CSS, and JS, where would I put this code using the tools outlined?
Thanks!
-Scott
Hi Nayeem,
I put together a sample page of the issue I am seeing with some details as to how the page is constructed. Yes, this is using the PDF Viewer add-on, a simple button based link template with a modal display for the doc preview, and the elementor packages by category widget.
https://dev.neonet.org/support-samples/
It seems like the Packages by Category widget does not evaluate the expiration date on a package?
I can send login details if you still need them after looking at that.
Thanks!
-Scott
Thanks for looking into it.
When issues like this are reported (and the other one I did about the template list), do you post an update back to here when it’s fixed or do I just keep an eye out in release notes? Do issues like that have a long road map to turn around or are they often pretty quick to fix?
Thanks!
-Scott
Thanks, looking forward to the fix!
Thanks for the info, I got this working as needed.
Hi Nayeem,
Inside the template editor…
https://liveneonet-my.sharepoint.com/:i:/g/personal/skarlo_neonet_org/Ef8c-c8q_cFJmZNYoQ8sW2IBvdvsAGe5sOZsLf6eZ2mtoA?e=sgdf5J – in case image doesn’t diasplay.
With the template variables, such as [file_list] – is there a way to reference a specific file within the package?
And, if I utilize javascript in the template editor screen, can I do an If/Then statement?
If [file_list] contains a youtube video URL, display this button.
Thanks!
-Scott
Hi Nayeem,
Thanks for this, and just to confirm my thinking. Currently there isn’t an option to apply if/then logic within the template manager/editor itself, correct? I will need to copy files from src into my child theme and edit those and then address any changes as new updates role out with the WPDM plugin?
Also, I’m using ACF so that’s good to know I can add the field and access it with the template tool.
Again, I basically want to combine a video and corresponding PDF document that compliments that video. I don’t think there is an option natively within WPDM to do that (correct me if I’m wrong), so I’m hoping to make something work with the templates. However, at times there might not be a video, only the PDF, thus my interest in some if/then capabilities in the template layout to only display the video button if the link is defined (in an ACF field) on the package.
Another option, separate from the ACF field, it seems I can add a youtube URL to the package. In the same package I’d have PDf file and the Youtube link. Is there a function in the link templates tool that will let me select files within the package? I see I can pull the [file_list], I’m not seeing if there is an option that lets me pull file_1, file_2, etc.
Be well!
-Scott
Hi Nayeem,
Correct, I am using the PDF viewer, but I copied and then customized the template to fit our needs. It’s working well. For a new instance of displaying PDF files, I need to make a new template (which is the code above). I’m just trying to understand what if / then coding I can apply in the template model? Can I use PHP or JS in the template builder?
Secondly, can I add a custom field to Downloads and have the field available in the template tools?
Thanks!
-Scott