Skip to Content
0
Former Member
Mar 26, 2018 at 09:59 PM

How to use RotatingImagesComponent

206 Views

I'm trying to use a RotatingImagesComponent, so far I have created some BannerComponents like this:

 INSERT_UPDATE BannerComponent; $contentCV[unique = true]; uid[unique = true]; name; urlLink; &componentRef
 ; ; UCHompageBannerComponent       ; UC Homepage Rotating Banner Component        ; /Categories/Tech/Cameras/DSLR/c/dslr ; UCHompageBannerComponent
 ; ; UCHompageBannerSecondComponent ; UC Homepage Rotating Banner Second Component ; /Categories/Tech/Cameras/DSLR/c/dslr ; UCHompageBannerSecondComponent

Then the RotatingImagesComponent:

 INSERT_UPDATE RotatingImagesComponent; $contentCV[unique = true]; uid[unique = true]; name; banners(&componentRef); timeout; &componentRef;
 ; ; UCHompageRotatingImagesComponent ; UC Homepage Image Rotating Component ; UCHompageBannerComponent, UCHompageBannerSecondComponent ; 1 ; UCHompageRotatingImagesComponent

And add it to the ContentSlot: Note that I have a SimpleResponsiveBannerComponent(UCHompageSplashBannerComponent)

 INSERT_UPDATE ContentSlot; $contentCV[unique = true]; uid[unique = true]; name; active; cmsComponents(&componentRef)
 ; ; Section1Slot-Homepage  ; Section1 Slot for Homepage  ; true ; UCHompageSplashBannerComponent,UCHompageRotatingImagesComponent
 ; ; Section2ASlot-Homepage ; Section2A Slot for Homepage ; true ;
 ; ; Section2BSlot-Homepage ; Section2B Slot for Homepage ; true ;
 ; ; Section2CSlot-Homepage ; Section2C Slot for Homepage ; true ;
 ; ; Section3Slot-Homepage  ; Section3 Slot for Homepage  ; true ; UCHomepageProductCarouselComponent,NewUCHomepageProductCarouselComponent
 ; ; Section4Slot-Homepage  ; Section4 Slot for Homepage  ; true ;
 ; ; Section5Slot-Homepage  ; Section5 Slot for Homepage  ; true ;

And that ContentSlot to a ContentSlotForPage...

That's for the cms-responsive-content.impex, in the cms-responsive-content_en.impes I have created 2 medias:

 INSERT_UPDATE Media; code[unique = true]; @media[translator = de.hybris.platform.impex.jalo.media.MediaDataTranslator][forceWrite = true]; realfilename; altText; mime[default = 'image/jpeg']; $contentCV[unique = true]; folder(qualifier)[default = images];
 ; UC_RotatingCameras.jpg       ; $siteResource/images/banners/homepage/responsive/UC_CamerasBanner.jpg                ; UC_CamerasBanner.jpg                ; "Cameras"                    ;
 ; UC_RotatingCamerasSecond.jpg ; $siteResource/images/banners/homepage/responsive/UC_960x330_HomeSpeed_EN_01_960W.jpg ; UC_960x330_HomeSpeed_EN_01_960W.jpg ; "Save Big On Select Cameras" ;

And add those medias to the Banners:

 INSERT_UPDATE BannerComponent; $contentCV[unique = true]; uid[unique = true]; media(code)
 ; ; UCHompageBannerComponent       ; UC_RotatingCamerasSecond.jpg
 ; ; UCHompageBannerSecondComponent ; UC_RotatingCameras.jpg

Now my problem is that the BannerComponent are being showed individually, not as rotating images, just one below other, and my SimpleResponsiveBannerComponent is not being showed, but if I quit the UCHompageRotatingImagesComponent from the Content Slot, then the SimpleResponsiveBannerComponent is showed... Not sure what I'm missing.

Thanks in advance.