webpart add to left navigation bar

How to add webpart zone -> webpart in the left navigation bar



Hi,

I want to customize the Left Navigation bar and want to put a webpart Zone - > web part.

May be in table.ms-nav or table.ms-navframe.

I had tried adding ASP PlaceHolder --> content placeholder in the master page then in the layout page I am trying to putWebPart Zone but not able to do so.

Can anyone help me out in this regard.

thanks in advance.

manas

Manas Ranjan  Tuesday, January 15, 2008 2:06 PM

Hi Jack,

I found the solution. Here as follows :

- Open your site in SharePoint Designer --> Navigate to DefaultLayout.aspx.

- Point your mouse to PlaceHolderLeftNavBar" --> Click on the Side Arrow

- Click on "Create Custom Content"

- Now your Left Navigation Bar is ready to put "Web Part Zone"

- Scroll down to allmost end of the layout page code, the last as shown of tag.

-Drag Sharepoint Webpart zone or Insert -> Sharepoint Controls -> Web part zone.

- You will see a "WebPartzone" will be added.

- the code looks like

 

Code Snippet
<WebPartPages:WebPartZone id="g_96C496D5583E4F2DACA96E034ECEFDE2" runat="server" title="Zone 1">
</WebPartPages:WebPartZone>

- Save it.

Now your master page or any page refering this master page is ready to add any kind of webparts.

Let me know if any issues you are facing.

Plz click on answer if you are getting success putting webpart zone.

you can contact me directly by mrponline@gmail.com

Thanks.

Manas Ranjan  Tuesday, February 19, 2008 10:49 AM

Hi,

I´mfacing a similar problem. I need to include in the left navigationspace a News area and some links, but I want to do it usiing webparts.The first solution I tried was include the webparts in thePlaceHolderNavLeft. However, the content remains static, and you can´tedit nothing.

Then I tried to insert a Webzone in the welcome.aspx, but it doesn´t appears in the browser.

Any help is preciated.

Thanx

Jack HV  Tuesday, January 29, 2008 7:25 PM

Hi Jack,

I found the solution. Here as follows :

- Open your site in SharePoint Designer --> Navigate to DefaultLayout.aspx.

- Point your mouse to PlaceHolderLeftNavBar" --> Click on the Side Arrow

- Click on "Create Custom Content"

- Now your Left Navigation Bar is ready to put "Web Part Zone"

- Scroll down to allmost end of the layout page code, the last as shown of tag.

-Drag Sharepoint Webpart zone or Insert -> Sharepoint Controls -> Web part zone.

- You will see a "WebPartzone" will be added.

- the code looks like

 

Code Snippet
<WebPartPages:WebPartZone id="g_96C496D5583E4F2DACA96E034ECEFDE2" runat="server" title="Zone 1">
</WebPartPages:WebPartZone>

- Save it.

Now your master page or any page refering this master page is ready to add any kind of webparts.

Let me know if any issues you are facing.

Plz click on answer if you are getting success putting webpart zone.

you can contact me directly by mrponline@gmail.com

Thanks.

Manas Ranjan  Tuesday, February 19, 2008 10:49 AM
Hi Manas,

Thanks,

wonderfull information
very useful one


Thanks and Regards,
G Vijai Kumar
SP RAJ  Friday, May 16, 2008 1:26 PM
Manas,

Letme start by saying that I am very new to Sharepoint 2007. I have a needfor a webpart zone in this area also and I figured out how to add it.My problem now is that I need it to propagate to all my team sitesbelow the main portal page. I'm sure this is easy for most but I can'tfind anything on how to do this. Any help would me greatly appreciated.Thanks in advance.

Todd

Todd.jackson  Monday, May 26, 2008 7:43 PM
I believethat Sites are built at creation time from a Site Template that will include them from now on.

Idon't believe it can propogate out to all the sites, because it'sconnection to the template only happens during that initial createevent. After that the site lives on it's own indepentant of thetemplate used to create it.

Then changes to specific sites onlyaffect that site and the changes/differences are stored in the SQLserver. If youwant them to be stored on the files you have to go intothe 12 hive and replace the OEM stuff with your newfiles on all thefront-end web servers.

Can someone who has actually done this in a production environment back me up, or call my bluff? ;)

Or.... may be not.....http://www.novolocus.com/tag/web-part-zones/

Craig Gjerdingen  Friday, December 19, 2008 8:55 PM
Hmm. Propogating over team sites - I don't think that you can do that, just as Craig says.

Youcould save your site with your modified page as a template (provided itisn't a publishing site), and then use that template for your newsites. I think that should work (I must try sometime!) but it won'taffect existing sites.

Alternatively... if your root site is asite with the publishing features enabled, and you've made this changeon a Publishing Page (as opposed to a normal team site page - the twoare quite different), then you could turn on the publishing features on all the subsites, and they use your newly modified page la yout/s. However, that means going through each site:

  • turning on the publishing features,
  • creating a new home page,
  • and changing the site to point at the new one.
It doesn't save any effort, I think.

You could, in principle, change the original files on the disk in 12 HIVE, but:

  1. Anypages which have already been 'customized' will not be changed. Inother words, if I make certain changes to a page with something likeSharePoint Designer, SharePoint will take a copy of that page and storeit in the SQL server database. When someone requests the page, they'llget that copy from the database, rather than the original file from thedisk.
  2. Any changes to the files on disk would affect all team sites farm-wide.
  3. Files would need to be changed identically and simultaneously across all front-end web servers.
  4. I'm not quite sure how this would affect any support agreement with Microsoft.
Consequently, I'd strongly recommend not doing that. Instead, make your changes manually for each site, or create a template and recreate all your team sites.

Eitherway, I highly recommend a little reading around the differences betweenpublishing pages and normal pages in SharePoint, and reading aboutcustomized vs uncustomized pages (irritatingly also calledunghosted/ghosted pages in SharePoint 2003)

EDIT: and yes, you can use the PlaceHolderLeftNavActions, but be careful what pages you do this for - it is used on some pages.

原文地址:https://www.cnblogs.com/icedog/p/1818183.html