How To Truly Delete Pages in MODx如何真正刪除的頁面在modx
MODx is an excellent AJAX enabled content management system modx是一個很好的AJAX技術,使內容管理系統 , which is leagues ahead of Joomla / Mambo. ,這是聯賽提前joomla /曼波。 One of the features of MODx is that pages aren’t fully deleted.特點之一是modx網頁不會完全刪除。 They are marked as deleted (displayed as strike-through items ) and they are not displayed on the web.他們被標記為刪除(顯示為嚴打通過的項目 )和他們是不會顯示在網站上。 However they still remain in the database.不過,他們仍然在數據庫中。 This is a great feature to prevent accidental deletion.這是一個偉大的功能以防止意外刪除。 However sometimes you really need to delete pages to reduce the clutter and prevent conflicting aliases.不過,有時你真的需要刪除的頁面,以減少雜波和防止衝突的別名。 Here is how you can truly (and irrevocably) delete pages from the database.這裡是你如何能夠真正(和不可逆轉地)刪除的頁面從數據庫中。
You will need to login to mysql using mysql command line or phpMyAdmin.您將需要登錄到MySQL中使用MySQL的命令行或phpmyadmin 。
Steps:步驟:
1. 1 。 Find the id of the page you want to delete (provided within bracket).找到的ID網頁您要刪除的(括弧內為所提供的) 。
2. 2 。 Execute the query:執行查詢:
delete from modx_site_content where id = your_id 刪除從modx_site_content那裡的ID = your_id
Note: You can also delete using the page title:注意:您也可以刪除使用網頁標題:
delete from modx_site_content where pageTitle = ‘ page_title ‘; 刪除從modx_site_content那裡pagetitle = ' page_title ' ;
Disclaimer: Use the above at your own risk.免責聲明:使用上述需要您自擔風險。 You may lose data if you are careless.你可能會丟失數據如果您是不小心。
Jay (see comment below) gave a much better and simpler solution.傑伊(見下文)了一個更美好和更簡單的解決辦法。 In his words - “It may not be obvious from the manager but you can easily purge deleted documents (permanently) from the tree by clicking on the Garbage Can icon in the manager.”在他的話-“它可能並不明顯,從經理,但您可以輕鬆地清除刪除的文件(永久)由樹按一下垃圾桶的圖示,在經理人” 。
Filed under提起下 CMS Software CMS軟件 , , Enterprise Software企業軟件 , , Headline News頭條新聞 , , How To如何 , , Joomla joomla , , Mambo曼波 , , Open Source Software開放源碼軟件 , , Web網頁 , , Web 2.0 Web 2.0的 | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article電子郵件此文章
You may also like to read您也可以想讀 |





December 17th, 2007 at 7:42 am 2007年12月17日在上午07時42分
Glad to see that you are enjoying MODx.很高興看到您所享有的modx 。 I have deployed dozens of sites using MODx since 0.9.2.我已部署幾十個網站使用modx自0.9.2 。 It may not be obvious from the manager but you can easily purge deleted documents (permanently) from the tree by clicking on the Garbage Can icon in the manager.它可能並不明顯,從經理,但您可以輕鬆地清除刪除的文件(永久)由樹按一下垃圾桶的圖示,在經理人。 This is the purge command and all deleted documents will no longer be in the tree and cannot be undone.這是整肅的指揮和所有已刪除的文件將不再在樹狀結構,並不能撤消。 Alot easier than using phpMyAdmin.容易得多,比使用phpmyadmin 。
Hope this helps,希望這會有所幫助,
Jay傑伊
December 18th, 2007 at 10:31 am 2007年12月18日在上午10時31分
Thanks for the simpler solution.感謝為簡單的解決辦法。