Messages In This Digest (3 Messages)
- 1a.
- Re: Snippet for Powershell to Add a Page-Viewer Web Part From: brother.gabriel
- 2a.
- How to remove ECB menu item of a sharepoint list ? From: Aneesh K K
- 2b.
- Re: How to remove ECB menu item of a sharepoint list ? From: Peter Brunone
Messages
- 1a.
-
Re: Snippet for Powershell to Add a Page-Viewer Web Part
Posted by: "brother.gabriel" brgabriel@sspx.org brother.gabriel
Tue May 8, 2012 5:43 pm (PDT)
Mr. Hahner, that is simply fabulous! I don't think I have ever had anyone blog something for me before! On the page, are you the fellow on the left or the right? As soon as I am able to try it out, I will let you know how it goes for me. Thanks a bushel for that, and God bless you!
--- In sharepointdiscussions@yahoogroups. , "sethhahner" <sethhahner@com ...> wrote:
>
> Hello Brother Gabriel!
>
> I just blogged this one for you!
> http://spcrew.com/blogs/ lists/posts/ post.aspx? id=21
>
> The main part of the code is this:
> function Add-PageViewerWebPart($SiteURL, $pageUrl, $webpartzone, $index, $title, $content)
>
> {
> $site = new-object Microsoft.SharePoint.SPSite( $SiteURL)
> $web=$site.OpenWeb()
> $webpartmanager=$web.GetLimitedW ebPartManager( $pageUrl, [System.Web. UI.WebControls. WebParts. PersonalizationS cope]::Shared)
> $webpart = new-object Microsoft.SharePoint.WebPartPages. PageViewerWebPar t
> $webpart.ChromeType = [System.Web.UI.WebControls. WebParts. PartChromeType] ::TitleOnly;
> $webpart.Title = $title
>
> $docXml = New-Object System.Xml.XmlDocument
> $contentXml = $docXml.CreateElement("ContentLink" );
> $contentXml.set_InnerText( "http://spcrew. com ");
> $docXml.AppendChild($contentXml) ;
> $webpart.ContentLink = "http://www.spcrew. com ";
> $webpartmanager.AddWebPart( $webpart, $webpartzone, $index);
>
> $web.Close()
> $site.Close()
> }
>
>
>
> ENJOY!!
>
> --- In sharepointdiscussions@yahoogroups. , "brother.gabriel" <brgabriel@> wrote:com
> >
> > Salvete! Does anyone have a powershell snippet for adding a page-viewer web part? Or does anyone know of a link where I can get the details for writing one? I am not sure where to look. Google knows too much, but not enough.
> >
>
- 2a.
-
How to remove ECB menu item of a sharepoint list ?
Posted by: "Aneesh K K" kkaneesh@rocketmail.com kkaneesh@rocketmail.com
Wed May 9, 2012 5:52 am (PDT)
How to remove ECB menu item of a sharepoint list ? I want to remove "Edit Item" and "Workflows" from a particular list view. i.e, from an aspx page only.
Thank in advance
- 2b.
-
Re: How to remove ECB menu item of a sharepoint list ?
Posted by: "Peter Brunone" peter.brunone@gmail.com peter_brunone
Wed May 9, 2012 6:48 am (PDT)
Do you want them hidden, or just disabled?
On Wed, May 9, 2012 at 3:31 AM, Aneesh K K <kkaneesh@rocketmail.com > wrote:
> How to remove ECB menu item of a sharepoint list ? I want to remove "Edit
> Item" and "Workflows" from a particular list view. i.e, from an aspx page
> only.
> Thank in advance
>
>
>
[Non-text portions of this message have been removed]
Need to Reply?
Click one of the "Reply" links to respond to a specific message in the Daily Digest.
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Individual | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
No comments:
Post a Comment