As you begin to use Modx, you will encounter many files and references to files.  Modx provides a very useful way to view and make changes to these files with the tree-style interface to the left of the backend manager.  Here’s a screenshot indicating its location:

contentstyle-mainmenu2

Modx reads the resource files that you incorporate into the website that you are creating.  These files all have a type and Modx refers to them as Content Types. Each content type is associated with a file extension that identifies the file so that it is properly rendered by Modx. For example:

samplesite.html
sampletext.txt

Each of these files are text files (you can open them and read them in a text editor), but the file extension tells Modx that the file should be displayed a certain way.  Since samplesite.html indicates it is an HTML file (Hypertext Markup Language- a web specific file), Modx is able to identify the file and display it as a web site file as opposed to a simple text file.

Here’s a list of the file types that you can typically create as a resource in Modx:

CSS, HTML, javascript, JSON, RSS, text, and XML


Adding New Content Types to Modx

There will be occasions when you receive a file that cannot be parsed by Modx.  This may require that the file type be added to the content types supported by your installation of Modx. This can be done in the Modx Backend under the System menu. 

 

  1. Login to the Modx Backend Manager.
  2. Hover over the menu bar where it says SYSTEM, then click on CONTENT TYPES when it appears in the drop-down menu.
  3. When you click on the menu item, you will typically see the list of content types that have already been added.  There's typically 7 types added by default.  Here's a screenshot what you may see:


    contenttypes-add-new



  4. Click on NEW CONTENT TYPE in order to add a content type not listed.

    contenttypes-new


    Name Name of content type
    MIME Type  Stands for Multimedia Internet Mail Extensions- identifies the information within the file
    File Extension Identifies the file type that will be rendered by Modx
    Binary Indicates if file is Binary or ASCII/text
    Description Describes the content type
  5. Click on SAVE when you have completed making your entries for the new content type.


Note on Friendly URLs

For SEO (Search Engine Optimization) requirements, an option called search-engine-friendly (SEF) URLS is often enabled.  This option affects the resource because a resource is typically listed in a normal URL.  However, in an SEF URL, the resource is replaced by an alias that is determined by the FILE EXTENSION designated for that resource type. 


Summary

Becoming familiar with content types enables you to recognize the file types that you will be using while working within Modx.  The tree-style view grants you immediate access to the files, which is a strength of the Modx interface.  Your knowledge of the content types helps you to  directly manage your files without having to find them with an FTP client or through your hosting file management interface.

 

 

 

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}