Our monthly Virtual Happy Hour is happening today (Fri Feb 23)!

Try our conversational search powered by Generative AI!

Anders Hattestad
Jan 31, 2011
(0 votes)

Page structure from pages tagged with a category

With some small modifications of my code of displaying a sub structure of pages on an other page we can now so all pages tagged with one category in the page tree.

This can be used for instance to display a list of front page news items, and one could point to that page to retrieve all pages tagged with that category.


The page that are returned are a stub of the orignal page, and uses the fetch data from to retrieve the other properties. The ACL is from the original page.

It seems that you can edit, but the save method doesn't do anything yet.

You add it in the episerver.config like this, and GetPagesTagedWith is either the category name or the ID.

Code Snippet
  1. <pageProvider>
  2.   <providers>
  3.     <add name="FrontPageNews" type="Itera.PageProviders.CategoryPageProvider, EPiServer.Templates.RelatePlus"
  4.            entryPoint="69" GetPagesTagedWith="FrontPageNews"/>
  5.   </providers>
  6. </pageProvider>


The code is available here

Jan 31, 2011


Please login to comment.
Latest blogs
Developer meetups in Stockholm & Helsinki

It's time for developer meetups! Next month we will be in Stockholm and Helsinki. Join us for getting the latest updates from Optimizely, be inspir...

Magnus Kjellander | Feb 23, 2024

Roll Your Own Security Headers

Proper security headers are a must for your Optimizely driven website. There are a variety of tools out there that will help with this, but when...

Ethan Schofer | Feb 21, 2024

Migrate Catalog content properties

A colleague asked me yesterday – how do we migrate properties of catalog content. There is, unfortunately, no official way to do it. There are...

Quan Mai | Feb 20, 2024 | Syndicated blog

Adjust log levels in Optimizely DXP

You may adjust the log levels for your site in Optimizely DXP yourself, but only for the Integration environment. Follow this step-by-step guide.

Tomas Hensrud Gulla | Feb 20, 2024 | Syndicated blog