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

  • Question

  •  

    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 place holder in the master page then in the layout page I am trying to put WebPart Zone but not able to do so.

    Can anyone help me out in this regard.

    thanks in advance.

     

    manas

    Tuesday, January 15, 2008 2:06 PM

Answers

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


    Tuesday, February 19, 2008 10:49 AM

All replies


  • Hi,

    I´m facing a similar problem. I need to include in the left navigation space a News area and some links, but I want to do it usiing webparts. The first solution I tried was include the webparts in the PlaceHolderNavLeft. However, the content remains static, and you can´t edit 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
    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.


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

    Thanks,

    wonderfull information
    very useful one


    Thanks and Regards,
    G Vijai Kumar




    Friday, May 16, 2008 1:26 PM
  • Manas,

    Let me start by saying that I am very new to Sharepoint 2007.  I have a need for 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 sites below the main portal page.  I'm sure this is easy for most but I can't find anything on how to do this.  Any help would me greatly appreciated.  Thanks in advance.

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

    I don't believe it can propogate out to all the sites, because it's connection to the template only happens during that initial create event. After that the site lives on it's own indepentant of the template used to create it.

    Then changes to specific sites only affect that site and the changes/differences are stored in the SQL server. If you want them to be stored on the files you have to go into the 12 hive and replace the OEM stuff with your new files on all the front-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/
    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.

    You could save your site with your modified page as a template (provided it isn't a publishing site), and then use that template for your new sites. I think that should work (I must try sometime!) but it won't affect existing sites.

    Alternatively... if your root site is a site with the publishing features enabled, and you've made this change on a Publishing Page (as opposed to a normal team site page - the two are 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. Any pages which have already been 'customized' will not be changed. In other words, if I make certain changes to a page with something like SharePoint Designer, SharePoint will take a copy of that page and store it in the SQL server database. When someone requests the page, they'll get that copy from the database, rather than the original file from the disk.
    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.

    Either way, I highly recommend a little reading around the differences between publishing pages and normal pages in SharePoint, and reading about customized vs uncustomized pages (irritatingly also called unghosted/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.
    Tuesday, December 23, 2008 2:03 PM