- Posts: 448
- Thank you received: 2
IMAGE PATH
- sti
- Topic Author
- Offline
- Platinum Member
i notice the image path are fixed to /images/osproperty
a good suggestion would be give config options for that path that consist of
agent
categories
properties
companies
etc
thanks
Please Log in or Create an account to join the conversation.
- Anatoly
- Offline
- New Member
- Posts: 4
- Thank you received: 0
sti wrote: hi
i notice the image path are fixed to /images/osproperty
a good suggestion would be give config options for that path that consist of
agent
categories
properties
companies
Or, at least, use ItemID number as subfolders. This will make a good structured image catalog and will make it easier to search needed images. Also there are problem with FTP servers - some of them show only 2000 files or folders. I have, for example, 5000 files and 300 properties. This means that I'll not be able to see all my files in case they are all in one directory. But if i'll have them in their own folders then i'll see everytime all of my files and folders untill I'll have more then 2000 folders(properties). I think this is reasonable suggestion.
Thanks,
Anatoly
Please Log in or Create an account to join the conversation.
- Krx
- Offline
- Senior Member
- Posts: 59
- Thank you received: 0
Anatoly wrote: Or, at least, use ItemID number as subfolders. This will make a good structured image catalog and will make it easier to search needed images. Also there are problem with FTP servers - some of them show only 2000 files or folders. I have, for example, 5000 files and 300 properties. This means that I'll not be able to see all my files in case they are all in one directory. But if i'll have them in their own folders then i'll see everytime all of my files and folders untill I'll have more then 2000 folders(properties). I think this is reasonable suggestion.
This in combo with option to set image path would be awesome.
Please Log in or Create an account to join the conversation.
- Nadia
- Offline
- New Member
- Posts: 4
- Thank you received: 0
I am currently using external image uploader to upload my property pictures via external software. I am using my property software that has been integrated with OSP to upload my images. So, here is what I did:
1. I added a field in osrs_property and name if file_id
2. On my SQL INSERT query, instead of naming the images $image.jpg, I named it with a folder name attached to it (ie: FILEID/image.jpg). with "fileid" being the image folder. I also was able to create a SQL INSERT to insert all the thumbnails and medium images into it's own folder by naming it: fileid/thumb/image.jpg and fileid/medium/image.jpg.
This worked out very well because when OSP is trying to pull data for image name, it is not only getting image name. Instead it is getting "fileid/image.jpg". This way, I have a separate image folder for each and every one of my properties. All named accordingly to a fileID of the property.
So, your homework is now to figure out the way to change the SQL INSERT in OSP to store not only the image name but also the folder name attached to the image name then have the image saved into that folder. You can create an external PHP script for it or Dam may have a solution for you. I believe he said we only need to mod the listing and commons file to get this accomplished. But don't quote me on this. It's been almost couple of months since I talked to him about it. So, yeah, I hope this will help.
PS: One more thing, I just noticed this: In the latest version (2.0., they have added a new field called "Ref ID" so, you can probably use that instead of adding a field to SQL manually. So, if you can figure out a way to name the image "ref/image.jpg", you have the problem resolved!
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
Mr Dam any comment on this ?
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
- Posts: 448
- Thank you received: 2
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
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.