Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Feature Request: Download

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

In my never ending attempt to use ZT2 for displaying as much content as possible, I think another tool in this "swiss army knife" should be a way to show a download button when using the "images" content source.
  • ODiN Mayland's Avatar
  • ODiN Mayland
  • LIfetime Developer - Big Bamboo
  • 818 posts
  • 10 Thanks
  • Karma: 8
The administrator has disabled public write access.
As in to download the image?

cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Yes. :-)
  • ODiN Mayland's Avatar
  • ODiN Mayland
  • LIfetime Developer - Big Bamboo
  • 818 posts
  • 10 Thanks
  • Karma: 8
The administrator has disabled public write access.
Sure thing Jeff.
Will add it to the feature list. I implemented this in Presto so wont be too hard :)
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
So this would be a button specifically to download images. At the moment you could add a download button using the read more and manual link option.
Set the custom text and the link to the image or the pdf.

But I will add a specific image download button.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
I don't know if it would be an item or a option in the image settings panel...

Yes that is an option to use readmore but I am letting the client dump images in a folder and having ZT2 display them. Currently they have 100 images so I didn't want to manually create a download button.
  • ODiN Mayland's Avatar
  • ODiN Mayland
  • LIfetime Developer - Big Bamboo
  • 818 posts
  • 10 Thanks
  • Karma: 8
The administrator has disabled public write access.
Layout element would give you more flexibility. But an option for the image item would make it more discrete.
I think just having it as an layout element makes the most sense.

I wont get to this until next week but creating it isn't going to be too difficult.

Here are the steps:

1. go to mod_zentools2/tmpl/elements/
2. create image_download.php
.....

Actually I was just part way through describing how to do it but thought I would just do it :)

So two steps:

1. Go to settings/images.xml and add this:
<item>image_download</item>

2. Then add the attached file to the tmpl/elements folder

You can see the markup I used for html5 downloading an image and add or change as you need.

Let us know how you go.
Anthony
Attachments:
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Is this right?

1. Go to settings/images.xml and add this:
<item>image_download</item>

Odd thing is when i download the image_down....php.zip file I can't extract it.
  • ODiN Mayland's Avatar
  • ODiN Mayland
  • LIfetime Developer - Big Bamboo
  • 818 posts
  • 10 Thanks
  • Karma: 8
The administrator has disabled public write access.
Yeah same here. Re attaching.

settings/sources/image.xml
Attachments:
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Works great!!


ScreenShot2016-05-25at8.45.42PM.jpg
  • ODiN Mayland's Avatar
  • ODiN Mayland
  • LIfetime Developer - Big Bamboo
  • 818 posts
  • 10 Thanks
  • Karma: 8
The administrator has disabled public write access.
Great :) Will be added in the next version with a few options for download icon, text used etc.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Food for thought, maybe give the option to have the download button in the lightbox?

I'm good how it is but I haven't had the client review it yet. Maybe its something that others would want.

I can really see a lot of possibilities for ZT. Like adding items for the Link A,B,C. I use those for PDF downloads.

Anyways, keep up the good work!
  • ODiN Mayland's Avatar
  • ODiN Mayland
  • LIfetime Developer - Big Bamboo
  • 818 posts
  • 10 Thanks
  • Karma: 8
The administrator has disabled public write access.
Thanks Jeff - Yep will investigate adding that as an option for the next version too.
Cheers
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers