mini gallery not responsive

More
11 years 8 months ago #33729 by rottenberg
hello
I'm using the mini gallery field.
Is there a way to get this field responsive ?

I give here the illustration of the gallery on 2 screens a wide one and a small one. On the small one the gallery is cut not resized.
[attachment=1:1l6igze9]<!-- ia1 -->good.jpg<!-- ia1 -->[/attachment:1l6igze9]

[attachment=0:1l6igze9]<!-- ia0 -->bad.jpg<!-- ia0 -->[/attachment:1l6igze9]

thank you

best regards
Michel

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

More
11 years 8 months ago #33734 by igcorreia
FC is not responsive yet. Not the templates and not the fields. We are working on it. The templates have already been migrated to html5 but the fields need to be upgrated.

In your case you cannot use minigallery rith from scracth to be responsive you need to tweeak it and even if you change the code if you are notcareful you are loading a desktop image in a tablet or mobile size.

we have are own fields and modules and template to be responsive but they are 100% custom made.

Can you share with me a link so I can point you in the rigth direction? or it is localhost?

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

More
11 years 8 months ago #33738 by micker
Replied by micker on topic mini gallery not responsive
maybe you can adapte widegetkit of yootheme to create your template !
use universal module to do this !
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
11 years 8 months ago #33804 by rottenberg

Can you share with me a link so I can point you in the rigth direction? or it is localhost?


The version is localhost for the moment.

I have tested yootheme widgetkit. It seems a little bit complex for what I need.

I have found a module with a responsive display, but I need to adapt the images as the module displays all images from a directory.

With a few modifications I can display the values of the selected images for the article (Large ones).


I have created a gallery/image field and put it in the renderonly position of the template.
At the beginning of my template I have coded :
Code:
foreach ($this->fields['diaporama'] as $diaporama) { $_SESSION['diaporama'][] = $diaporama->display; }

I don't get the image value but all the html code needed to display an image.
I just need the image url.

How can I get the images urls ?

thank you for help
best regards
Michel

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

More
11 years 8 months ago #33806 by ggppdk
Replied by ggppdk on topic mini gallery not responsive
Hello,
please read this (new) FAQ article
About custom display of image / gallery field

I copied some contents of it below:

Extra display variable of image / gallery fields (always available) are:

Thumbnail URLs of first image only (all thumbnail sizes):

$item->fields->{"display_backend_src"}
$item->fields->{"display_small_src"}
$item->fields->{"display_medium_src"}
$item->fields->{"display_large_src"}
$item->fields->{"display_original_src"}


Thumbnail URLs of all images (gallery mode) (all thumbnail sizes)

$field->thumbs_src[]
$field->thumbs_src[]
$field->thumbs_src[]
$field->thumbs_src[]
$field->thumbs_src

Display Variables having HTML

display
display_small
display_medium
display_large
display_original

normally you can only use variable 'display', tocreate other variables use this:

FlexicontentFields::getFieldDisplay($this->item, 'fieldname');


-- 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
11 years 8 months ago #33820 by rottenberg
thank you very much.

I have wroten this order for the image/gallery field call 'diaporama':
Code:
$diaporama = $this->fields['diaporama']->thumbs_src['large'];
and I get all the image in an array.

In the present version I couldn't get the original size. So I used the large thumbnails.


best regards

Michel

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.325 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