Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-11-24 21:58:56
- ploinkr
- Member
- From: Montreal
- Registered: 2007-12-06
- Posts: 83
Safest way to rename a section?
Hi there textpatterners,
I would like to rename a section and I’m wondering what would be the easiest/safest way to do so, since that section name will also have to be changed in all my forms, etc. Can this be done directly with MySQL? Or is it better to just do it manually?
Thanks for any advice,
Ben
Offline
Re: Safest way to rename a section?
ploinkr wrote:
I would like to rename a section and I’m wondering what would be the easiest/safest way to do so
MySQL can do it if you know you’re not going to miss any. But I prefer to do it manually just in case something goes wrong or your section name is contained within another string or something.
One thing you could try is to install smd_where_used and search for your section name. You should be able to find all the ones that need to be changed. Of course, depending on the number of links it returns might determine whether you can be bothered to do it manually or invest the time in writing a robust SQL query to do it ;-)
Last edited by Bloke (2009-11-24 22:20:23)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Safest way to rename a section?
smd_where_used can help you find where you need to change it.
Stef’s faster
Last edited by MattD (2009-11-24 22:20:34)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#4 2009-11-25 15:47:28
- ploinkr
- Member
- From: Montreal
- Registered: 2007-12-06
- Posts: 83
Re: Safest way to rename a section?
Many thanks, Stef & Matt – will try smd_where_used :-)
Offline
Pages: 1