Implementing an image carousel
You can customize your Developer Portal home page to display images in a carousel. The image carousel provides your Developer Portal home page with a continuous slide show that is customized to your specifications.
Before you begin
You must have administrator access to complete this task.
About this task
By implementing an image carousel, you can replace the default welcome banner or any previously set images.
Procedure
-
Create a content type of Image for your carousel.
- Click Structure > Content types > Add content type.
-
Enter the name of your content type in the Name field.
For example, Slide show picture.
- Optional:
Specify the description of your content type in the Description field.
For example, A picture to display in the slideshow.
- Click Save and manage fields for your newly created content type.
- Click Add field.
-
Select Image for Add a new field, and enter a
label for your field.
For example, slide image.
-
Click Save and continue.
The Field settings page for your new field is displayed.
- In the DEFAULT IMAGE section, click Choose file to assign the image that you want as your default image for your slide show if no other images are found.
- Optional: Complete the Alternative text and Title fields.
- Click Save field settings.
- In the Manage fields tab for your newly created content type of Slide show picture, delete the Body field by clicking Delete on the OPERATIONS drop-down menu. Click Delete again to confirm.
-
Upload the images that you want to appear in your carousel.
- Click Content > Add content, then click the content type that you added in step 1.
-
Enter a title for your image in the Title field.
For example, if you had an image of a lighthouse, you can label the content as Lighthouse.
- Click Choose file under Slide image and select an image for your slide show. Complete the Alternative text field with some text to use when the image cannot be loaded.
- Click Save.
- Repeat sub-steps 2.a to 2.d until you are satisfied with the content of the slides for your carousel.
-
Create a view for your carousel.
- Click Structure > Views > Add new view.
-
Complete View name.
For example, Slide show.
- Select the Create a block check box in the BLOCK SETTINGS section.
- Select Slick Carousel for the display format.
-
Enter the number of slides you have for your carousel in the Items per
block field, then click Save and edit.
The Edit page for your slide show view is displayed.
- Click the title of the view and enter <none> into the text field. Click Apply.
- In the FIELDS section click Add, select the check box for slide image, and click Add and configure fields.
- Ensure the check box for Create a label is not selected, and click Apply.
- In the FIELDS section, click Content: Title > Remove.
- In the FORMAT section, click Settings for Slick Carousel, and then set Skin Main to Default.
- Scroll down to the CAPTION FIELDS section, and select the Content: slide image and Override main optionset check boxes.
- In the OVERRIDABLE OPTIONS section, select the Autoplay, Dots, and Draggable check boxes.
- Click Apply.
- In the FILTER CRITERIA section, click Content: Published > Remove.
- Click Save to save the Slide show view.
-
Configure your home page to host the carousel.
- Click Structure, then click Pages.
- Click edit for the welcome page, then click content in the Panels section.
- To remove the current welcome banner, click the down-arrow under the OPERATIONS column for the Welcome Banner, and select Delete. Click Delete again to confirm.
- To add your carousel, click Add new block and select the slide show view you created in step 3. Deselect Display title and click Add block.
- Click Update and save.