A collection of book cover images or custom product images can be displayed in the form of a carousel. In Drupal, a carousel is a type of ‘view’. The jCarousel module is enabled upon request. If you wish to create a carousel on your site, please contact us with a request to enable the JCarousel module.
PREPARE TO CREATE YOUR jCAROUSEL VIEW FOR BOOK COVERS
One of the easy ways to create a carousel of book covers it to first create a book list of all the books, and then pull the cover images of those books into a carousel.
-
Create the booklist - instructions to create a book list can be found here: Creating Booklists
-
Retrieve the NID (node ID) of the page containing your booklist - you will need it for step 25 of creating your view. This can be done by navigating to ‘Content’ and selecting ‘Edit’ for the page that contains your booklist. While viewing the page in ‘edit’ mode look at the URL and make note of the NID. Example: node/151/edit
CREATE YOUR jCAROUSEL VIEW FOR BOOK COVERS
NOTES:
-
When making changes make sure the ‘Apply’ buttons say “Apply (this display)” only. If the ‘Apply’ button says “Apply (all displays)” the changes you make will alter every display (Month, Week, Year, etc) of the view.
-
As you edit the view, we highly recommend you save your 'view' after every step, especially when you see this message come up: “* All changes are stored temporarily. Click Save to make your changes permanent. Click Cancel to discard the view.”
Navigate to: Structure > Views > Add new view
-
Fill in ‘View Name’ - Example: Recommended Summer Reading
-
Fill in Description - Example: Carousel view of recommended summer reading
-
Set the Show Content of type to Page (or content of choice)
-
Uncheck ‘Create A Page’
-
Select ‘Create A Block’
-
Confirm your ‘Block Title’ has filled in automatically from the View name
-
Set the ‘Display format’ to ‘jCarousel’ of ‘fields’
-
Set the ‘Items per page’ to 5 - (leaving it blank will load all items)
-
Select Continue and Edit
-
Click on ‘Block’ under ‘Display Name’
-
Enter name and description - Example: (Recommended Summer Reading Block, Block for providing carousel of recommended summer reading) - click Apply
-
Under ‘Format’ click on the ‘settings’ link that appears next to ‘Fields’
-
Select ‘Content: Title’ and ‘Hide empty fields’
-
Apply (this display)
-
Under ‘Fields’ select ‘Add’
-
Search for and select ‘Content: Books’
-
Apply (this display)
-
Configure the field:
-
Uncheck ‘Create a label’
-
Set the formatter to ‘Product reviews - Cover Image Only’
-
Expand ‘Multiple Field Settings’ and uncheck ‘Display all values in the same row’
-
Apply (this display)
-
Under Fields select ‘Content: Title’
-
Select ‘Exclude from display’
-
Apply (this display)
-
Under 'Filter Criteria’ select ‘Add’
-
Search for and select ‘Content: Nid’ - Apply (this display)
-
Configure the filter:
-
Set the ‘Operator’ to ‘Is equal to’
-
Set the ‘Value’ to the ‘NID’ you previously made note of from your booklist page. Example: 151
-
Apply (this display).
-
Under ‘Pager’ confirm it is set to ‘Display all items | All items’
-
Select ‘Settings’ next to ‘jCarousel’ under Format
-
Change the wrap content to your preferred method - Example: Circular
-
Apply (this display)
-
Save
You can now enable the block on your site by navigating to Structure > Blocks and configuring it to be placed in a suitable region.
PREPARE TO CREATE YOUR jCAROUSEL VIEW FOR CUSTOM PRODUCTS
A simple way to display your custom products is to use a jCarousel to display their images.
-
Create your custom products - If you’re not familiar with creating custom products please review: Creating Custom Products
-
Add Taxonomy to your custom products - If you’re not familiar with Taxonomy please review: Understanding and Using Taxonomy
CREATE YOUR jCAROUSEL VIEW FOR CUSTOM PRODUCTS
NOTES:
-
When making changes make sure the ‘Apply’ buttons say “Apply (this display)” only. If the ‘Apply’ button says “Apply (all displays)” the changes you make will alter every display (Month, Week, Year, etc) of the view.
-
As you edit the view, we highly recommend you save your 'view' after every step, especially when you see this message come up: “* All changes are stored temporarily. Click Save to make your changes permanent. Click Cancel to discard the view.”
Navigate to: Structure > Views > Add new view
-
Fill in ‘View Name’ - Example: Mugs
-
Fill in Description - Example: Carousel view of mugs
-
Uncheck ‘Create A Page’
-
Select ‘Create A Block’
-
Confirm your ‘Block Title’ has filled in automatically from the View name
-
Set the ‘Display format’ to ‘jCarousel’ of ‘fields’
-
Set the ‘Items per page’ to be blank - this will allow all items added to the book list to be pulled in.
-
Select Continue and Edit
-
Click on ‘Block’ under ‘Display Name”
-
Enter name and description - Example: (Mugs Block, Block for providing carousel of mugs) - click Apply
-
Under ‘Fields’ select ‘Add’
-
Search for and select ‘Content: Image’
-
Apply (this display)
-
Configure the field:
-
Uncheck Create Label
-
Select your preferred ‘Image Style’ - Example: Thumbnail (100x100)
-
Set the ‘Link image to’ content
-
Expand ‘Multiple Field settings’ and uncheck ‘Display all values in the same row’
-
Apply (this display)
-
Under Fields select ‘Content: Title’
-
Select ‘Exclude from display’
-
Apply (this display)
-
Under ‘Filter Criteria’ select ‘Add’
-
Search for and select ‘Content: Has taxonomy term’
-
Apply (this display)
-
Configure the filter:
-
Select the ‘Vocabulary’ you previously created for your custom product Example: Mug
-
Set the ‘Selection type’ to ‘Dropdown’
-
Apply
-
Set the ‘Operator’ to ‘is one of’
-
Choose the ‘terms’ from the selected vocabulary for the items you want to pull into this view - Example: All Mugs
-
Apply (this display)
-
Under ‘Pager’ confirm it is set to ‘Display all items | All items’
-
Select ‘Settings’ next to ‘jCarousel’ under Format
-
Change the wrap content to your preferred method - Example: Circular
-
Apply (this display)
-
Save
You can now enable the block on your site by navigating to Structure > Blocks and configuring it to be placed in a suitable region.