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?”

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”

Course Pages

Step 1: Create a New Document Step 2: Use the Courses Template and Fill in the Title, Long Title, & Resource Title with the course name. The Published checkbox is unchecked by default. Make sure to check it and hit save when you are complete. Step 3: Under the Settings Tab, use the following field … Continue reading “Course Pages”

Faculty and Administrative Bio Pages

Step 1: Create a new Document by clicking on the Document icon under the MODX search bar. Step 2: Under the Document Tab, select the “People – Faculty and Staff Profiles” Template. Then enter the staff member’s Name under Title, Long Title, and Resource Alias in the format shown below. Please note that the Published … Continue reading “Faculty and Administrative Bio Pages”

Remove Periods from Degrees

For example, replace J.D. or L.L.M to JD or LLM. Here’s the JavaScript method: <script> function removePeriods() { var str = document.getElementById("c_degrees").innerHTML; var res = str.replace(/\./g, ""); document.getElementById("c_degrees").innerHTML = res; } window.onload = removePeriods; </script> To do it in MODX, create a chunk called FixDegrees: A.B.:AB,A.M.:AM,B.A.:BA,B.B.A.:BBA,B.C.:BC,B.Com.:BCom,B.E.E.:BEE,B.I.E.:BIE,B.F.A.,BFA:B.L.:BL,B.M.:BM,B.M.E.:BME,B.S.:BS,B.S.E.:BSE,B.S.E.E.:BSEE,D.Jur.:DJur,D.O.:DO,J.D.:JD,J.S.D.:JSD,J.S.P.:JSP,Ed.D.:EdD,Ed.S.:EdS,LL.B.:LLB,LL.D.:LLD,LL.L.:LLL,LL.M.:LLM,M.A.:MA,M.A.S.:MAS,M.B.A.:MBA,M.Ed:MEd,M.Fc.:MFc,M.L.I.S.:MLIS,M.L.S.:MLS,M.D.:MD,M.Ed.:MEd,M.S.:MS,M.Sc.:MSc,M.S.E.E.:MSEE,M.S.L.S.:MSLS,M.T.:MT,P.G.C.E.:PGCE,Ph.D.:PhD,Cert. of Legal Educ.:Cert of Legal Educ,M.P.P.:MPP,S.J.D.:SLD Than create a … Continue reading “Remove Periods from Degrees”