Basic and Custom Pages
In this section, learn how to:
- Create a simple web page using Basic Pages
- Create pages with more complex layouts and features using Custom Pages
- Use a web builder page as your catalog's main page
Aspen Discovery provides a web builder at no extra cost! Best of all, you can create pages that look great with a variety of content options at your disposal with no coding knowledge whatsoever. Whether you want to create a few pages to supplement your catalog or build out your library's entire website in Aspen, we have options for you.
Creating a Basic Page
-
Navigate to Aspen Administration → Web Builder → Basic Pages.
-
Click Add New.
-
Give your page a title.
-
Enter a URL Alias. This must always begin with a forward slash. For example: /bookclub
-
Enter a teaser description, if desired. If searching within web builder pages is enabled, the teaser will display as a brief description for the page within search results.
-
Next, the page contents: this is where the fun begins! In this box, you can add and format text, upload images, and more. Click here to learn more about using the text editor within Aspen's web builder!
- Require login to access: Only check this box if you want to restrict this page to users who are logged into Aspen Discovery. Once selected, you can even narrow down the access to specific patron types. This means you could potentially create pages that only staff have access to!
- Audience and Categories: Select any audiences or categories that apply to the page. If your library has enabled searching within web builder pages, the Audiences and Categories will appear as search facets patrons can use to narrow down to specific website content.
The audiences and categories are completely customizable. Visit the Audiences and Categories sections of the web builder module in Aspen settings to edit, add, or delete any of the default options.
-
Libraries: Select the library (or libraries) this page should be associated with. If no libraries are selected, you will not be able to view the page.
-
Don't forget to save your changes periodically!
Custom Web Builder Pages
Create a New Custom Page
- Navigate to Aspen Administration → Web Builder → Custom Pages.
- Click Add New.
- Give your page a title and a URL alias.
- At this point, you'll see a new option: Add Row. Before we can start adding rows to build our page layout, we'll need to save the page at the bottom.
Once the page is saved, you can start adding rows. These are the first building blocks for our layout.
Adding Content to Custom Pages
-
Click the Edit icon on a cell to edit its contents.
-
The Source Type is where we can specify what content we'd like to add for this cell. By default, the source type is Text/Images which brings up the standard text editor. However, Aspen provides several options to choose from to make adding content easy.
Cell Options
In addition to adding content to cells, you have some extra options at your disposal.
Title
Layout Settings: Column Widths
Vertical Alignment
Horizontal Justification
Make cell accordion
Design Options
Row Options
To view or edit settings for a row, click the Edit icon for that row.
Make row accordion
Row Title
Design Options
Cells
You can now copy web builder pages in Aspen! This allows you to easily create page "templates" that you can copy and swap out the content.
To copy a page:
- Head to the Web Builder module and open up Basic Pages or Custom Pages, depending on where your page lives.
- Edit the page you wish to copy.
- Click the Copy button.
- After hitting Copy, you'll see an informational box at the top of the new page:
- Before saving, it can be a good idea to give the page a new Title and a new URL Alias so it can be distinguished from the original. However, if your Aspen instance has multiple library catalogs with different libraries creating their own web builder pages, it's okay if more than one library has the same URL Alias. This means that your member libraries can all have their own /faq or /help pages without interfering with one another, as long as the different pages are assigned to different Libraries.
- Check the Libraries at the bottom and assign to a different library or libraries as needed.
- Save your changes. Once you save, you'll be able to edit the page content.
Indexing Web Builder Pages
By default, users will not be able to search through web builder content you've created (including web resources), and the pages will not show up in Explore More. If you would like to enable this:
- First, make sure the Website Indexing module is enabled. This must be turned on in order to actually index the content and make it searchable. Go to System Administration → Modules → Web Indexer → make sure "Enabled" is checked.
Turning on Website Indexing will make your web builder pages and web resources discoverable via the Explore More box in the search results. If you only want your web builder results to show up in Explore More, you can stop here.
If you also want to allow users to search through your web builder pages and/or web resources specifically, you can enable that with these steps:
- Navigate to Primary Configuration → Library Systems → edit your library's settings.
- Scroll down to find Web Builder Results and check the box for "Allow searching locally created web content". This enables the new dropdown in the search bar for "in Library Website."
Once Aspen indexes your web builder content, you'll see a new "in Library Website" search dropdown available.
Library Website Search Facets
When the Website Indexing module is enabled, Aspen will automatically create a setting for the facets in Aspen Administration > Website Indexing > Website Facet Settings. These facets are used both for web builder pages made searchable in Aspen and any external website pages you have set up with Website Indexing.
If you wish to relabel, rearrange, or adjust other settings for the facets, you can do so in these settings. There are four facet options available to choose from: Site Name, Website Type, Audience, and Category. Note that the "Add New" button is only for re-adding a default facet option you may have deleted; you will not be able to add a completely new facet option.
In Aspen, you can choose to restrict access to Basic and Custom Pages.
To do this click on Require login to access.
You can also Allow access without logging in while in the library.
You can also allow access to certain PTypes. This is how you would make the page only accesible to STAFF if you wanted to make an intranet or internal page.
You can also choose to allow access to patrons of certain home library locations.
Frequently Asked Questions
Some of our libraries use Web Builder to replace their existing websites with Aspen or create a whole new one from scratch. Take a look at some of these awesome examples for inspiration:
Okaloosa County Public Library
These libraries have opted to use a web builder page as their new main landing page rather than the standard browse category page.
If you are pointing a custom URL (current library website URL) to the Aspen Catalog URL, you will need to work with the Support vendor to point the library website URL to the Aspen catalog URL and issue the certificate.
Make a Web Builder Page Your New Home Page
- After you've created your new home page in the web builder, head to Aspen Administration → Primary Configuration → Host Information.
- Click Add New.
- Host name: enter in your library's URL with no http/https or www in front of it.
- Library: Select the library/library system.
- Location: In most cases, you can leave this at the default (-1). Only select a location if you want a specific page to become the main landing page depending on where the user is accessing your Aspen site. This also requires IP Address settings to be in effect.
- Default Path: Enter the URL alias for the page you want to become the new landing page.
Warning: the Default Path must only be the path of the Web Builder page you are wanting to load. i.e. /Home Do not include the entire web address URL.
Example settings:
Save your changes. When visiting your catalog URL, your web builder page should now display.
We recommend using Layout settings or manually adding a menu link to make sure users can still get to the browse category page.
The Basic and Custom pages within Aspen use a WYSIWYG ("What You See Is What You Get") editor by TinyMCE.
While the WYSIWYG functionality may work for many users, you also have the option to edit the HTML using the Source Code view. Click the <> icon to access and edit the source code.
Using CSS with Web Builder
Editing the source code will allow you to assign CSS IDs and classes to various elements on your pages. These elements can then be styled with CSS from your Theme settings.
Adding Extra Space
To add extra paragraph spaces between text, images, or other elements, edit the source code and add:
<p> </p>
Adding Extra Space Between Rows
To add extra space between rows, you could add a new row and create a table or add this source code and change the background-color hex color to a color of your choice:
<p> </p>
<table border="0" style="width: 100%; border-collapse: collapse; background-color: #27ba2e;">
<tbody>
<tr>
<td style="width: 100%;">
<p></p>
</td>
</tr>
</tbody>
</table>
<p> </p>
Apply CSS to specific web builder pages
Add this to JavaScript Snippets:
<script type="text/javascript">
// Get url suffix and make it an html ID on custom pages
var custom_page = $("body").attr('id');
if (custom_page = "WebBuilder-PortalPage") {
var get_url_suffix = window.location.pathname;
var create_html_id = get_url_suffix.replace("/", "customPageId-");
$("#main-content").attr('id', create_html_id);
}
</script>
It applies only to custom pages. It takes the URL suffix (in my case /home) and makes that a unique HTML ID. It overwrites the ID of #main-content with the new ID.
Then in CSS apply the background color to this specific custom page:
#customPageId-home {background-color: #dedede;}
Insert a div on a web resources page
Ex: https://discovery.fclspa.org/WebBuilder/ResourcesList
<script>
if (window.location.href.indexOf("ResourcesList") != -1) {
var block_to_insert ;
var container_block ;
block_to_insert = document.createElement( 'div' );
block_to_insert.id = 'power_eresource_footer' ;
block_to_insert.innerHTML = 'text goes here. Can also use html for formatting' ;
container_block = document.getElementById( 'main-content');
container_block.appendChild( block_to_insert );
}
</script>
Note: you need to add CSS to the theme setting if you want to style the div. In this case I used this so it wouldn’t fill the entire width of the page:
div#power_eresource_footer {
width: 80%;
margin: auto;
}
Automatically open menus in custom pages
Where it says ‘/music’, insert the page path
<script>
jQuery(document).ready(function() {
if (window.location.pathname == '/music') {
$('.customAccordionRow').addClass('active');
$('.panel-collapse').addClass('in');
}
});
</script>
Automatically open menus in web resources
Use the section color in closed panel background color
<script>
jQuery(document).ready(function() {
if (window.location.pathname == '/WebBuilder/ResourcesList') {
$('.customAccordionRow').addClass('active');
$('.panel-collapse').addClass('in');
}
});
</script>
Use the section color in open panel background color
<script>
jQuery(document).ready(function() {
if (window.location.pathname == '/WebBuilder/ResourcesList') {
$('.panel').addClass('active');
$('.customAccordionRow').addClass('active');
$('.panel-collapse').addClass('in');
}
});
</script>