How to Connect Google Sheets to Contact Forms

After creating your form, click on the Google Sheets tab:       On your Google Drive account, create a new Google Sheet. Save it as something memorable. You will need to grab the name of the sheet, the Google Sheet ID (directly from the URL of the sheet), and the Tab name (default is … Continue reading “How to Connect Google Sheets to Contact Forms”

Setting up an RSS Feed Parser in MODX

MODX uses an add-on called getFeed to parse RSS content. In order to use it, place this code on your page template (example uses the Faculty News Feed): [[!getFeed? &url=`https://sls.gmu.edu/faculty-news/feed/` &tpl=`RSSFeedParser` &limit=`1` ]] The code pulls the RSSFeedParser, a custom chunk we made that pulls the most recent article title and link. Titles are pulled … Continue reading “Setting up an RSS Feed Parser in MODX”

Full-Time Faculty Table

The Full Time Faculty Table implements one ditto that calls two separate chunks. The chunks are: ditto.people_finder.odd.tr.2018 and ditto.people_finder.even.tr.2018 The structure of both dittos are the same, with only the row background color being different using the existing even and odd classes within the main style sheet. When calling the ditto, filter the results using: … Continue reading “Full-Time Faculty Table”

Main Site Top Navigation Bar

Assigning new pages to different sections of the site are done within the resource itself under Template Variables. However, adding sections to the Top Navigation Bar requires manually editing a Chunks within MODX. To add a new Admissions Program to the Admissions section, for example, Navigate to Elements, select Chunks, then Navigation, and select the … Continue reading “Main Site Top Navigation Bar”

Trouble Viewing Published Material on MODx?

If you’re making an edit to an existing page that has been unpublished in the past, be sure to take an extra look at the “Hide Template Variables on Output” field. The field is located under most page templates under Template Variables -> Templates – Default TVs: It varies, but the field in most page … Continue reading “Trouble Viewing Published Material on MODx?”

Upgrading to PHP 7

This guide is for CentOS Linux systems running PHP 5.3 and up. Start by logging into WHM and making sure the server is on Apache 4. Use EasyApache 4 to upgrade if necessary. To upgrade PHP 7, SSH into the server and download Remi and EPEL Repository: $ wget -q http://rpms.remirepo.net/enterprise/remi-release-7.rpm $ wget -q https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm … Continue reading “Upgrading to PHP 7”

Events Planning Form Using Javascript

A short questionnaire to direct users to the right form using Javscript window.onload = function() { document.getElementById(‘link1’).style.display = ‘none’; document.getElementById(‘link2’).style.display = ‘none’; }; //Clears div box var x, y, z; //assigns variables to radio selections function a1(answer1){ x = answer1; }; function a2(answer2){ y = answer2; }; function a3(answer3){ z = answer3; }; //if all … Continue reading “Events Planning Form Using Javascript”

List All Sites Using Custom Shortcode

Shortcodes make it easier to customize wordpress pages quickly. WordPress comes with pre-built shortcodes but we’re going to build one from scratch. You will need to add a function to your child theme’s functions.php file. This particular code builds an ordered list of all our wordpress sites under our sls.gmu.edu domain using the get_sites() function. … Continue reading “List All Sites Using Custom Shortcode”

How to Renew SSL Certificate for law.gmu.edu

Log into cPanel (GoDaddy) and go to SSL/TLS Generate CSR and fill out all the information. Request SSL certificate from ITS. Submit a request to get a certificate. Once you get it from ITS, go back to cPanel – SSL and then go to certificates Then upload the .crt file that ITS gave you Go … Continue reading “How to Renew SSL Certificate for law.gmu.edu”