It seems more likely that your custom template is missing the requiried
content placeholders.

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ishai Sagi
Sent: Friday, 13 June 2008 2:02 PM
To: [email protected]
Subject: [OzMOSS] RE: C# Help

 

What do you mean "the navigation is not right"? your code has nothing to
do with navigation - it just creates a sub site.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Chris Grist
Sent: Friday, 13 June 2008 13:27 PM
To: [email protected]
Subject: [OzMOSS] C# Help

 

Hi Guys,

 

Ive jumped in at the deep end creating some programmatic sharepoint
solutions and need a tiny bit of help J

 

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. J

 

 

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 

No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 270.3.0/1498 - Release Date:
11/06/2008 19:13 PM

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 



____________________________________________________________________________
This e-mail is intended for the use of the addressed recipient(s) only and may 
contain confidential and privileged information. If you have received this 
message in error, please delete the message and any attachments and copies 
immediately; and notify the sender by return e-mail.

Any views expressed in this message or any attachments are those of the 
individual sender and do not necessarily represent the corporate opinion of the 
Catholic Education Office (CEO), Sydney.

The CEO Privacy Policy is located at http://www.ceo.syd.catholic.edu.au
____________________________________________________________________________



------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.

Powered by mailenable.com

Reply via email to