My main project is a multi website solution where 16 different websites is sharing the same source code.
Sometimes when we need to change specific Content Type and find a strategy on how to migrate the changes it’s good to know how much that Content Type is used, and in what way.
How do you do that?
A way to to find how much it is used is to perform a simple SQL Query:
SELECT c.pkID FROM tblContent c INNER JOIN tblContentType ct ON c.fkContentTypeID = ct.pkID WHERE ... = '...' -- various ways to identify your Content Type using pkID, ContentTypeGUID or Name
And go to Episerver Edit Mode to see how the editor has worked with each content.
But to be able to run the SQL query, you will need to have access to the production database which makes things a little more annoying. Specially if you need to use VPN connections or similar.
Therefore I have created an Admin Tool called “Find My Content” where you easily can find all content based on their Content Types.
Listing all Content Types
Here you see how many items of this Content Type is created by clicking the Name.
Details of a Content Type
In the details you can see all Content of this Content Type and which language they are created in. There is also a shortcut that will take you to Edit mode for that specific Content.
How do I get it?
Update: It is now available in the feed: https://nuget.episerver.com/en/OtherPages/Package/?packageId=Toders.FindMyContent
This was just something I threw together since I got tired connecting to my client’s environments using VPN and Remote Desktop.
I’ve got some ideas to add references between the different content, filtering on values for specific properties and so on.
Do you have any other ideas that would be nice to have in this tool? Just give me a shout in the comments below.