I am trying to change the way k2 uploads images.
I will use k2 as a catalogue, so I will need to update constantly my item images.
I want to use this name: $item->id.'_'.$item->alias.jpg (ex: 19_alias-name.jpg )
The idea is to have de id as unique number and the item alias as the image name for easy upload and maintenance.
The files I tested were:
administrator/components/com_k2/models/item.php
administrator/components/com_k2/views/item/view.html.php
I'm able to change the native name by adding something to the md5 code, but if I remove de md5 it all stops working..
- md5("Image".$row->id).'value' - Works
- $item->id.'_'.$item->alias - Stops working the links and thumbs, but it creates the files wih the right names.
Any ideas how to stop the md5 encrypting?
Tkx in advance
I will use k2 as a catalogue, so I will need to update constantly my item images.
I want to use this name: $item->id.'_'.$item->alias.jpg (ex: 19_alias-name.jpg )
The idea is to have de id as unique number and the item alias as the image name for easy upload and maintenance.
The files I tested were:
administrator/components/com_k2/models/item.php
administrator/components/com_k2/views/item/view.html.php
I'm able to change the native name by adding something to the md5 code, but if I remove de md5 it all stops working..
- md5("Image".$row->id).'value' - Works
- $item->id.'_'.$item->alias - Stops working the links and thumbs, but it creates the files wih the right names.
Any ideas how to stop the md5 encrypting?
Tkx in advance