Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback. 

Per Nergård (MVP)
Sep 23, 2015
  1687
(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
Be careful with your (order) notes

This happened a quite ago but only now I have had time to write about it. Once upon a time, I was asked to look into a customer database (in a big...

Quan Mai | Feb 5, 2025 | Syndicated blog

Imagevault download picker

This open source extension enables you to download images as ImageData with ContentReference from the ImageVault picker. It serves as an alternativ...

Luc Gosso (MVP) | Feb 4, 2025 | Syndicated blog

Optimizely SaaS vs PaaS: A Comparison from Client and Developer Perspectives

Optimizely, one of the leading digital experience platform. Offering both Software-as-a-Service (SaaS) and Platform-as-a-Service (PaaS) solutions....

Praful Jangid | Feb 3, 2025

Returning to Optimizely After Many Years

Returning to Optimizely After Many Years: A Journey Through Its New Features After several years away from Optimizely’s Content Management … More

Jose Neto | Feb 2, 2025 | Syndicated blog

Aspiring Optimizely

Adding .NET Aspire application host to your Optimizely project (even if it’s just for local development) is really a time-saver when it comes to...

valdis | Feb 2, 2025 | Syndicated blog

My Journey to Optimizely Certification: Study Tips, AI Tools, and Exam Strategies

How I Prepared for My Optimizely Certification Exam Hello everyone, I recently took the Optimizely Certification Developer Exam and became certifie...

calimat | Jan 31, 2025