I'm looking for a way of AUTOMATICALLY adding an item to a list on a root-site when you create a new subsite of a specific type.
Context: I'm building a "Project Portal", and there's a requirement for a dashboard type webpart that displays [ALL], [OPEN] and [CLOSED] projects. Each project has it's own subsite (built from a custom site-template) and also has a status-indicator to show the progress of the project.
The easiest thing I could think of, was a custom list on the root-site, which contained a listitem per project (subsite), with one of the columns being a lookup value to that project's status indicator. That way I could just make views, filtering on that status indicator. But how would I make this list? Is it possible without custom code?
The only way I can think of, is creating an event handler, when a new site is created, check if it's the right template being used (can you even accomplish this?) and then using code create the list item. Is this a solution? and is it the only one?