Support Forums - Classified Ads Script Osclass
General osclass questions => Feature request => Topic started by: katalin2k on February 08, 2025, 08:14:58 PM
-
I would suggest renaming images to product title slug instead of a random string of numbers, it will improve SEO a lot.
In the meanwhile can you tell me where to find the functions that are responsible for image name generation so I can try it myself? I can't seem to find anything related to image renaming...
-
Anyone?
-
No plans for that, not simple change.
A lot of core functions, plugins and themes would have to be changed.
-
No plans for that, not simple change.
A lot of core functions, plugins and themes would have to be changed.
If you tell me what files would need modifications I would try to do it myself.
-
:) ... its called development man.
-
:) ... its called development man.
Of course it is but it seems to me you don’t want anyone to do this.
-
You have code, you can go for it, but I see this is not work that could be discussed on forums in way "tell me file, line and what code to change..."
-
This is actually a very valid point that katalin2k raises as proper/linked filename naming adds context even when image indexing is disabled at the robots.txt file level. Search engines love context and the more context that's provided, the better the ranking.
You should first look at ItemActions.php, specifically uploadItemResources function to get an understanding of how uploaded resources get named, analyze dependencies and identify were changes are needed not just in core, but also in plugins that handle listing resources then code it in.