Skip to content

TACC/Core-CMS-Custom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

846 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Core-CMS-Custom

Custom assets for Core CMS projects

Tip

To customize a Core CMS project beyond assets, create a repository via Core CMS Template.

Caution

Read Gotchas before you change a file path.

Table of Contents

Related Repositories

Project Architecture

Each project has its own root directory. Read STRUCTURE.md for internal directory layout and file naming or example_assets for a template.

Gotchas

File Paths Are Load-Bearing

Renaming or moving a file breaks the CDN URL referenced in Core Portal Deployments. If you change a file path, update Core Portal Deployments to match, because it reads this main branch. If you do not have access to Core Portal Deployments, then maybe do not change a file path — ask first.

Snippets Are Not Loaded by the CMS

See Save Snippets.

Some Projects Compile Their Assets

Some projects have their own package.json and build script. See Custom Styles.

Create Project

  1. Duplicate & Rename the example_assets directory.
  2. Add your assets into that directory.
  3. Get paths to those assets via a CDN.
  4. Find the project in Core Portal Deployments.
  5. Set those paths in its CMS settings file (example).

Asset Management

Change Logo

Changes only header on both CMS pages and Portal interface.

  1. Upload logo to folder (example).

  2. In Core Portal Deployments,
    set path to that logo via CDN (example).

  3. Deploy the change.

Custom Styles

These will load on every page.

Important

Some projects (e.g. ecep, frontera) compile their CSS via their own package.json. If both a .css and .postcss exist with the same name, then edit the .postcss file and — before you commit — run npm run build.

  1. Upload CSS to folder. Examples:

  2. In Core Portal Deployments,
    set path(s) to stylesheet(s) via CDN. Examples:

  3. Deploy the change.

Save Snippets

Important

Snippets are not loaded by the CMS from here nor a CDN. They are maintained independently in the CMS admin interface. This folder just lets us version control them.

  1. Upload snippet(s) to folder (example).

  2. In the CMS admin interface:
    document the latest commit of each snippet (examples) e.g.

    • Name: Page: Members: JS (last commit: 2bcadc0)
    • Name: Page: Members: CSS (TACC/Core-CMS-Custom#321)

Build Project

Follow Core CMS: Build & Deploy Project.

Deploy Project

Follow "Deploy" section of How To Build & Deploy.

Port Project

To port a project from Core CMS Resources, read Port Project.

Upgrade Project

To upgrade the Core CMS of an existing project:

About

Customized Core CMS code and builds

Topics

Resources

Stars

5 stars

Watchers

16 watching

Forks

Contributors