By Baber Javed on
Any Idea how can I create a subdomain for every node that gets created on my site and use a certain template on that subdomain to display the node
For Example If a node gets created with the title 'HyperStar' i want to create a subdomain http://hyperstar.mydomain.com and show the content of Hyperstar on this domain using a different template
Comments
Basically what I want to do
Basically what I want to do is have a page http://hyperstar.pakreviews.com that shows the profile on Hyperstar in a different format than the one that can be seen here http://www.pakreviews.com/shopping/hyperstar
overide the template of your content type
Hi,
If I understand well, what you need to do is to create a content type for your profile on Hypestar and another content type for what you call the "sub domain".
For this second content type, you can overide its template. Take a look here : http://drupal.org/node/17565
To theme individual content types in different ways, you need to create a file node-[type].tpl.php in your theme's folder, where [type]
Yes theming certain types is
Yes theming certain types is not a problem but what I want to achieve is create a subdomain for every node that points to a certain page