Image Field in Module as a Gallery Trouble

More
10 years 11 months ago #43311 by igcorreia
Hi,
I am trying to get the list of images of the images field in Universal Module but seems like it is impossible.

I wanted to create a small image gallery in the module but is only possible to make it happen if the images field acts as individual.

But in my case I wanted to use one field only acting as a gallery.

To accomplish this I had to add the extra fields as CUSTOM FIELD in the module.

Remove for the module template the CUSTOM FIELDs and
then:
Code:
//Get Fields $itemFields = FlexicontentFields::getFields($item)[0]->fieldvalues[16]; //Unserialize foreach ($itemFields as $imageField) { $ImageName = unserialize($imageField)['originalname']; //echo "<pre>"; //print_r($itemFields ); //print_r( JURI::base() . 'images/stories/flexicontent/m_fld16_' . $ImageName ); //echo "</pre>"; echo '<a href="'.JURI::base() . 'images/stories/flexicontent/m_fld16_' . $ImageName .'">' .'<img src="'.JURI::base() . 'images/stories/flexicontent/m_fld16_' . $ImageName .'"/>' .''; } //print_r(unserialize($itemFields[0]->fieldvalues[16][0]));

Is this the correct approach?

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

More
10 years 11 months ago #43328 by ggppdk
Hello

you wanted to display images of a single filed using the carousel template ?

this is tricky, since the template is built to display items


-- 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 11 months ago #43362 by igcorreia
That is exactly it.

My problem is that when I put the field in Module FC as an Custom Field, the module diplays the images has HTML and I need to get the ARRAY of the images o I can manipulate them.

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

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