Thread:Project:Support desk/How to split the layout for only content pages/reply (3)

I am not sure, if that's correct. Inside the skin file you can access the Title object with something like that:

$namespaceNumber = $this->getSkin->getTitle->getNamespace;

This will set $namespaceNumber to the number of the namespace, e.g. 0 for the main namespace. Namespace numbers are listed here. The functions, which you can use apart from getNamespace, are in includes/Title.php. You might be able to check, if it's the main page with the function isMainPage.