MODx Revolution supports very easy and flexible configuration of the system from admin panel.Today I am going to explain how you set up another resource as front-page rather than existing one.
Let’s start how to set up the resource you want to use as your homepage from admin panel
Steps
- Step 1: First of all , Login into the admin panel of your Modx Revolution.
- Step 2: Go to the Top Menu >> System >> System Settings
- Step 3: Search with the keyword site_start and replace the ID of the Resource you want to use as homepage here
To retrieve the values for your system settings in your Snippets or Plugins, you can use getOption function
1 2 3 | $Start_site = $modx- >getOption('site_start'); |
Make sure New ID of resource you replaced belongs to an existing Resource, and that it has been published!
That’s it.I hope this post will help you. Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.
Comments (1)