Per Nergård
Oct 20, 2014
(1 votes)

Alternative RebuildURLSegment plugin

A while back I implemented some functionality where I did a lot of copy pasting of pages to create the page structure and only changing the page names.

Unfortunate for me it wasn’t a hidden structure so pretty URLs was important and EPiServer doesn’t automatically rewrite the URL segment name when changing a pages name.

In admin mode there’s a tool for rewriting the URL segments. But that tool starts from the root page. This was a big Enterprise solution so I only wanted to fix the segments on my particular part of a site.

So I modified the built in functionality and added it as a plugin.

It’s basically the same as the built in version but you can enter a Content Reference id to set the start page for rebuilding and all pages from that page and below will get a new URL segment.

You can find the code over at GitHub.

Oct 20, 2014


May 15, 2017 02:09 PM

Please login to comment.
Latest blogs
Translating Optimizely CMS 12 UI components

Optimizely CMS 12 have been out for a while now, but still some elements haven't been properly translated resulting in a GUI defaulting to english....

Eric Herlitz | Jan 26, 2023 | Syndicated blog

Image preview in Optimizely CMS12 all properties view

With these simple steps, you can now see an Image and its Metadata, including size and dimensions, when editing an Image property in Optimizely...

Tomas Hensrud Gulla | Jan 26, 2023 | Syndicated blog

Setting up the ImageEditor in Optimizely CMS 12

Setting up certain configurations on Opimizely CMS 12 differs quite a bit from prior versions of (Episerver CMS 11 and older). Here's a small guide...

Eric Herlitz | Jan 25, 2023 | Syndicated blog

Happy Hour Returning in February

Hi everyone! It's been a while and we're excited to resume our Happy Hour in February for more learning, sharing, connecting, relaxing, and just to...

Patrick Lam | Jan 24, 2023