Site Building

Add a branding color to your custom category filter

November 05, 2019
It may have occurred to you that it would be nice to display a colorful, custom category filter that links to information pages, but on creating it you no doubt discovered that custom vocabularies don't offer anywhere to set a branding color like the Article or Event Category lists do. This write-up will show you how to incorporate it into your own custom taxonomies to get that same effect and presentation.

Intranet: Register non-UC Davis users with moderated approval

October 30, 2019
We had a recent request asking how a SiteFarm client could set up their site for visitors outside UC Davis, but restrict their access pending a Site Manager's ability to approve the account. It posed an interesting use case and touches on similar requests we've received in the past. Here's a formal breakdown of the steps we took to create a self-registering intranet with manager approval.

Take in the View: Exclude the page you're on from a related content list

October 30, 2019
OSTraining has put together a great use case showing how to use a View's contextual filters to ensure that the page you're on is not included in an attached block displaying related content. The article takes you step-by-step through the process and includes instructive screenshots to help keep you oriented through the process. If you're interested in building Views for your site, click through and take a look.

Use Twig to create interactive webform calculations

April 01, 2019
We recently spoke with Ryan Jones from TAPS goClub group about a fascinating project to show commuters just how much pollution they are individually contributing to the environment. In addition to the eye-opening data it provides, the webform created by Ryan and his colleague Ramon Zavala also provides a perfect example of how you can incorporate calculations into your forms and share them with your users.

Take in the View: Create a multi-tag filter system for visitors

March 06, 2019
We recently had a feature request from a client looking for a visitor-facing tag filter system to find content that shares more than one tag. As this is a niche request, the View won't be added to the service, but it's an interesting exercise in creating a user interface that allows your visitors to drill down to the specific topic content they want to see.

Building Blocks: Creating a custom sorted list of people for your directory

February 26, 2019
When the default directory listing isn't as granular as you need it to be to clearly denote the hierarchical order of your unit, especially as it relates to your leadership, consider creating your own custom Person List block to help you achieve your goal.

"How do I add a banner image to my news or blog page?"

October 01, 2018
The short answer? You don't. Views are intended to be lists of other content and don't have a built-in mechanism for displaying a top banner as the Basic page does. That said, it's still possible, but it comes with its own set of pros and cons.

Using bullet list styles for aligning linked text and images horizontally

August 23, 2018
You don't always want to use blocks to create the layouts you want; sometimes it would be so much nicer just to, somehow, embed your images and some text across your page. And would an embedded link be too much to ask? Ask away—we have your solution for you.