Item publish and unpublish configuration question

More
11 years 9 months ago #46917 by dealio
Hi,

this if for "FLEXIcontent v2.2.0 r1901 BETA for J2.5/J3.x"

I changed in
/plugins/flexicontent_fields/image/image.php

FROM:
Code:
// ADD some extra (display) properties that point to all sizes, currently SINGLE IMAGE only if ($i==0) { $field->{"display_backend_src"} = JURI::root(true).'/'.$srcb; ... } $field->thumbs_src['backend'][] = JURI::root(true).'/'.$srcb; ...

TO:
Code:
// ADD some extra (display) properties that point to all sizes, currently SINGLE IMAGE only if ($i==0) { $field->{"display_backend_src"} = JURI::root(false).''.$srcb; ... } $field->thumbs_src['backend'][] = JURI::root(false).''.$srcb; ...


Not sure why, but it go rid of the duplicate root directory.
FROM:
"src=/demo//demo/images/thumbs..."

TO:
"src=/demo/images/thumbs..."

version 2.1.3 r1857

Joomla 3.2.3

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

More
11 years 9 months ago #46918 by ggppdk
Hello

-- this is useful feedback,

-- since it shows what you have done wrong, and will help us answer similar questions in the future, maybe we should also add warning inside the image field too:



Please do these:
1. restore original code
2. set the thumbnail path to be relative to your Joomla folder and not absolute,

- relative means do not include the subfolder:
instead of bad: /demo/dir1/dir2
enter: dir1/dir2




See the popup description of the thumbnail folder, below:

Folder where the thumbnails will be stored, relative to your joomla site, (No slash at the begining, no slash at the end!)

If Folder mode is enabled, then subdirectories will be created for every content item, and furthermore the image original files will be placed here instead of the Global FLEXIcontent document (secure) folder


thanks for feedback

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 review. Thanks!

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

More
11 years 9 months ago #47076 by dealio
Hi i found a work around I changed

In plugins/flexicontent_fields/image/image.php


I changed JURI::root(true) to false




// ADD some extra (display) properties that point to all sizes, currently SINGLE IMAGE only
if ($i==0) {
$field->{"display_backend_src"} = JURI::root(false).''.$srcb;
$field->{"display_small_src"} = JURI::root(false).''.$srcs;
$field->{"display_medium_src"} = JURI::root(false).''.$srcm;
$field->{"display_large_src"} = JURI::root(false).''.$srcl;
$field->{"display_original_src"} = JURI::root(false).''.$srco;
}
$field->thumbs_src[] = JURI::root(false).''.$srcb;
$field->thumbs_src[] = JURI::root(false).''.$srcs;
$field->thumbs_src[] = JURI::root(false).''.$srcm;
$field->thumbs_src[] = JURI::root(false).''.$srcl;
$field->thumbs_src[] = JURI::root(false).''.$srco;

$field->thumbs_path[] = JPATH_SITE.DS.$srcb;
$field->thumbs_path[] = JPATH_SITE.DS.$srcs;
$field->thumbs_path[] = JPATH_SITE.DS.$srcm;
$field->thumbs_path[] = JPATH_SITE.DS.$srcl;
$field->thumbs_path[] = JPATH_SITE.DS.$srco;



This seems to remove the duplicate root.

version 2.1.3 r1857

Joomla 3.2.3

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

More
11 years 9 months ago #47077 by ggppdk
Hello

you have not answered me i said that you should use original r1901 image.php code

with a relative folder path,

relative to you joomla folder root

have you placed a relative folder path ! ?


-- 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
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
Save