Create a Directory Search Page
The directory page with search will filter data for any keyword in the profile card (names, departments, titles, etc.). Our recommended card layout is provided when you create a page using this template but you can choose to include additional content or remove the content that is provided.
The legacy Cascade CMS theme includes a Directory Module developed by Hannon Hill as a way to manage online profiles for faculty and staff. The Directory Module was built using an outdated framework and is not compatible with Bootstrap 4.
You must add a directory search page from the Add Content menu first. Follow the steps to create a directory search page in the Cascade Basic Training.
On this page:
Profile Card Code Snippet Overview
Each card is comprised of the following code sections:
The Parent Div Wrapper - This the parent element. All the text inside this wrapper is searchable. The Parent Wrapper contains the Card Div wrapper.
Required Class:
box
Optional Class:
transistion-3d-hover
The List Item - Contains the main card elements. From the code view you can quickly identify this section by the code comment:
<!--List Item-->
The List Item contains the Media Div wrapper. The Media Div wrapper is a child of the Card Div wrapper.The Avatar Image - This is the photo element for the card. To remove the image select entire the Avatar Div depicted in the HTML Code to delete.
The Profile Details - These are the main details for the profile card. There are two columns of content inside the Media Body Div. The profile details are in the first column.
The Social Media Buttons - These are optional social media icons. From the code view you can quickly identify this section by the code comment:
<!--Social Network-->
The social media icons are in the second column of the Media Body Div.To remove all social media links, select all of the code between the code comments to delete.
Social media links use the Font Awesome library.
To link to a social media profile include the full URL in place of the # in the link tag
<a href="#">
The Card Footer - This is the second element in the Card Div wrapper and contains all of the contact and location details for the profile. Each detail in this element is listed by a list item.
To remove a contact or location detail section select the entire section of code
<li class="list-inline-item">...</li>
to delete.To add a contact or location detail, add a new list item.
<li class="list-inline-item">add new detail</li>
Each profile card must include the following HTML ID: box
. If you do not include this ID the card will not be included in the on-page search functionality.
Instructions
Editing Profile Cards
When adding a Directory Search page, the content for the sample profile cards are provided in the second row. Click on the Column Content.
If you are satisfied with the content provided in the card, you can use the WYSIWYG editor to change the content in the sample cards.
Using the Code View to Edit Profile Cards
If you would like to remove content from the card or edit the card using the code view, click on the Source Code <> icon.
In the Source code editor, click on the Format Code icon and then Toggle Fullscreen Mode icon to expand the window size.
Locate the section of the card you would like edit using the code comment notations.
If you are removing a section of a card, make sure to remove the entire HTML element.
Creating New Profile Cards
Copy the Code Snippet below to add a card to the list.
Edit the sample content.
<div class="box transition-3d-hover">
<!-- Team -->
<div class="card shadow-none">
<!-- List Item -->
<div class="media">
<div class="avatar avatar-xxl avatar-circle mb-4 mr-4">
<img alt="Image Description" class="avatar-img" src="https://themetest-d.nmsu.edu/assets/img/100x100/img1.jpg" />
</div>
<div class="media-body">
<div class="row align-items-center">
<div class="col-sm mb-1 mb-sm-0">
<span class="d-block small font-weight-bold text-cap mb-1">Program Director of Innovation</span>
<h4 class="text-lh-sm text-primary">Christina Kray</h4>
<p class="mb-0">Aerospace Engineering</p>
</div>
<div class="col-sm-auto">
<!-- Social Networks -->
<a class="btn btn-xs btn-icon btn-soft-secondary rounded-lg shadow-none mb-2" href="#">
<i class="fab fa-twitter"></i>
</a>
<br />
<a class="btn btn-xs btn-icon btn-soft-secondary rounded-lg shadow-none mb-2" href="#">
<i class="fab fa-linkedin-in"></i>
</a>
<br />
<a class="btn btn-xs btn-icon btn-soft-secondary rounded-lg shadow-none mb-2" href="#">
<i class="fas fa-link"></i>
</a>
<br />
<!-- End Social Networks -->
</div>
</div>
</div>
</div>
<!-- End List Item -->
<div class="card-footer text-right pb-0">
<ul class="list-inline list-separator small text-body">
<li class="list-inline-item">
<a href="#">email@nmsu.edu</a>
</li>
<li class="list-inline-item">575-123-4567</li>
<li class="list-inline-item">Building Name</li>
<li class="list-inline-item">Room 100</li>
</ul>
</div>
</div>
<!-- End Team -->
</div>
Related articles
-
Custom Top Navigation (Cascade CMS KB)
-
Create a Directory Sort Page (Cascade CMS KB)
-
Create a Directory Search Page (Cascade CMS KB)
-
Create a Directory Page (Cascade CMS - Basic Training)