George Mason University Antonin Scalia Law School

Creating a Spreadsheet for Full-time Faculty

A request to pull the following information from the full-time faculty directory: Last Name First Name Title Degrees and Schools SSRN link Subjects taught Area(s) of Expertise CV (PDF link if they have one posted) Email Bio (link to profile page) Create a chunk (ditto.faculty_list_2021_ABA) using tr and td tags: <tr> <td>[[+lname]]</td> <td>[[+pref_name:default=`[[+fname]]`]]</td> <td>[[+title_main]]</td> <td>[[+degree6:isnot=“:then=`[[+degree6:ReplaceDegrees]]`]][[+alma_mater6:isnot=“:then=`, … Continue reading “Creating a Spreadsheet for Full-time Faculty”

Adding a New Gravity Form in WordPress

Steps for adding a new Gravity Form in WordPress: In WordPress nav bar, choose Forms (with Gravity Forms logo), then choose New Form Add Fields and update Field Settings (e.g., make a field required). Save Form and Preview it (top right) At the top of the Form Editor are Settings and Entries. Completed form submissions … Continue reading “Adding a New Gravity Form in WordPress”

Instructions for Restoring Course Schedules in MODX

Duplicate the entire course schedule directory. For example: 2016 Course Schedule and rename it to 2015 Course Schedule. Open up the directory you just copied, select Duplicate of 2016 Fall. Rename Title and Long Title to 2015 Fall. Rename Source Alias to 2015_fall. Open up the static HTML page. Search ../../.. and replace with nothing … Continue reading “Instructions for Restoring Course Schedules in MODX”

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”

Creating “In the News” Content

“In the News” content can be found under Resource ID 11086 and should be contained within the year of posting. The simplest way to create an “In the News” item is to duplicate an existing resource from an existing faculty. Once you make a duplication, uncheck the published radio button to prevent the resource from … Continue reading “Creating “In the News” Content”

MODx comments

MODx comments will not appear when viewing the source code of a page. This is especially useful when trying to keep old banners on the homepage while having it out of sight. To use MODx comments, use the following syntax: [[- ]]

Course Schedule Conversion for MODX

This tutorial walks through the steps to convert course schedule from Excel file into MODX. Open up the original Excel file (provided by Deborah), merge multiple faculty into one row, then delete all the empty rows. Open up the Course Schedule Sample Excel file Copy and paste each column such as Course Title, Credit, and … Continue reading “Course Schedule Conversion for MODX”

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=`` &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”