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?

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