PDF Galleria gadget

Note:

Your organization must be subscribed to Igloo's Gadget Depot to use gadgets in your digital workplace. Contact your Customer Success Manager or email the Customer Success Team to subscribe to the Gadget Depot and get access to all available gadgets.

Use the PDF Galleria gadget to allow users to interact with multiple PDF files at once from one or more folder channels in a configurable carousel of PDF thumbnails.

Galleria gadget with a horizontal carousel and displaying the active PDF.

Sections in this article:

Considerations and caveats

  • Not optimized for Firefox: When using the gadget in Firefox, the quality and size of PDF thumbnails and previews may appear differently than expected.
  • Language support: The gadget and files are not responsive to a user's language selection. Gadget button text displays in English, and file titles and descriptions use the text entered for them.
  • PDF size and layout: The gadget supports horizontally or vertically oriented PDFs and PDFs of differing sizes. However, for a more consistent visual experience, we suggest using PDFs of the same size and orientation whenever possible.
  • Layout on mobile and low screen widths: If the gadget is placed in a small column, viewed on mobile, or in a window that has been resized to a smaller view (smaller than or equal to 620 pixels), it will take on a default layout that is optimized for the smaller size. In doing so, the PDF preview and corresponding toolbar buttons will be hidden.
  • Color scheme and styling priority: There are multiple ways to affect the gadget's color scheme and overall style. In order of their priority in being applied:
    1. Custom CSS style sheet
    2. Custom colors
    3. Light/Dark mode
    4. Site styling
    5. Default color scheme

Set up

Follow these steps to set up this gadget:

  1. Place an Integrations widget on a page, space, or dashboard. For more information, see Placing and setting up a widget. Here are some tips to consider when placing this gadget:
    • The gadget works well in any column if you are not displaying a preview of PDFs (using the Hide the PDF preview image and interactive PDF file setting).
    • If you are displaying a preview of PDFs and the Carousel Layout is Horizontal, the gadget works best when spanning the full page width or taking up a large column.
    • If you are displaying a preview of PDFs and the Carousel Layout is Vertical, the gadget works best in a medium or large column.
  2. Select the placed widget's Edit button.
  3. Under Integration Library, select Igloo Gadget Depot.
  4. Select the PDF Galleria gadget from the library.
  5. Review and make changes to the settings on the Options and Appearance tabs. You can find details about the widget's settings in the Settings section below.
  6. In the widget editor, select Update to apply your changes or Cancel to discard them.  
  7. At the bottom of your page, space, or dashboard, select Publish or Save as Draft to save your changes.

Settings

Options tab

General Options
Setting Description
Title

Enter a title for the widget. The title appears as a heading above the widget's contents. You should use the title to provide context to the widget and better structure a page's content by clearly denoting different sections.

When entering a title, you do so only for your currently selected language. If your digital workplace supports multiple languages, you should select Translation and enter a title for each supported language.  

This field can contain a maximum of 140 characters.

 

Title link Enter the URL of a location in your digital workplace. Users who select the widget's title, if it has one, will go to this location. Whether you enter the link as a relative URL or an absolute URL does not matter; it will convert to an absolute URL the next time you edit the widget.

This field can contain a maximum of 2,083 characters.

Description

Enter a description for the widget. The description appears between the title and the widget's contents. You can use this text to provide information about the widget to users.

When entering a description, you do so only for your currently selected language. If your digital workplace supports multiple languages, you should select Translation and enter a description for each supported language.

Content Options
Setting Description
Folder channel paths Enter a comma-separated list of URLs to identify which folder channels or folders the gadget will display PDFs from. This should be the whole path after the site's domain. For example, for a folder located at example.igloodigitalworkplace.com/files/pdf_files, the path would be /files/pdf_files.

To display PDFs from multiple folder channels, list the paths separated by commas. For example: /files/spring_brochures, /blogs/fall_brochures.

We recommend using a maximum of 4 folder channel paths to maintain optimal performance.

Number of items to display Select the maximum number of PDFs to display. Options include:
  • 5
  • (Default) 10
  • 15
  • 20
This limit is applied after items are sorted. As a result, the Sort Order can result in different PDFs being displayed.

Include archived items Select to display archived PDFs.

This setting is not selected by default.

Sort order Select the order in which PDFs are displayed. Options include:
  • (Default) Alphabetical (A to Z): The title of the PDF.
  • Created (newest to oldest): The date the PDF was created.
  • Published (newest to oldest): The date the PDF was published.
  • Modified (newest to oldest): The date the PDF was last modified.
Reverse sort order Select to reverse the sort order.  
  • If the Sort order is Alphabetical, PDFs are ordered from Z to A based on their titles.
  • If the Sort order is Created, Published, or Modified, PDFs are ordered from oldest to newest.

This setting is not selected by default.

Document label order Enter a comma-separated list of labels to identify a custom order for the PDFs. PDFs are grouped according to their labels, and the labels are used to arrange the order. Within the groups, the PDFs are sorted according to the selected Sort order.

Ordering by labels is applied after PDFs have been sorted using the selected Sort Order and reduced in quantity by the selected Number of items to display.

Keep in mind the following when using this functionality:
  • Labels are case-sensitive.
  • Performance will degrade as more PDFs are displayed in the gadget.
  • If a PDF matches on multiple labels, the label that would appear first if labels were sorted alphabetically is the one used.
  • PDFs with no labels are grouped after PDFs with labels.
This field is blank by default.

Display Options
Setting Description
Preview page number Enter a page number. This page will be used as the preview and preview thumbnail images.

If this value is not a number, 0, or a negative number, the gadget will use the value 1. PDFs that don't have the entered page number display a fallback error image instead.

The default value is 1.

Hide the PDF preview image and interactive PDF file Select to hide the interactive PDF previewer. If selected, the Carousel Layout will be set to Horizontal, and the carousel and PDF preview buttons will be hidden regardless of what is selected for Choose the carousel layout, Hide the carousel button, and Hide the PDF preview button.

This setting is not selected by default.

Fallback error image - preview Enter the absolute link of an image to display when the PDF Preview cannot be displayed. This can occur when:
  • Preview page number is set to a page number that does not exist in a file.
  • A preview was not generated for a PDF file.
Keep in mind the following: 
  • The image must be a PNG
  • The last three characters of the file name must be png.
  • The source of the image must use HTTPS.
  • The image must reside in the same digital workplace using the gadget or be hosted in a service such as Azure.
  • If hosting the image in your digital workplace, it must be located in a folder channel named files that is situated in the root of your digital workplace. The image can be located anywhere within this folder channel. For example:
    https://customercare.igloosoftware.com/files/images/previewerrorpng

By default, this will display an image that says "Preview Image Not Available".

Fallback error image - thumbnails Enter the absolute link of an image to display when the PDF thumbnail cannot be displayed. This can occur when:
  • A preview was not generated for a PDF file.
Keep in mind the following: 
  • The image must be a PNG
  • The last three characters of the file name must be png.
  • The image must reside in the same digital workplace using the gadget or be hosted in a service such as Azure.
  • If hosting the image in your digital workplace, it must be located in a folder channel named files that is situated in the root of your digital workplace. The image can be located anywhere within this folder channel. For example:
    https://customercare.igloosoftware.com/files/images/thumbnailerrorpng

By default, this will display an image that says "Thumbnail Not Available".

Choose whether the links open in the same or new tab Select how users experience links that redirect to another location. Options include
  • (Default) Links open in the same tab
  • Links open in a new tab
Choose what happens when you click on thumbnails Select what happens when users select a PDF thumbnail. Options include:
  •  (Default) Clicking the thumbnail or title makes that the current item in the carousel
  • Clicking the thumbnail or title opens the file in the browser's default PDF viewer
Choose the carousel layout Select how the gadget displays PDF thumbnails. Options include:
  • Horizontal: Thumbnails are displayed from left to right.
  • (Default) Vertical: Thumbnails are displayed from top to bottom.

If Hide the PDF preview image and interactive PDF file is selected, the layout will default to Horizontal.

Autoplay the carousel Select to cycle through PDFs in the carousel automatically. The time spent on each PDF is determined by the setting Choose the carousel transition interval.

This setting is not selected by default.

Choose the carousel transition interval Select how much time is spent on each PDF when autoplay is enabled. Options include:
  • 3 seconds
  • 4 seconds
  • (Default) 5 seconds
  • 6 seconds
  • 7 seconds
Hide the carousel button Select to hide the Carousel button. Users can interact with this button to show or hide the carousel.

If Hide the PDF preview image and interactive PDF file is selected, this button will be hidden.

This setting is not selected by default.

Hide the autoplay button Select to hide the  Autoplay button. Users can interact with this button to start/pause the automatic cycling of PDFs in the carousel.

This setting is not selected by default.

Hide the PDF preview button Select to hide the / Open current file in internal PDF viewer button. Users can interact with this button to toggle whether the PDF preview is a static image or an interactable PDF.

If Hide the PDF preview image and interactive PDF file is selected, this button will be hidden.

This setting is not selected by default.

Hide the external PDF viewer button Select to hide the  Open current file in external PDF viewer button. Users can interact with this button to open the active PDF in their browser.

Whether the PDF is opened in the same tab or a new tab is determined by the setting Choose whether the links open in the same or new tab.

This setting is not selected by default.

Hide the file location button Select to hide the Go to selected file location button. Users can interact with this button to go to the active PDF's location in the digital workplace.

Whether the PDF is opened in the same tab or a new tab is determined by the setting Choose whether the links open in the same or new tab.

This setting is not selected by default.

Hide the document title from the toolbar Select to not show the active PDF's title on the gadget's toolbar.

This setting is not selected by default.

Hide the document description from the toolbar Select to not show the active PDF's description on the gadget's toolbar.

This setting is not selected by default.

Hide the document count from the toolbar Select to not show the index of the currently active PDF file and total file count from appearing on the gadget's toolbar.

This setting is not selected by default.

Hide the document title from the carousel Select to not show the titles of PDF files in the carousel.

This setting is not selected by default.

Style options
Setting Description
Check to load styles from the main Igloo style sheet Select to style the gadget according to the theme of your digital workplace.

This setting is selected by default.

Choose the color scheme Select a color scheme. Options include:
  • (Default) Light Mode
  • Dark Mode

If Check to load styles from the main Igloo style sheet is selected, this setting will use the color theme of your digital workplace when determining the colors of the gadget. If it is not selected,  the color scheme will use black (#000000) and white (#FFFFFF) as the default colors.

Custom CSS file If you are using a custom CSS file to style this gadget, enter the absolute URL of where the style sheet is located. Keep in mind the following:
  • The style sheet will take precedence over styles in your digital workplace's theme.
  • The style sheet must reside in the same digital workplace using the gadget or be hosted in a service such as Azure.
  • If you are hosting the style sheet in your digital workplace, it must be located in a folder channel named filesthat is situated in the root of your digital workplace. The style sheet can be located anywhere within this folder channel. For example: 
    https://customercare.igloosoftware.com/files/css/stylesheetcss
  • Valid files must end with css.
PDF preview image background color Enter the color used for the background of PDF previews and thumbnails. This color will only appear as the background color for transparent PDF files.

Use any of the following formats:
  • Hex code: #99FF33
  • RGB value: rgb(153, 255, 51)
  • RGBA value: rgba(153,255,51,0.6)
The default value is #FFFFFF.

Toolbar background color Enter the color used for the background of the toolbar.

Use any of the following formats:
  • Hex code: #99FF33
  • RGB value: rgb(153, 255, 51)
  • RGBA value: rgba(153,255,51,0.6)
The default value is:
  • #FFFFFF if Choose the color scheme is set to Light Mode.
  • #000000 if Choose the color scheme is set to Dark Mode.
  • The color indicated in your theme if Check to load styles from the main Igloo style sheet is selected.
Toolbar text color Enter the color used for the text of the toolbar.

Use any of the following formats:
  • Hex code: #99FF33
  • RGB value: rgb(153, 255, 51)
  • RGBA value: rgba(153,255,51,0.6)
The default value is:
  • #FFFFFF if Choose the color scheme is set to Light Mode.
  • #000000 if Choose the color scheme is set to Dark Mode.
  • The color indicated in your theme if Check to load styles from the main Igloo style sheet is selected.
Toolbar button color Enter the color used for the background of toolbar buttons.

Use any of the following formats:
  • Hex code: #99FF33
  • RGB value: rgb(153, 255, 51)
  • RGBA value: rgba(153,255,51,0.6)
The default value is:
  • #FFFFFF if Choose the color scheme is set to Light Mode.
  • #000000 if Choose the color scheme is set to Dark Mode.
  • The color indicated in your theme if Check to load styles from the main Igloo style sheet is selected.
Toolbar button on hover background color Enter the color used for the background of toolbar buttons when they are hovered over.

Use any of the following formats:
  • Hex code: #99FF33
  • RGB value: rgb(153, 255, 51)
  • RGBA value: rgba(153,255,51,0.6)
The default value is:
  • rgba(0,0,0,0.1) if Choose the color scheme is set to Light Mode.
  • rgba(255,255,255,0.1) if Choose the color scheme is set to Dark Mode.
  • The color indicated in your theme if Check to load styles from the main Igloo style sheet is selected.
Carousel background color Enter the color used for the background of the carousel.

Use any of the following formats:
  • Hex code: #99FF33
  • RGB value: rgb(153, 255, 51)
  • RGBA value: rgba(153,255,51,0.6)
The default value is:
  • #FFFFFF if Choose the color scheme is set to Light Mode.
  • #000000 if Choose the color scheme is set to Dark Mode.
  • The color indicated in your theme if Check to load styles from the main Igloo style sheet is selected.
Carousel button and text color Enter the color used for:
  • Background of carousel buttons
  • Carousel text
  • Text and icons when loading
  • Text and icons in errors
Use any of the following formats:
  • Hex code: #99FF33
  • RGB value: rgb(153, 255, 51)
  • RGBA value: rgba(153,255,51,0.6)
The default value is:
  • #FFFFFF if Choose the color scheme is set to Light Mode.
  • #000000 if Choose the color scheme is set to Dark Mode.
  • The color indicated in your theme if Check to load styles from the main Igloo style sheet is selected.
Carousel button on hover background color Enter the color used for the background color of carousel buttons when they are hovered over and the background color of the active PDF in the carousel.

Use any of the following formats:
  • Hex code: #99FF33
  • RGB value: rgb(153, 255, 51)
  • RGBA value: rgba(153,255,51,0.6)
The default value is:
  • rgba(0,0,0,0.1) if Choose the color scheme is set to Light Mode.
  • rgba(255,255,255,0.1) if Choose the color scheme is set to Dark Mode.
  • The color indicated in your theme if Check to load styles from the main Igloo style sheet is selected.

Appearance tab

Appearance options
Setting Description
Class

Enter CSS class selectors to provide additional styling to the widget. For more information, see Applying custom CSS to widgets.

Height

Select the height of the widget.

The default value is Auto (leftmost slider position), which scales the widget's height to fit its contents. You can use the slider to set a fixed height between 50px and 600px in increments of 50px.

Selecting a Height other than Auto will add a vertical scrollbar to the gadget.

Note

Your digital workplace's theme overwrites many of the settings on the Appearance tab. However, the settings listed above are usable.

Using it

On page load, the galleria shows PDF files from configured folder channels. 

The components of the PDF Galleria which are described below.

The galleria contains the following components:

  • Toolbar: Located at the top of the gadget, you can use the toolbar to change how the galleria functions and displays PDFs. The available tools and information may vary depending on how the gadget is configured. Tools and information can include:
    •  Hide Carousel button: Select to show or hide the carousel.
    • Autoplay button: Select to start or stop the automatic cycling of active PDFs.
    • Document index: The current position of the active PDF relative to other PDFs in the gadget.
    • Document title: The name of the active PDF.
    • Document description: The description that was added to the active PDF file in your digital workplace.
    • /   Internal PDF viewer button: Select to toggle whether the PDF preview is a static image or an interactable PDF. This will pause autoplay.
    •  External PDF viewer button: Select to open the PDF in your browser.
    • File Location button: Select to go to the PDF's location in your digital workplace.
  • Carousel: Displays thumbnails of the galleria's PDFs.
    • Selecting a thumbnail will either make it the active PDF and show it in the preview pane or go to the PDF's location in your digital workplace. Which action occurs depends on how the gadget is configured.
    • If autoplay is on and selecting a PDF displays it in the preview pane, selecting the active PDF will pause autoplay.
    • To change the active PDF, select the left/right (horizontal carousel) or up/down (vertical carousel) arrows.
  • Preview pane: If enabled, this is where the currently active PDF is displayed. If this view is set to display the PDF, rather than a static image, it is displayed using your browser's default PDF viewer. As a result, some options may vary between browsers.

Troubleshooting

No valid folder channel path

Ensure that Folder channel paths contains at least one valid path to a folder channel.

Error message indicating that an administrator is needed to correct the problem.

No PDFs  in connected channels

Ensure that the folders that you have entered contain PDFs.

Error message indicating that the connected folders have no PDFs.