Do I have to do anything else then have a pagetype that returns null on SelectedTempate in OnTemplateResolve?
Because I have done that and that gives me the nice container icon in the pagetree but the page still shows up on the URL to sub pages. Been looking at the Alloy package as it doesn't show in the URL there but can't see any difference.
Anyone got some idea what I might be missing?
Not sure what you mean with "show up in the URL". A container page, though not accessable by a public URL, will still add it's URL segment to child pages. For instance
Or are you meaning that links to the container page are shown on the site?