I have looked all over the code and cannot figure out how to do change the number of slides in the slideshow...

I would really like to be able to reduce to only 4 slides. It would also be nice to enable the slides on other pages, similar to how blocks can be shown on a list of pages or excluded from a list of pages.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jasonrj created an issue. See original summary.

Pranali.addweb’s picture

Status: Active » Needs review
FileSize
1.31 KB
417.08 KB
421.02 KB

I installed the theme and its suggested version for the theme. The slides number and block reusability both are achieved by code changes in twig file. Please find attachment for the working patch and related screenshots.

chippyjacob’s picture

Assigned: Unassigned » chippyjacob
chippyjacob’s picture

FileSize
71.57 KB

Hi

I have made some changes in code so that now the 'No. of slides' need not be changed in code. Instead of that, the configuration for that is included in theme settings.See the picture. The patch is added in 5th comment.

chippyjacob’s picture

FileSize
2.45 KB

Hi

I have made some changes in code so that now the 'No. of slides' need not be changed in code. Instead of that, the configuration for that is included in theme settings. A patch for this is added here. Please use this patch.

chippyjacob’s picture

I have changed the code in order to configure the slider as a block so that it is easy to place the slider in any region. I had created a module called 'business_slider' and added a block for this. This module is attached as a compressed folder along with this.

Steps to follow:
1)Download this theme
2)Apply this patch
3)Download and add custom module 'business_slider' in custom folder under 'modules' folder.
4) Enable this module and place the 'Slider Block - Business' block in any region.
5)Clear the cache.

Now you can also adjust the no. of slides from the settings of 'business' theme. patch for this added.