Bt content slider and flexi's intro text

More
10 years 10 months ago #43651 by gkhn
Hi there,

I am trying to get my flexi items to slide nicely on my homepage. I was going through the jed and came accross this extension bt content slider:
extensions.joomla.org/extensions/news-di...icles-showcase/19125

Unfortunatelly it can only get the source of the image from the intro of the article.

So my question is how can I point the source to any image field I need. I have a main product image that I need to use. It is an image/imagegallery field that is included in the item view.

If there is no quick solution to this, how can i set up and image to be in the "intro" so that images can be picked up by this extension.

thank you.

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

More
10 years 10 months ago #43656 by ggppdk
Hello

-- this extension does not support getting image from a FLEXIcontent image field,


your alternatives, are

-1- create a FLEXIcontent Universal Content Module and set it to use carousel template

-2- modify this extension to use the image from the FLEXIcontent image field, which is not trivial, but not difficult either:
Code:
require_once (JPATH_ADMINISTRATOR.DS.'components/com_flexicontent/defineconstants.php'); JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_flexicontent'.DS.'tables'); require_once("components/com_flexicontent/classes/flexicontent.fields.php"); require_once("components/com_flexicontent/classes/flexicontent.helper.php"); require_once("components/com_flexicontent/models/".FLEXI_ITEMVIEW.".php"); $itemmodel_name = 'FlexicontentModelItem'; $itemmodel = new $itemmodel_name(); $item_arr = array(445,567); // This should be DIFFERENT in your extension $img_field_name = 'myfieldname'; foreach( $item_arr as $item_id ) { $item = $itemmodel->getItem($item_id, $check_view_access=false); $item_link = JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug)); $items = array(&$item); FlexicontentFields::getFields($items); $img_url = FlexicontentFields::getFieldDisplay($item, $img_field_name, 'display_large_src'); ... }


If a developer is given the above then he/she can easily intergrate it into the BT extension

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

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

More
10 years 10 months ago #43685 by gkhn
yes flexicontents slider is much more flexible, stable and works better on mobiles.. Thank you!

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

More
10 years 10 months ago #43693 by ggppdk
Hello

it also has the important feature to have a powerful selection of items (various SCOPEs)


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

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