File uploader for minigallery field

More
13 years 3 months ago #30176 by ggppdk
in r1515-r1528 has many validation improvements
- Validation speed of the item edit form is greatly improved
- De-focus rechecks most fields (not for file field or minigallery field)
- Limitation for min , max , exact number of values for selectmultiple, checkbox, checkboximage
- Fixed required pafor image field field
- Fixed marking Labels red for all invalid fields (was not working for some fields)

About minigallery and file field, defocus cannot recheck the field, we need to do it differently, if you click to save item then it pass validation RIGHT?


-- 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
13 years 3 months ago #30180 by maximus8891

maximus8891 wrote:
Problem might be with this:

com_flexicontent_v2.x/plugins/image/image.php

str 546

Code:
$field->html .= '<input id="'.$field->name.'" class="'.$required.'" style="display:none;" name="__fcfld_valcnt__['.$field->name.']" value="'.($count_vals ? $count_vals : '').'">';

When a new item is created the value is blank. And the
value is not updated if I just select a file to upload. So there is no possible way for it to pass validation.


and it doesn't pass validation only when I click SAVE. BLUR causes no problem.

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

More
13 years 3 months ago #30182 by ggppdk
I ll check this , but now you mention image.php file

do you speak of image field? or minigallery field?


-- 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
13 years 3 months ago #30183 by maximus8891
image field.

minigallery's working just fine

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

More
13 years 3 months ago #30184 by ggppdk
Ok, you are trying to create a new item and the image field is using "folder mode" ?


-- 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
13 years 3 months ago - 13 years 3 months ago #30185 by maximus8891
I'm using DB mode

for minigallery
Code:
function qffileselementadd(id, file) { document.adminForm.file.value=id; window.parent.qfSelectFile(id, file); document.adminForm.submit(); }

it triggers qfSelectFile, which changes the value.
But for an image field nothing changes the value.
Last edit: 13 years 3 months ago by maximus8891.

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

More
13 years 3 months ago #30186 by ggppdk
Ok, i have found a bug for image field in "folder mode"

the folder containing images use item_id and field_id

but for new items item_id does not exist yet so we need a temporary folder that will rename when user clicks save,

about your image field in DB mode, you mean it does not pass validation when trying to upload a new image file to it, (it passes validation if you select an existing image right)?


-- 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
13 years 3 months ago #30187 by maximus8891

ggppdk wrote: you mean it does not pass validation when trying to upload a new image file to it, (it passes validation if you select an existing image right)?


Yes, exactly.

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

More
13 years 3 months ago #30193 by ggppdk
Yes i see it, will commit fix today so that you can continue testing r1528+

thanks for report


-- 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
13 years 3 months ago #30337 by maximus8891
r1532 - image/gallery and minigallery seem to work fine.

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