Sidebar Default for Universal Viewer

Hi there,
I am having this small issue where whenever I load a page with a universal viewer window the sidebar on that window automatically opens. Is there a way to make it default to closed? Image of what I mean below.


Daniel Brett

1 Like

Hi Daniel

go to the following directory: plugins/universalviewer/views/public/universal-viewer/

and configurate the config.json
Here is an example of some parameters.

“options”: {
“allowStealFocus”: false,
“bookmarkThumbHeight”: 150,
“bookmarkThumbWidth”: 90,
“dropEnabled”: false,
“footerPanelEnabled”: true,
“headerPanelEnabled”: true,
“leftPanelEnabled”: false,
“limitLocales”: false,
“multiSelectionMimeType”: “application/zip”,
“navigatorEnabled”: false,
“openTemplate”: “{0}”,
“overrideFullScreen”: false,
“pagingEnabled”: false,
“pagingOptionEnabled”: false,
“pessimisticAccessControl”: false,
“preserveViewport”: false,
“rightPanelEnabled”: false,
“saveUserSettings”: false,
“clickToZoomEnabled”: true,
“searchWithinEnabled”: true,
“termsOfUseEnabled”: false,
“theme”: “uv-en-GB-theme”,
“tokenStorage”: “session”,
“useArrowKeysToNavigate”: false,
“zoomToSearchResultEnabled”: true
“modules”: {
“contentLeftPanel”: {
“options”: {
“defaultToTreeEnabled”: false,
“defaultToTreeIfGreaterThan”: 0,
“elideCount”: 40,
“expandFullEnabled”: false,
“galleryThumbChunkedResizingThreshold”: 400,
“galleryThumbHeight”: 320,
“galleryThumbLoadPadding”: 3,
“galleryThumbWidth”: 200,
“oneColThumbHeight”: 320,
“oneColThumbWidth”: 200,
“pageModeEnabled”: true,
“panelAnimationDuration”: 250,
“panelCollapsedWidth”: 30,
“panelExpandedWidth”: 255,
“panelOpen”: false,
“tabOrder”: “”,
“thumbsEnabled”: true,
“thumbsExtraHeight”: 8,
“thumbsImageFadeInDuration”: 300,
“thumbsLoadRange”: 15,
“treeEnabled”: true,
“twoColThumbHeight”: 150,
“twoColThumbWidth”: 90
“content”: {
“collapse”: “Collapse Contents”,
“collapseFull”: “Collapse Gallery”,
“date”: “date”,
“expand”: “Expand Contents”,
“expandFull”: “Expand Gallery”,
“index”: “Index”,
“searchResult”: “{0} search result”,
“searchResults”: “{0} search results”,
“sortBy”: “Sort By:”,
“thumbnails”: “Thumbnails”,
“title”: “Contents”,
“volume”: “volume”
“dialogue”: {
“content”: {
“close”: “Close”
“downloadDialogue”: {
“options”: {
“confinedImageSize”: 1000,
“currentViewDisabledPercentage”: 90,
“maxImageWidth”: 5000,
“optionsExplanatoryTextEnabled”: false,
“selectionEnabled”: false
“content”: {
“currentViewAsJpg”: “Current view {0} x {1}px (jpg)”,
“currentViewAsJpgExplanation”: “Opens in a new window”,
“pagingNote”: “Please turn off Two Page View for additional options.”

"footerPanel": {
  "options": {
    "bookmarkEnabled": false,
    "downloadEnabled": false,
    "embedEnabled": false,
    "feedbackEnabled": false,
    "fullscreenEnabled": true,
    "minimiseButtons": true,
    "moreInfoEnabled": false,
    "openEnabled": false,
    "printEnabled": false,
    "shareEnabled": false
  "content": {
    "bookmark": "Add to bookmarks",
    "download": "Download",
    "embed": "Embed",
    "feedback": "Feedback",
    "exitFullScreen": "Exit Full Screen",
    "fullScreen": "Full Screen",
    "open": "Open",
    "share": "Share"
"genericDialogue": {
  "content": {
    "emptyValue": "please enter a value.",
    "invalidNumber": "Please enter a valid number.",
    "noMatches": "No matches were found.",
    "ok": "OK",
    "pageNotFound": "This item does not contain a page with the number you entered. Try switching the numbering mode to 'image'.",
    "refresh": "Refresh"
"headerPanel": {
  "options": {
    "localeToggleEnabled": false,
    "settingsButtonEnabled": false
"helpDialogue": {
  "content": {
    "text": "placeholder text",
    "title": "Help"
"moreInfoRightPanel": {
  "options": {
    "canvasDisplayOrder": "",
    "canvasExclude": "",
    "copyToClipboardEnabled": false,
    "manifestDisplayOrder": "",
    "manifestExclude": "",
    "panelAnimationDuration": 250,
    "panelCollapsedWidth": 30,
    "panelExpandedWidth": 255,
    "panelOpen": false,
    "rtlLanguageCodes": "ar, ara, dv, div, he, heb, ur, urd",
    "showAllLanguages": false,
    "textLimit": 4,
    "textLimitType": "lines"
  "content": {
    "attribution": "Attribution",
    "collapse": "Collapse Information",
    "collapseFull": "Collapse Gallery",
    "description": "Description",
    "expand": "Expand Information",
    "expandFull": "Expand Gallery",
    "holdingText": "Your module goes here!",
    "less": "less",
    "license": "License",
    "logo": "Logo",
    "more": "more",
    "noData": "No data to display",
    "page": "Page",
    "title": "More Information",
    "manifestHeader": "About the item",
    "canvasHeader": "About the image",
    "copyToClipboard": "Copy to clipboard",
    "copiedToClipboard": "Copied to clipboard"
"multiSelectDialogue": {
  "options": {
    "galleryThumbChunkedResizingEnabled": true,
    "galleryThumbChunkedResizingThreshold": 400,
    "galleryThumbHeight": 320,
    "galleryThumbLoadPadding": 3,
    "galleryThumbWidth": 200,
    "pageModeEnabled": false
  "content": {
    "select": "Download",
    "selectAll": "Select All",
    "title": "Select Pages for Download"
"pagingHeaderPanel": {
  "options": {
    "autoCompleteBoxEnabled": false,
    "galleryButtonEnabled": false,
    "imageSelectionBoxEnabled": false,
    "pageModeEnabled": false,
    "pagingToggleEnabled": false
  "content": {
    "close": "Close",
    "emptyValue": "Please enter a value",
    "first": "First",
    "firstImage": "First Image",
    "firstPage": "First Page",
    "folio": "Folio",
    "gallery": "Gallery",
    "go": "Go",
    "help": "Help",
    "image": "Image",
    "last": "Last",
    "lastImage": "Last Image",
    "lastPage": "Last Page",
    "next": "Next",
    "nextImage": "Next Image",
    "nextPage": "Next Page",
    "of": "of {0}",
    "oneUp": "Single page view",
    "page": "Page",
    "previous": "Previous",
    "previousImage": "Previous Image",
    "previousPage": "Previous Page",
    "settings": "Settings",
    "twoUp": "Two page view"
"seadragonCenterPanel": {
  "options": {
    "animationTime": 0.15,
    "autoHideControls": true,
    "attributionEnabled": true,
    "blendTime": 0,
    "constrainDuringPan": false,
    "controlsFadeAfterInactive": 1500,
    "controlsFadeDelay": 250,
    "controlsFadeLength": 250,
    "defaultZoomLevel": 0,
    "immediateRender": false,
    "maxZoomPixelRatio": 1.25,
    "navigatorPosition": "BOTTOM_RIGHT",
    "pageGap": 50,
    "showHomeControl": false,
    "trimAttributionCount": 150,
    "visibilityRatio": 0.5
  "content": {
    "attribution": "Attribution",
    "goHome": "Go Home",
    "imageUnavailable": "Image Unavailable",
    "next": "Next",
    "previous": "Previous",
    "rotateRight": "Rotate Right",
    "zoomIn": "Zoom In",
    "zoomOut": "Zoom Out"
"searchFooterPanel": {
  "options": {
    "elideDetailsTermsCount": 20,
    "elideResultsTermsCount": 10,
    "pageModeEnabled": true,
    "positionMarkerEnabled": true
  "content": {
    "clearSearch": "Clear",
    "defaultLabel": "-",
    "displaying": "{0} {1} of {2}",
    "enterKeyword": "Enter Keyword",
    "image": "image",
    "imageCaps": "Image",
    "instanceFound": "1 instance of '{0}' found",
    "instancesFound": "{0} instances of '{1}' found",
    "nextResult": "Next Result",
    "page": "page",
    "pageCaps": "Page",
    "previousResult": "Previous Result",
    "print": "Print",
    "resultFoundFor": "result found for",
    "resultsFoundFor": "results found for",
    "searchWithin": "Search within this item:"
"settingsDialogue": {
  "content": {
    "locale": "Locale",
    "navigatorEnabled": "Navigator Enabled",
    "clickToZoomEnabled": "Mouse Click To Zoom",
    "pagingEnabled": "Two Page View",
    "preserveViewport": "Preserve Zoom",
    "title": "Settings",
    "website": "<a href=''>more info</a>"
"shareDialogue": {
  "options": {
    "embedTemplate": "<div class=\"uv\" data-locale=\"{0}\" data-config=\"{1}\" data-uri=\"{2}\" data-collectionindex=\"{3}\" data-manifestindex=\"{4}\" data-sequenceindex=\"{5}\" data-canvasindex=\"{6}\" data-xywh=\"{7}\" data-rotation=\"{8}\" style=\"width:{9}px; height:{10}px; background-color: #000\"></div><script type=\"text/javascript\" id=\"embedUV\" src=\"{11}\"></script><script type=\"text/javascript\">/* wordpress fix */</script>",
    "instructionsEnabled": false,
    "shareFrameEnabled": true
  "content": {
    "customSize": "custom",
    "embed": "Embed",
    "embedInstructions": "To embed this item in your own website, copy and paste the code below.",
    "height": "Height",
    "iiif": "IIIF Manifest",
    "share": "Share",
    "shareInstructions": "To share this item, copy the URL below.",
    "size": "Size:",
    "width": "Width"
"clickThroughDialogue": {
  "content": {
    "viewTerms": "Read Full Terms and Conditions"
"loginDialogue": {
  "content": {
    "login": "Login",
    "logout": "Logout",
    "cancel": "Cancel"
"mobileFooterPanel": {
  "content": {
    "rotateRight": "Rotate Right",
    "moreInfo": "More Information",
    "zoomIn": "Zoom In",
    "zoomOut": "Zoom Out"
"restrictedDialogue": {
  "content": {
    "cancel": "Cancel"

“localisation”: {
“label”: “English (GB)”,
“locales”: [
“name”: “cy-GB”,
“label”: “Cymraeg”
“name”: “en-GB”,
“label”: “English (GB)”
“content”: {
“authCORSError”: “Your browser does not support CORS, please upgrade to view this content.”,
“authorisationFailedMessage”: “Your log-in attempt did not appear to be successful. Please try again.”,
“canvasIndexOutOfRange”: “Canvas index out of range.”,
“degradedResourceMessage”: “Please log in to view at full quality.”,
“degradedResourceLogin”: “log in”,
“forbiddenResourceMessage”: “Your current access rights are insufficient to view this image”,
“termsOfUse”: “Terms of Use”

Good Luck!