Administrators can create and manage the location and hour information related to your organizations sites from the Stacks site dashboard.
To create locations
- From the Dashboard, click Locations & Hours
- Click +Add Location
- Location Name - the official or most commonly used name of the location
- Google Maps embedded code - paste the embed code directly from Google Maps
- Google Places query - the Google Places API key must be configured in Stacks for this
- If using Google Places query, information will automatically populate in several fields on this Create Location form, review the information and complete any other fields as needed
- Language - select the appropriate language
- Note: this is used for translation purposes
- Weight - determines the order of this location, if there are multiple locations
- 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 - patrons will see in the Hours and Location block on the homepage
- Fax - patrons will see in the Hours and Location block on the homepage
- Email - patrons will see in the Hours and Location block on the homepage
- Review and configure the Publishing workflow as needed
- Click Save
Viewing Location Information
Once a location has been created it can be added to your Stacks site in a couple of ways:
- In a block on a landing page
- A location bar that appears in your header
- A default Stacks page displaying a list of all locations
On a Landing Page
See the article Adding Content to Landing Pages for more information on how to configure the page layout and adding content.
Location Bar
The location name, hours of operation and phone number could be set to appear as a location bar in your header.
To do this:
- From the Dashboard, click System Configuration
- Click the Header tile
- Click Location bar
- Enable, check this box to enable the location bar
- Modal Image, choose an image to appear in the bar, OR
- Location Image Path, copy and paste the image location into the feed
- Click Save Configuration when finished
Default Stacks Page
You can provide access to the list view page for your locations by adding the path /location-and-hours as a link in your main menu, or through other Stacks features such as Callouts, Sliders, Custom Blocks, etc.
Settings for the Locations Pages
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