more about image paths

More
10 years 1 month ago #50231 by webiedesign
I have read the FAQ's and anything related to phpthumb.
The file import works fine if the image fields contain simply the name of the image file, however, because of the amount of images (and for easier management) we would like the images to be within sub folders.
example:

works when images are in images/stories and field database entry is "imagename.gif"

we would like the images to be in images/stories/albums
and the field database entry be "albums/imagename.gif"

so far my efforts have been unsuccessful, can you suggest anything that could help this to work ?

Mary
webie design

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #50236 by ggppdk
Replied by ggppdk on topic more about image paths
Hello

ok but you suggest that we spending time to modify our import task now,

should we not release v2.2.0 final ?

code inside the image 's field onBeforeSaveField is:
Code:
else if ($is_importcsv && $import_media_folder ) { $filename = $v['originalname']; if ($image_source) { $srcfilepath = JPath::clean( $srcpath_original . $filename ); $destfilepath = JPath::clean( $destpath_original . $filename ); if ( JFile::exists($srcfilepath) ) { $result = JFile::copy( $srcfilepath, $destfilepath ); if ( $result && JPath::canChmod($destfilepath) ) chmod($destfilepath, 0644); } } else {


$v


is supposed to only have filename but instead it has folder path too
Code:
$filename = $v['originalname'];
should become:
Code:
$filename = $v['originalname']); $v['originalname']) = basename($v['originalname']);
or something other relevant modifications too and then TESTING that it does not break filenames without path


-- you may forks us on GitHub, make modification and then make pull request

possibly it is not too much work, but we can not work on new features now


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #50237 by webiedesign
Replied by webiedesign on topic more about image paths
I am not asking you to stop work on anything, just for suggestions if you have them.
My dad always told me that it never hurts to ask.
Thanks for your quick response.

Mary
webie design

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #50238 by ggppdk
Replied by ggppdk on topic more about image paths
Hello

i understand that individual features are important or critical to individuals or individual web-sites,

i have given you some indication on the place to look, but i think it involves more work than what i suggested

you may open an issue in GitHub

and we will accept it as enhancement for v2.3.0 or v2.4.0:

github.com/FLEXIcontent/flexicontent-cck/issues

regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.007 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline