Hi Guys,
Ive jumped in at the deep end creating some programmatic sharepoint solutions
and need a tiny bit of help :)
I am creating a sub-site using the following code:
SPSite site = new SPSite("http://chris-laptop/sites/home");//http://MySite:12345
SPWeb web = site.OpenWeb();//makes connection and opens the site to
allow modification
web.AllowUnsafeUpdates = true;//Security setting that allows you to
add to / modify the site
SPWebCollection subsite = web.Webs;//creates context in the site to
create a new subsite
SPWeb newSubWeb = subsite.Add("CRM/" + OrgName,//subsite URL
OrgName,//subsite Title
"",//subsite Description
1033,//subsite Language code
"crm-template.stp",//subsite Template
false,//true to create with unique permissions, false to inherit
parent permissions
false);//true converts existing folder with same name to a SP
site, false throws exception if site name exists.
However the navigation is not right, I have done some digging online and found
an example but I couldn't seem to get it to apply to my code, I was wondering
if someone can help fix up the navigation with the code required for whats
above?
i.e. the breadcrumbs are absent, and so is the top navigation bar for the
portal.
Any help would be appreciated. :)
Chris Grist
Network Support Officer
education.au Limited
Level 1, 182 Fullarton Road
DULWICH SA 5065
p +61 8 83343291
f +61 8 83343211
e [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
w www.educationau.edu.au<http://www.educationau.edu.au/>
________________________________
IMPORTANT: This e-mail, including any attachments, may contain private or
confidential information. If you think you may not be the intended recipient,
or if you have received this e-mail in error, please contact the sender
immediately and delete all copies of this e-mail. If you are not the intended
recipient, you must not reproduce any part of this e-mail or disclose its
contents to any other party. This email represents the views of the individual
sender, which do not necessarily reflect those of education.au limited except
where the sender expressly states otherwise. It is your responsibility to scan
this email and any files transmitted with it for viruses or any other defects.
education.au limited will not be liable for any loss, damage or consequence
caused directly or indirectly by this email.
------------------------------------------------------------------- OzMOSS.com
- to unsubscribe from this list, send a message back to the list with
'unsubscribe' as the subject.
Powered by mailenable.com