Try our conversational search powered by Generative AI!

Per Nergård
Sep 23, 2015
  1552
(0 votes)

Overview of properties and AllowedTypes attribute

When testing a website one important piece for me is to validate that all content areas have the correct allowed types. Since I'm a developer I have compared the code to the specification. But reading this blog post about getting a list of allowed page types for a specific page type (post here) inspired me to make a small tool for that.

In the process I added the allowed page types code and a silly feature that just prints the count of pages per page type (from the root page, and with FPW call).

It looks like this:

 Image siteinformation1.jpg

Image siteinformation3.jpg

Image siteinformation2.jpg

Code over at GitHub. I use CodeFile instead of CodeBehind so if you wan't to add it to your solution be sure to change it. If you just wan't to test it out just drop it in the root folder.

Sep 23, 2015

Comments

Sep 25, 2015 10:53 AM

Nice, simple and powerful!

valdis
valdis Sep 28, 2015 08:06 AM

Haven't checked the code- but would be nice to see a list of all page instances and links to it for "Page types - number of pages". Have you considered to "alter" built-in content type editor pages and provide this functionality also there? :) This can be done via Asp.Net web page adapters.

Sep 28, 2015 01:38 PM

Hi Valids

Would be easy enough to add links to the pages since I do a simple FPWC call to get the count so I already have the list.

Haven't considered changing the built in content type editor pages but it's a good idea.

Please login to comment.
Latest blogs
Optimizely Forms: Safeguarding Your Data

With the rise of cyber threats and privacy concerns, safeguarding sensitive information has become a top priority for businesses across all...

K Khan | May 16, 2024

The Experimentation Process

This blog is part of the series -   Unlocking the Power of Experimentation: A Marketer's Insight. Welcome back, to another insightful journey into...

Holly Quilter | May 16, 2024

Azure AI Language – Sentiment Analysis in Optimizely CMS

In the following article, I showcase how sentiment analysis, which is part of the Azure AI Language service, can be used to detect the sentiment of...

Anil Patel | May 15, 2024 | Syndicated blog

Optimizely Data Platform Visitor Groups now supports multiple instances

The module V2.0 now supports multiple Optimizely Data Platform instances, allowing personalized content based on real-time segments and profile dat...

Andrew Markham | May 15, 2024 | Syndicated blog

IP block for edit and admin in DXP

Why IP-blocking edit/admin? A hacker can try to guess user names and passwords to gain access to your site. This risk can be minimized in a couple ...

Daniel Ovaska | May 15, 2024

Do not upgrade to EPiServer.CMS.Core 12.21.4 without reading this!

Todays update of EPiServer.CMS.Core 12.21.4 alters default sort order in an unexpected way, when you are working with muligple languages and have...

Tomas Hensrud Gulla | May 14, 2024 | Syndicated blog