Back to Top

How To Reset resourceID in MODx

In this article, we will see how to reset resource ID in MODx Revolution.A resource represents a page in MODx and Each Resource has a unique resource ID.By Default, Modx uses resource ID for a link of MODx pages.

Sometimes you want to reset all resources and Its not possible from admin panel of MODx so I have reset the resources from the database.

Let’s see step by step to reset resourceID in MODx Revolution

NOTE: Make sure to take the backup of your database before executing any of the below steps because that will be useful if you fail at any step.

Step 1:

Open Database and go to the table {table_preix}_site_content table and take backup of table

Step 2:

Next,Truncate table {table_preix}_site_content by applying following query

Step 3:

Now, Insert one record into the table.It’s an insert query of home resource which will be required in table otherwise your site stops working.

NOTE: Resource IDs are strictly joined with many snippets and packages So if you reset the ID the website can stop working. so pl take a backup before executing any of the above steps

Here are the few other articles which you might like:

Import Users in MODx
Move Modx Revolution to Live Server

Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

To learn MySQL PACK_KEYS with example

Posted on 3 years ago

Bhumi

How to Create a Simple Anti-Spam Captcha

Posted on 5 years ago

Bhumi

How to use Namespace in PHP

Posted on 6 years ago

Bhumi

Getting started with Amazon Web Services

Updated 18 years ago

Bhumi

Facade implementation in Laravel

Updated 18 years ago

Bhumi

Branching and Merging in Git

Updated 1 week ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi