I wished to know whether it is possible to add a web part to a homepage on a site programatically.I know that a web part can be added to a webpartpage programatically.However I would like to know how can I add a web part on a home page ofa site.
You can only add web parts to web part pages.
Is there any way that I can add a webpartpage programatically.All I want to do is to add a web part/parts of my choice(existing insharepoint) whenever I create a site.I know that I can include the web parts to appear on a home page inthe module element of a site defination.However that a again would be static.I wish to add web parts programatically to a site(web part page orhome page) every time i create a site.How can i go about it.
Certainly possible. I'm doing it on Smart Page creation. However, Idon't have the details at present. I do have this on the list of thingsto post to my blog (http://MindsharpBlogs.com/Todd), so when I get itdocumented you will see it there first.