Static resources are basically representations of a file that exists on your server.  For example, you can setup a static resource to represent a PDF file on your website.  These resources can have properties such as templates applied to the page and then directly referenced in the Modx website.  The following article walks you through the steps of setting up a static resource within the Modx Dashboard.

 

Adding a Static Resource to Modx

  1. Login to the Modx Administrator Dashboard.
  2. Hover over the menu bar where it labeled SITE, then click on NEW STATIC RESOURCE when the drop-down menu appears.
  3. You will see the following for creating the STATIC RESOURCE:

    Blank form for new Static Resource

    The TITLE field is required, so click in the field and give the new STATIC RESOURCE a name.  There are many settings available for each static resource, but for the purpose of demonstrating the addition of the resource, simply fill out the fields in the STATIC RESOURCE tab (the fields shown in the right side of the screenshot above).

  4. When you get down to the last field, there is a drop-down arrow at the arrow right. Click on this arrow (the field labeled STATICRESOURCE at the bottom of the form).  It will open the following dialog:

    Dialog for uploading static resource

    Use this dialog to upload a file that will become your static resource. 
  5. After you have uploaded the file, click on the checkbox next to PUBLISHED in order to see the page.
  6. Once the static resource is set, click on the SAVE button in the top right hand corner to save your entries.

Static resources are generally exactly what the name implies, resource files that remain the same and do not change.  They can often be large text files or documents that can be referenced within the Modx website.  You can apply templates to them as you would any page in the Modx website.  One of the advantages of using a static resources is being able to display a large document without having to re-type it into the Modx website.  Here's an example of using a static resource.  In this example it is displaying a long text document within a downloaded template:

Static resource test page with template applied



 

 

 

Did you find this article helpful?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm Arnel Custodio, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. how to make new website with single account.
  2. Internal Server Error
  3. Add a note field to order page in Prestashop 1.5

Support 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.