- Posts: 33
- Thank you received: 0
Icons for attachments
- Sharon Van Muysen
- Topic Author
- Offline
- Junior Member
Less
More
1 year 8 months ago #157620
by Sharon Van Muysen
Icons for attachments was created by Sharon Van Muysen
Hi,
Is it possible to change the icons for the attachments? I ask because I'm seeing the same icon for excel and word document attachments, and thought it may be useful to use my own custom fonts so we know looking at the icon what type of attachment is on the ticket.
At the moment, I think I could replace the icons in the "/media/com_helpdeskpro/assets/images/icons" folder and then use css to link the images by file type. However, before I go down that route, I'd like to double check that there isn't an easier way to change the icons.
Thanks for your time,
Sharon
Is it possible to change the icons for the attachments? I ask because I'm seeing the same icon for excel and word document attachments, and thought it may be useful to use my own custom fonts so we know looking at the icon what type of attachment is on the ticket.
At the moment, I think I could replace the icons in the "/media/com_helpdeskpro/assets/images/icons" folder and then use css to link the images by file type. However, before I go down that route, I'd like to double check that there isn't an easier way to change the icons.
Thanks for your time,
Sharon
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 8 months ago #157625
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Icons for attachments
Hi Sharon
That's the only way. You need to change the icons directly from the folder you mentioned
Unfortunately, it will be lost each time you update Helpdesk Pro. I will see if I can come up with a solution to allow overriding the icons in next release
Tuan
That's the only way. You need to change the icons directly from the folder you mentioned
Unfortunately, it will be lost each time you update Helpdesk Pro. I will see if I can come up with a solution to allow overriding the icons in next release
Tuan
Please Log in or Create an account to join the conversation.
- Sharon Van Muysen
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 0
1 year 8 months ago #157634
by Sharon Van Muysen
Replied by Sharon Van Muysen on topic Icons for attachments
Hi,
Thanks for the quick response. I think we will leave the icons alone for now since I don't want my efforts wiped away with each update of this component.
Best Regards,
Sharon
Thanks for the quick response. I think we will leave the icons alone for now since I don't want my efforts wiped away with each update of this component.
Best Regards,
Sharon
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 8 months ago #157635
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Icons for attachments
OK. Thanks Sharon
Please Log in or Create an account to join the conversation.
- Sharon Van Muysen
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 0
1 year 8 months ago #157750
by Sharon Van Muysen
Replied by Sharon Van Muysen on topic Icons for attachments
Hi,
I replaced the default helpdesk pro icons with my icons and it worked for the file types, txt, pdf, png, and jpg.
However, excel and word documents are using the "default" icon instead of the excel or document icons. I'm not familiar enough with php to know what needs to be edited in the "ticket_attachments.php" file to change that, assuming that is the correct php file to manage the icons.
Here is a screenshot example of what I'm seeing with the file types and icons chosen.
Thanks for your time,
Sharon
I replaced the default helpdesk pro icons with my icons and it worked for the file types, txt, pdf, png, and jpg.
However, excel and word documents are using the "default" icon instead of the excel or document icons. I'm not familiar enough with php to know what needs to be edited in the "ticket_attachments.php" file to change that, assuming that is the correct php file to manage the icons.
Here is a screenshot example of what I'm seeing with the file types and icons chosen.
Thanks for your time,
Sharon
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 7 months ago #157761
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Icons for attachments
Hi Sharon
Could you please check and make sure you have file xlsx.png in media/com_helpdeskpro/assets/images/icons folder? It is needed for showing icons for xlsx files.
Same for word documents. If the file extension is docx, then you need to have icon media/com_helpdeskpro/assets/images/icons/docx.png for it to work
Regards,
Tuan
Could you please check and make sure you have file xlsx.png in media/com_helpdeskpro/assets/images/icons folder? It is needed for showing icons for xlsx files.
Same for word documents. If the file extension is docx, then you need to have icon media/com_helpdeskpro/assets/images/icons/docx.png for it to work
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Sharon Van Muysen
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 0
1 year 7 months ago #157763
by Sharon Van Muysen
Replied by Sharon Van Muysen on topic Icons for attachments
That was the solution, I had .doc and .xls but not the docx or xlsx versions of the icons. I added them to the media/com_helpdeskpro/assets/images/icons/ folder and the icons now display.
Thanks,
Sharon
Thanks,
Sharon
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 7 months ago #157768
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Icons for attachments
Great. I will find a way to make it possible to override the icons so that it won't be lost when you update to future releases of the extension
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.