Forum
How do I re-name a Region?
Having created a region 'Intro' following the examples in 'Getting Started' I realise (predictably) that it's not a very good name for the content I've actually got in the Region. So I'd like to re-name the Region (or copy the content to a new region with the more appropriate name). I could start again from scratch, but I'd prefer not to lose the content I've created.
What's the best way to go about this?
I've managed to find an answer, which is to change it in the MySQL Database. Probably not ideal, as there may be dependencies that are now broken. We shall see.
Have a look in the region settings or location tab - there’s an option there to change the key (name) of the region.
As Duncan says, you should use the existing interface for this.
Thank you. I am sure it's better to use the interface. However, at risk of making myself look really stupid, I have to say I've been unable to find anywhere to edit 'key'. I can edit 'Path', yes, but I don't want to change the name of the page, but of the region that the page picks up.
I've looked in both the 'Location' and 'Settings' tabs in "Edit 'filename' Page".
So instead of "perch_content('Intro')" in my page file I'll have "perch_content('Services')". Having renamed the 'Intro' region to 'Services' it will pick up the same content. I know this works because I've done it in the DB. But I'd like to do it the right way!
Please tell me how to do this. Do I start from the 'Listing Pages' or from 'Editing Page'? Or somewhere else.
I was assuming you were using Perch 3 - this was introduced then.
Region Options is the tab I was thinking of.
From the main Pages listing:
Thank you. Now of course I can't understand why I didn't find that for myself! In this instance it has already changed because of the action I took in the DB previously, but I shall know for next time. May I suggest that an item "Changing Region Name" be added to the Help tutorials?