changing the default url of migrated pages
Hi,
I want to change the default url of the migrated pages. I would like to make them extension less. How do I do that?
Thanks,
Annie
annie,
the extension is stored in the PageNode under the Extensions property, You should be able to remove it with something like this:
using (var api = App.WorkWith()) var pages = api.Pages().LocatedIn(PageLocation.Frontend).ThatArePublished() .ForEach(page => page.Extension = null; ).SaveChanges(); Thanks SelArom, I will try that