pekinparadise Posted June 19, 2010 Share Posted June 19, 2010 Hi Folks (and hopefully rocky),I have the carouselnc module installed on my homepage and thanks to rocky's programming it works great. I would like to add another carouselnc in my Sustainability page, which is inside of my Informations Block. This will have different images than those on my homepage. My website is www.pekinparadise.com. Can I install a new carousel module? If so, what is the URL link that I can use to link it into my Sustainability page?Thanks for your ideas.Walt Link to comment Share on other sites More sharing options...
rocky Posted June 20, 2010 Share Posted June 20, 2010 You'll need to copy my module and rename the files so that PrestaShop treats it as a separate module. Copy the carouselnc directory to carouselnc2, then rename carouselnc.php to carouselnc2.php, then change: class CarouselNC to: class CarouselNC2 and: $this->name = 'carouselnc'; to: $this->name = 'carouselnc2'; and: $this->displayName = $this->l('Carousel'); to: $this->displayName = $this->l('Carousel 2'); Once you've done this, you can go put different images in modules/carouselnc2 than modules/carouselnc and go to the Modules tab and install Carousel 2 and put it in a different hook than Carousel. Unfortunately, there is no hook on the CMS pages though, so you'll need to add one. I suggest that you put it in the "Product footer" hook, since you aren't using it at the moment. Edit cms.php and add the following before the $smarty->display: if ($cms->id == 5) $smarty->assign('HOOK_PRODUCT_FOOTER', Hook::productFooter(NULL, NULL)); Then edit cms.tpl in your theme's directory and add the following code on line 7 before {$cms->content}: {if $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if} This should display the new carousel at the top of CMS page 5 only. Link to comment Share on other sites More sharing options...
pekinparadise Posted June 20, 2010 Author Share Posted June 20, 2010 Thanks Rocky. I was able to use my own slideshow by editing Tinymce and using an iframe in the HTML of the CMS in the Back Office. Now I can add unlimited slideshows to the Info Block. Link to comment Share on other sites More sharing options...
ROUGHY Posted August 16, 2010 Share Posted August 16, 2010 I tried your solution. But acutally, it doesn't work. In my second slideshow, the pictures wont be displayed. When I put them in the folder of my first slideshow (carouselnc/agile_carousel_slides-order), everything works fine. But then, they appear also in my first slideshow... What's the problem? Link to comment Share on other sites More sharing options...
ROUGHY Posted August 16, 2010 Share Posted August 16, 2010 Find the solution. Change also line 167 in make_slides.php to $path_to_slide = __PS_BASE_URI__."modules/carouselnc2/".$path_to_slides."/".$slide_file; Link to comment Share on other sites More sharing options...
stefie2 Posted October 15, 2010 Share Posted October 15, 2010 Hi pekinparadise,I saw your website, nice!I heave a questiosen: I also have a carousel but i want to remove the watermark and the text: JQuery carousel plugin.Futhermore when i click on the images, i get a strange tabel that i don't want.Can you maybe help me with this?thx!!!! steffie Link to comment Share on other sites More sharing options...
johny2k Posted October 21, 2010 Share Posted October 21, 2010 Hi pekinparadise,I saw your website, nice!I heave a questiosen: I also have a carousel but i want to remove the watermark and the text: JQuery carousel plugin.Futhermore when i click on the images, i get a strange tabel that i don't want.Can you maybe help me with this?thx!!!! steffie 1. For the watermark you can go to carouseInc.tpl then change the water_mark: "yes" to water_mark: "no".2. For the text: JQuery carousel plugin.Futhermore, you can go to carouseInc-min.css, then find the #slide_captions span. Insert display:none; .I think it should be done. Link to comment Share on other sites More sharing options...
ourwebdesigner Posted December 9, 2010 Share Posted December 9, 2010 Hi,I have downloaded the coroselnc same you , but i'm stupped at how to get it to show on front page inplace of the large image.Any help most appreciatedAl Link to comment Share on other sites More sharing options...
zeisei Posted April 8, 2011 Share Posted April 8, 2011 The above solution unfortunately doesn't work for two carousels within the 'Homepage' (same page).Does anyone have any suggestion so that i try.Thank you. Link to comment Share on other sites More sharing options...
zeisei Posted April 8, 2011 Share Posted April 8, 2011 ....sorry i missed to mention that in the second carousel it keeps displaying the 'Loading' picture.I hope someone can write what other code trial to do..Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now