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.

Share:
Share on Facebook0

Share on LinkedIn0Tweet about this on TwitterShare on Google+0Buffer this pageDigg thisShare on Reddit0

Leave a Reply

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

Most Popular Posts

How to get the host name of user in PHP

Posted on 5 years ago

Bhumi

How to use WordPress Heartbeat API?

Posted on 1 year ago

Bhumi

Introduction to the Instagram API

Updated 4 weeks ago

Bhumi

How to Use the HTML5 Full-Screen API

Updated 1 month ago

Bhumi

What are Lambdas and Closures in PHP?

Updated 1 month ago

Bhumi

MySQL REGEXP Operator

Updated 1 month ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 2 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 3 years ago

Bhumi