Won't implement Idea: avoid clearing HTML tags in file name

More
2 years 5 months ago - 2 years 5 months ago #2330 by Dmitrijs Rekuns
Idea: avoid clearing HTML tags in file name was created by Dmitrijs Rekuns
Hi Ruud,
I'm just thinking about little improvements, and one of our products will come in 2 versions (for J3 and J4) + core modules and plugins. To help user find the right one, I thought it could be good to add some SPAN tag with class to the name to make this result:

[img


However, all tags trims when you save the item. (it is a core logic as with com_content). I do not know how OchSubs is designed, so just thought to share this idea with you:
why if not truncate html tags from file names in OchSubs?

What do you think?

Best regards,
Eugene
 
Last edit: 2 years 5 months ago by Dmitrijs Rekuns.
The topic has been locked.
More
2 years 5 months ago #2333 by Ruud van Lent
Replied by Ruud van Lent on topic Idea: avoid clearing HTML tags in file name
Hi, although I like how it looks, I see issue with the implementation.
1. title is stripped so it is plain text
2. title is not only used for displaying the file title in the download list, but in more places (like update xml, etc.)

For products I have added the possibility to add custom class names to the product: I use these for displaying, free / hot / new icons on the product

Would adding the same functionality to files (so add a custom class) give you the styling possibility? So you can set on a file the class 'joomla3' > this gives you the possibility to style the title for that file?
The following user(s) said Thank You: Dmitrijs Rekuns
The topic has been locked.
More
2 years 5 months ago - 2 years 5 months ago #2336 by Dmitrijs Rekuns
Replied by Dmitrijs Rekuns on topic Idea: avoid clearing HTML tags in file name
Ok, got the idea. Then it's not necessary to do. At your wish.

Regards,
Eugene
Last edit: 2 years 5 months ago by Dmitrijs Rekuns.
The topic has been locked.