Providing location and hours of operation information to your patrons is a critically important option for many libraries. As such, Administrators can create and manage the location and hour information related to your organizations sites from the Stacks site dashboard. This article will focus on how to create new locations and how to display the location and hours on you homepage (or another landing page).
To create new locations
- From the Dashboard, click the Locations & Hours tile
- Click +Add Location
- Location Name, this is the official or most commonly used name of the location, this will be displayed to the user/patron
- Google Maps embedded code, to display a map view in the block, paste the embed code directly from Google Maps, for instructions on how to obtain this code, click here
-
Google Places query, if you use the Google Places API, this could be used to automatically populate information into the fields below.
- Note, your Google Places API key mush be configured in Stacks for this functionality
- Language, if applicable, select the most appropriate language
- Weight, if you have more than 1 location, the numerical value entered here determines the order of appearance from left to right (higher numbers appearing to the right)
- Country, Select from the drop-down list
-
State / Province, select from the list
- Note: this only applies to the US and Canada
- City, type the name of the village/town/city
- Street Address, type the mailing or physical address location.
- Postal Code / Zip Code
- Geocode (Latitude and Longitude fields), enter the map coordinates of the location's address
-
Notes, add any additional information related to the location
- Information added to this field will appear in both the location's detail view and in the location and hours block that can be placed on landing pages
-
Notes, add any additional information related to the location
- Information added to this field will only appear in the location's detail view
-
Hours for each day of the week, enter the operating hours for each day of the week
- For closed days type Closed or leave blank
- Phone, enter a phone number for users/patrons to see in the block
- Fax, enter a fax number for users/patrons to see in block
- Email, enter an email for users/patrons to see in the block
- Review and configure the Publishing workflow as needed
- Click Save
Accessing Locations & Hours
Once one or more locations have been created, the next step is to make this information available to your users/patrons, this can be done in a couple of ways:
- Add a Locations block on your homepage (or other landing page)
- Add a location drop-down that appears in your top menu
- Add a link to the Locations list view page in your main menu or through other Stacks features
Locations Block on the Homepage (or other Landing Pages)
A location block can be added to any section on your homepage or any other landing page as you see fit.
To add the locations block to an existing section:
- Navigate to the page you wish to add the block to
- Click the Layout tab just under the header
- Scroll to the section where the block should be placed
- Click + Add block
- A window will open on the right listing the content that can be added to the section
- Content will be organized by feature type, scroll to the System Blocks section, then click Locations
- In the next window, configure the appearance of the block, starting with the Heading, here you have 3 options
- Leave the heading as is, by default this will be visible to your users/patrons
- Change the heading name, click into the field and type in a new heading name
-
Hide the heading, if you do not wish to show any heading, click the eyeball icon to the right
- The heading field (and the helper text field below) will then be "greyed-out" and cannot be edited
-
Helper Text, if applicable, enter a short description or instructions to provide guidance to the user/patron
- This will appear as an 'i' icon to the right of the heading, users/patrons can click or hover over the icon to view the helper text
- Subheading, if applicable, enter a value to display as a subheading
- Sub-Title URL, if applicable, enter the full URL to the page you wish to direct users/patrons to when they click the displayed subheading
- Open in new tab/window, if adding a Sub-Title URL, check this box to open that page in a new browser tab/windowIn the window that opens a default heading will be displayed, you have 3 options
- Click Add Block
- In the next window, configure the appearance of the block, starting with the Heading, here you have 3 options
- Content will be organized by feature type, scroll to the System Blocks section, then click Locations
- A window will open on the right listing the content that can be added to the section
For more information on how to also add new sections to your homepage or other landing pages, please see Adding Sections and Content section of the Creating Landing Pages and Adding Content article.
Top Menu drop-down
A drop-down option can be configured to be displayed in the Top Menu of you Stack site, when clicked, this will display the name, hours of operation, and phone number information for your locations.
To enable this drop-down:
- From the Dashboard, click the System Configuration tile
- Click the Header tile
- Click Location bar
- Enable, check this box to enable the location bar
- Modal Image, not applicable, you can leave this blank
- Location Image Path, not applicable, you can leave this blank
- Click Save Configuration when finished
Link to the Locations list view
Another way to provide access to your Locations information is to add a link to the pre-built location and hours list view page within Stacks. This link can be added as a link in your main menu, call to action buttons in your header, or through other Stacks features.
In the appropriate link or URL field for any of the options listed, use the path (URL alias) /location-and-hours to direct your users/patrons to the pre-built locations page. When using this option, take a look at the settings for the listing view and details view pages to ensure you display the information you want.
Settings for the Locations Page
Additional settings can also be configured here to control the how your users/patrons will see location and hour information when viewing the Listing View or Detail View for your locations.
- Listing View - this is the initial list of directory listing entries users/patrons will see when they navigate to the /location-and-hours page
- Details View - this is the view users/patrons will see when they click on any one listing entry
- From the Dashboard, click the Location & Hours tile
- Click the Settings tab at the top of the screen
- Click the Listing View sub-tab
-
Enable Listing View, when checked this enables access to the listing view for the content type
- If disabled, when a user attempts to load the URL for this content, they will be redirected to the homepage
- Title, edit the title for the page if desired, the default value is Location and Hours
- Description, enter a description for the page if desired, this will be visible to users/patrons
-
Display section
- Expand First Group by Default, check this box to expand the items, when they are grouped
- Display search form, check this box to display a search bar for entries
- Display A-Z Link Index, check this box to display a link on the list view when "Group by None" is selected
- Enable Add to saved list button, check this box to enable a save to list button
-
Defaults section
- Default Page Limit, select the number of entries to be displayed before pagination is enforced
-
Default Grouping, select the default value locations should be grouped by
- Note: users/patrons can change this when viewing the list of locations
- Default Sort Field, select the default value locations should be sorted by
-
Default Sort Order, select the default order in which locations should be sorted
- Note: users/patrons can change this when viewing the list of locations
-
Field Visibility section
- Check the box beside each field that should be made visible to users/patrons when viewing the list of location entries
- Click Save configuration when finished
-
Enable Listing View, when checked this enables access to the listing view for the content type
- Click the Details View sub-tab
-
Field Visibility section
- Check the box beside each field that should be made visible to users/patrons when viewing the list of location entries
- Enable Add to saved list button, check this box to enable a save to list button
- Click Save configuration when finished
-
Field Visibility section