Jquery and Image gallery

More
13 years 2 months ago #31256 by ggppdk
Replied by ggppdk on topic Jquery and Image gallery
I meant to add new parameter and enhance plugin code,

maybe you could do it via Prefix / suffix text, if you also used JS and/or CSS class


-- 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 2 months ago #31294 by rottenberg
Replied by rottenberg on topic Jquery and Image gallery
thank you very much.
I did the folowing things :

I used the Opening text for Field/Closing text for field

In opening I put the tag <produit>
In closing I put the tag </produit>

Then I used Nonumber/Rereplacer component : I created a record to replace in all occurences <produit>...</produit> the value class="fc_field_image" /> by class="fc_field_image" style="display:none;"/> except for the first image.

I have had some problems parametring field/gallery field :
1 - the prefix/suffix text of every value fields don't work : each time I recorded some text inside both fields, I got an empty field after registration

2 - the Opening/Closing text for field don't accept the values "{" and "}" : for instance {produit}/{/produit] => after recording of the page I got empty fields.

3 - Sometimes, not always I lost the content of some fields : image source field, url Y/N after registration.

I want to do the same manipulation in minigallery field . It's impossible as there is no prefix/suffix field for this type of field. Can we get prefix/suffix field for minigallery in a future version ?

best regards
Michel

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

More
13 years 2 months ago #31295 by ggppdk
Replied by ggppdk on topic Jquery and Image gallery
i guess yes,

more things are planned for minigallery field, like e.g. folder mode like in image/gallery field


About showing first value of FC field (for image/gallery field):

e.g this could work,

-- A. parameters:

Prefix text of every value: <li>
Suffix text of every value: </li>

Openning text for Field: <ul class="ft_img_list">
Closing text for Field : </ul>


-- B. CSS rules:
Code:
uk.ft_img_list li:first-child { display:inline-block !important; } uk.ft_img_list li { display:none !important; }


-- 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 2 months ago #31298 by rottenberg
Replied by rottenberg on topic Jquery and Image gallery
thank you very much
I try it

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

More
13 years 2 months ago #31300 by ggppdk
Replied by ggppdk on topic Jquery and Image gallery
Hello i corrected it above, since both rules were (by mistake) same ...


-- 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 2 months ago #31383 by rottenberg
Replied by rottenberg on topic Jquery and Image gallery
Hello

I have just tested now, sorry for my late answer.

It doesn't work :
the prefix/suffix texts of every value on image/gallery are not used.
the Opening/closing texts are working.

I'm now on last version (1573).

I have already seen this type of problem on other fields type.

best regards
Michel

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

More
13 years 2 months ago #31384 by ggppdk
Replied by ggppdk on topic Jquery and Image gallery

rottenberg wrote: Hello
the prefix/suffix texts of every value on image/gallery are not used.
the Opening/closing texts are working.

mmm, yes image field is currently not using prefix/suffix texts of every value , despite existing in configuration ... these did not exist in older versions, we added them to configuration but did not use them ... will commit a fix

To test this now, in image.php file, after about lines 1116 - 1117:
Code:
if ( ($showtitle && $title ) || ($showdesc && $desc) ) $field->{$prop}[$i] .= '</div>';
add
Code:
$field->{$prop}[$i] = $pretext. $field->{$prop}[$i] .$posttext;

be careful to place exactly after the above 2 lines and NOT after line with: }


-- 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 2 months ago #31385 by rottenberg
Replied by rottenberg on topic Jquery and Image gallery
thank you
it's working now

but there a mistake in the css code
you wrote :
Code:
uk.ft_img_list li:first-child { display:inline-block !important; } uk.ft_img_list li { display:none !important;

the good code is not uk.ft.... but ul.fr...

the code css code is
Code:
ul.ft_img_list li:first-child { display:inline-block !important; } ul.ft_img_list li { display:none !important;

best regards
Michel

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

More
13 years 2 months ago #31386 by rottenberg
Replied by rottenberg on topic Jquery and Image gallery

mmm, yes image field is currently not using prefix/suffix texts of every value , despite existing in configuration ... these did not exist in older versions, we added them to configuration but did not use them ... will commit a fix


I have add another problem in prefix/suffix texts of every value in another site for a field text.

Do you advice for the moment not using this parameter ?

best regards
Michel

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

More
13 years 2 months ago #31387 by ggppdk
Replied by ggppdk on topic Jquery and Image gallery
You mean not using these parameters for text field?

no you can use it for text field, just the resulting HTML must be something valid, don't put in there something that the ending result is not valid HTML


-- 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