How To Get The Url for a Content item within Sitecore

Working with content in Sitecore can be tricky at times, especially if you are working with content a long way down the content tree. Making content editors lives easier is one of the key aspects of implementing a successful web project. One of the biggest frustrations I find about the Sitecore editor is not being able to easily view the live page of an item. In today’s guide, I’m going to cover some ways to make your content lives easier by providing a one-click solution to get the live Url for a page.

Item URL Helper

The first option is to use ‘Item URL Helper’. Item URL Helper is a free Sitecore module that you can install. After installing it, when you right click on any bit of content under the ‘Content’ node, you should see a new context menu option.

sitecore_url_picker

To retrieve a URL, right click on a content item and you will be shown a dialog box containing the Url.

sitecore_url_picker_1

Just in case you don’t know. simply hit Ctrl & C to copy it. Trying to highlight the text won’t work 😛

As more of the world turns towards responsive design, different layouts for different devices seem to become less popular. However, if you have multiple devices, you should see an option for each device in the context menu selection.

You can get a hold of ‘Item URL Helper’ here.

What Does It Install?

After installing the module I had to do some work to improve a client’s deployments, so I thought it might be useful to list the files that get added to your project, after installing the module:

  • App_Config\Include\ItemUrlHelper.config
  • bin\Velir.SitecoreLibrary.dll
  • bin\Velir.SitecoreLibrary.Modules.Contextualizer.dll
  • bin\Velir.SitecoreLibrary.Modules.ItemUrlHelper.dll

Jon D Jones

Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge

More Posts

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *