Per Nergård
Oct 20, 2014
  2288
(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

Comments

May 15, 2017 02:09 PM

Please login to comment.
Latest blogs
Optimizely SaaS CMS Content Types

In Optimizely CMS, there are many base content types you can define through code, such as component, image, video, folder, and sections. But today,...

Patrick Lam | Jul 29, 2024

Opti ID overview

Opti ID allows you to log in once and switch between Optimizely products using Okta, Entra ID, or a local account. You can also manage all your use...

K Khan | Jul 26, 2024

Getting Started with Optimizely SaaS using Next.js Starter App - Extend a component - Part 3

This is the final part of our Optimizely SaaS CMS proof-of-concept (POC) blog series. In this post, we'll dive into extending a component within th...

Raghavendra Murthy | Jul 23, 2024 | Syndicated blog

Optimizely Graph – Faceting with Geta Categories

Overview As Optimizely Graph (and Content Cloud SaaS) makes its global debut, it is known that there are going to be some bugs and quirks. One of t...

Eric Markson | Jul 22, 2024 | Syndicated blog