News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

jDownloads tree creating an override to change icons

Started by Drax658, 15.07.2024 13:52:46

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Drax658

Hello everyone, I decided to start this topic to learn if it's possible to create an override so I can easly change icons that appears next to categories in jDownloads tree module. When I create an override it only creates a default.php file that contains methods to draw a tree using jdownloadstree class. Unfortunetly for me the icons are coded into the class definition tha resides in a seperate file in the jdtree folder. I could technically change it there modifing the file and adding my own icons but I think that override is more elegant and I'm affraid that with futre updates my changes will be discarded.

I love jDownloads extetnsion and the jDownloads tree module it's a blessing for me as it is exactly what I needed but those icons doesn't fit style of my page.
  •  

ColinM

Hi
 The images are stored in /modules/mod-_jdownloads_tree/jdtree/images
 
 There are only 4 images base.gif, folder.gif.minus.gif and plus.gig
 Each is 20 by 20 px
 So you need gif images of the same size. and the same name
 Most gif files are 'video' but these are simple gif files
 I have renamed the original base.gif and added a new one with a bell to ilustrated
I do not believe these are changed on an update but jst in case  I would save them elsewhere.

Colin
Colin M
  •  

ColinM

Hi
I have looked at the Update sequence and it does 'reload' the Tree Module code and Images.
So it will be necessary for you to reinstate the specific images you change.  Using FTP would probably be a suitable way.

To do this via an override would be more challenging in creating the override, particularly as the tree module is not setup for override support.
Colin
Colin M
  •  

Drax658

Thank you for your reply Colin. So it is as I thought and I will have to replace the files after each update. It may not be a perfect solution, but the most important thing is that it is possible and is not very time-consuming.
  •