How to rename all pages in sitefinity

Posted by Community Admin on 04-Aug-2018 04:13

How to rename all pages in sitefinity

All Replies

Posted by Community Admin on 03-Aug-2012 00:00

Hi,
Is there any option to change all the page urls in a site done in Sitefinity5 to lowercase. Otherwise I will have to select each and rename it.

Thanks. 

Posted by Community Admin on 03-Aug-2012 00:00

The fluent API should make this pretty easy. Just iterate through all the pages and change the name using ToLower()

I posted an example of how you can use the API to change the sitefinity page extensions on my blog, Doing something like

page.UrlName = page.UrlName.ToLower()

should work. You can execute this on a dummy .aspx webforms page codebehind.

Just be sure to:

1. Backup your site and db first (just in case!)
2. Let me know if this doesn't work so I can help further!

hope this is helpful!

This thread is closed