Re: Powershell frustration....
I think you just want to put it into single quotes? Double quotes will expand the $webApp variable, single quotes won't. e.g. New-SPWebApplication -Name '$webApp.Name' -HostHeader etc Cheers, Tony On 9/01/2012 4:55 PM, Nigel Witherdin wrote: Hey All, An easy one Im sure, but I havent been able to come up with the right google search string to fine the answer myself I am writing a script that parses an XML file and creates web app, site coll, content db etc. based on the xml. All works ok, except when people put spaces into names (like web app name or app pool name, etc. - damn users!). So what ends up in my script is something like: New-SPWebApplication -Name $webApp.Name -HostHeader . etc. I need some way of delimiting the variable $webApp.Name but still resolving it to its value (not its type, which is what happens when you simply put: -Name $webApp.Name in the command). Really frustrating as I know I have already figured this out before, but cant find the script I had it in, so am not sure what I did for it (grrr) Thanks Nigel ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
Re: Powershell frustration....
Alternatively, delimiting the value with quotes might work: e.g. New-SPWebApplication -Name ('{0}' -f $webApp.Name) -HostHeader etc On 9/01/2012 6:51 PM, Tony McGee wrote: I think you just want to put it into single quotes? Double quotes will expand the $webApp variable, single quotes won't. e.g. New-SPWebApplication -Name '$webApp.Name' -HostHeader etc Cheers, Tony On 9/01/2012 4:55 PM, Nigel Witherdin wrote: Hey All, An easy one Im sure, but I havent been able to come up with the right google search string to fine the answer myself I am writing a script that parses an XML file and creates web app, site coll, content db etc. based on the xml. All works ok, except when people put spaces into names (like web app name or app pool name, etc. - damn users!). So what ends up in my script is something like: New-SPWebApplication -Name $webApp.Name -HostHeader . etc. I need some way of delimiting the variable $webApp.Name but still resolving it to its value (not its type, which is what happens when you simply put: -Name $webApp.Name in the command). Really frustrating as I know I have already figured this out before, but cant find the script I had it in, so am not sure what I did for it (grrr) Thanks Nigel ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
Page layouts
Hey all This should hopefully be an easy one. Does anyone know what page layout is used for system pages? (i.e. View all site content) For some reason, the breadcrumbs on system pages are messed up. Incorrect: [cid:image001.png@01CCCF8E.751D1E50] Correct: [cid:image002.png@01CCCF8E.751D1E50] Stockland Notice: If this communication has been sent to you by mistake, please delete and notify us. If it has been sent to you by mistake, legal privilege is not waived or lost and you are not entitled to use it in any way. Stockland and its subsidiaries reserve the right to monitor e-mail communication through its networks. inline: image001.pnginline: image002.png___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
ECT in InfoPath
Hi Guys, Anyone had this issue. I have created a ECT, and its all working pretty well. I hooked it up to InfoPath using the External Item Picker, the search works well and i pick the record i am after, the next thing that comes up is There has been an error while processing the form no other errors anywhere. Same thing happens on List Forms that SharePoint Creates its self. Chris Grist Senior Technical Consultant Ground Level175 Fullarton RdDulwich SA 5065 Tel (08) 8304 Fax (08) 8364 2910 NOTE: This email and any files transmitted with it are confidential and may contain information intended only for the addressee(s). If you have received this communication in error, you must not copy or distribute any part of it or otherwise disclose its contents to anyone - please notify Loftus IT immediately. Loftus IT does not accept liability for any errors or omissions in the information provided herein. No representation is made that email and any files transmitted with it are virus-free - virus scanning is the responsibility of the recipient and is recommended.___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
RE: Page layouts
Hi Brian Thanks for pointing me in that direction :) I decided to try modifying the masterpage first, before redoing everything in HTML. I hid the default PlaceHolderTitleBreadCrumb and created a 2nd one called PlaceHolderTitleBreadCrumb1. I think changed the page layouts used across the site to refer to the new placeholder, and it works great. The files in the 14 hive can now overwrite whatever they want because it's hidden, and the system pages display with the current nav as it doesn't know any better. [cid:image003.png@01CCCFA8.967B2550] Nigel From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Brian Farnhill Sent: Tuesday, 10 January 2012 12:19 PM To: 'ozMOSS' Subject: RE: Page layouts They don't use a page layout as such, they are all custom ASPX pages that sit in the 14 hive, and from memory they will grab a different site map provider to the default one that is used in the page layouts in SharePoint (They use SPSiteMapProvider and I'm pretty sure that page layouts use the CurrentNavigation one). Also they use different properties on the ListSiteMapPath control to generate that cascading offset as well. You should be able to get around this in your master page by hiding the PlaceHolderBreadcrumb placeholder and just putting a constant set of HTML and controls in to the master page that you want to be used everywhere, because all the system pages just override that placeholder to do the content their way. Pretty sure there isn't ever anything else important that will get missed by hiding that place holder, but as always test your site after the change to be sure. Brian Farnhill Solutions Architect, Extelligent Design | SharePoint Server MVP phone: 0408 289 303 | twitter: @BrianFarnhillhttp://twitter.com/BrianFarnhill | blog: blog.brianfarnhill.comhttp://blog.brianfarnhill.com/ | xbox: Modern Boganhttp://live.xbox.com/en-AU/MyXbox/Profile?Gamertag=Modern%20Bogan From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Nigel Hertz Sent: Tuesday, 10 January 2012 11:53 AM To: ozMOSS Subject: Page layouts Hey all This should hopefully be an easy one. Does anyone know what page layout is used for system pages? (i.e. View all site content) For some reason, the breadcrumbs on system pages are messed up. Incorrect: [cid:image001.png@01CCCFA2.AA43E690] Correct: [cid:image002.png@01CCCFA2.AA43E690] Stockland Notice: If this communication has been sent to you by mistake, please delete and notify us. If it has been sent to you by mistake, legal privilege is not waived or lost and you are not entitled to use it in any way. Stockland and its subsidiaries reserve the right to monitor e-mail communication through its networks. inline: image001.pnginline: image002.pnginline: image003.png___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
RE: Powershell frustration....
Found that if I use: New-SPWebApplication -Name ({0} -f $webApp.Name) -HostHeader that because it converts the XmlAttribute to a string, it seems to delimits the string variable automatically (happy days!), so I dont need to delimit at all. Many thanks Date: Mon, 9 Jan 2012 20:09:10 +1000 From: tmcgee...@gmail.com To: ozmoss@ozmoss.com Subject: Re: Powershell frustration Alternatively, delimiting the value with quotes might work: e.g. New-SPWebApplication -Name ('{0}' -f $webApp.Name) -HostHeader etc On 9/01/2012 6:51 PM, Tony McGee wrote: I think you just want to put it into single quotes? Double quotes will expand the $webApp variable, single quotes won't. e.g. New-SPWebApplication -Name '$webApp.Name' -HostHeader etc Cheers, Tony On 9/01/2012 4:55 PM, Nigel Witherdin wrote: Hey All, An easy one Im sure, but I havent been able to come up with the right google search string to fine the answer myself I am writing a script that parses an XML file and creates web app, site coll, content db etc. based on the xml. All works ok, except when people put spaces into names (like web app name or app pool name, etc. - damn users!). So what ends up in my script is something like: New-SPWebApplication -Name $webApp.Name -HostHeader . etc. I need some way of delimiting the variable $webApp.Name but still resolving it to its value (not its type, which is what happens when you simply put: -Name $webApp.Name in the command). Really frustrating as I know I have already figured this out before, but cant find the script I had it in, so am not sure what I did for it (grrr) Thanks Nigel ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss ___ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss