Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

Adding more than one Custom Web Parts in a custom page layout fail to display all.

$
0
0

Anyone,

  I have a custom layout landing page with an Elements.xml file declaring all the webparts including Ontolica search. I'm stacking them all in one zone. There are 3 custom visual webparts, 1 OOTB and 3 from Ontolica.
  The custom web parts that I've created (i.e. 3) only shows one web part and fail to display the rest while the 1 OOTB and 3 Ontolica showed up good.

Any idea?
Note: If I add the custom web part manually it works.
         I export them and paste them without any changes.
         Only the first one from the top showed up while the rest does not.
         Keep moving them around and the first from the top showed up.

Part of my customlayout page.
.... 
<div id="TopLeftPanelLevel1">
                      <WebPartPages:WebPartZone id="TopRightZone" runat="server" title="TopRightZone"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
</div>
....

  and I have an Element file, where I export the webpart and paste them in here

......
   <File Path="PageLayoutsModule\MyLanding.aspx" Url="MyLanding.aspx"  Type="GhostableInLibrary">
      <Property Name="Title" Value="MyLanding Page" />
      <Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;" />
      <Property Name="PublishingAssociatedContentType" ... 

            <AllUsersWebPart  WebPartZoneID="TopRightZone" WebPartOrder="0" ID="6AC2FA8D-3FA6-47d4-9487-E9B8F80D1E69">
        <![CDATA[
        <webParts>
            <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
              <metaData>
                <type name="Co.Sp.WebParts.WebPart1, Co.Sp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5fedcf1c38ccf34c" />
                <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
              </metaData>
              <data>
                <properties>
                  <property name="AllowZoneChange" type="bool">True</property>
                  <property name="ExportMode" type="exportmode">All</property>
                  <property name="HelpUrl" type="string" />
                  <property name="Hidden" type="bool">False</property>
                  <property name="TitleUrl" type="string" />
                  <property name="Description" type="string">Web Part 1</property>
                  <property name="AllowHide" type="bool">True</property>
                  <property name="AllowMinimize" type="bool">True</property>
                  <property name="Title" type="string">Find Work Instruction</property>
                  <property name="ChromeType" type="chrometype">TitleOnly</property>
                  <property name="AllowConnect" type="bool">True</property>
                  <property name="Width" type="unit" />
                  <property name="Height" type="unit" />
                  <property name="HelpMode" type="helpmode">Navigate</property>
                  <property name="CatalogIconImageUrl" type="string" />
                  <property name="AllowEdit" type="bool">True</property>
                  <property name="TitleIconImageUrl" type="string" />
                  <property name="Direction" type="direction">NotSet</property>
                  <property name="AllowClose" type="bool">True</property>
                  <property name="ChromeState" type="chromestate">Normal</property>
                </properties>
              </data>
            </webPart>
          </webParts>
          ]]>
      </AllUsersWebPart>

     <AllUsersWebPart  WebPartZoneID="TopRightZone" WebPartOrder="1" ID="8888FA8D-3FA6-47d4-9487-E9B8F80D1E69">
        <![CDATA[
        <webParts>
            <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
              <metaData>
                <type name="Co.Sp.WebParts.WebPart2, Co.Sp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5fedcf1c38ccf34c" />
                <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
              </metaData>
              <data>
                <properties>
                  <property name="AllowZoneChange" type="bool">True</property>
                  <property name="ExportMode" type="exportmode">All</property>
                  <property name="HelpUrl" type="string" />
                  <property name="Hidden" type="bool">False</property>
                  <property name="TitleUrl" type="string" />
                  <property name="Description" type="string">Web Part 2</property>
                  <property name="AllowHide" type="bool">True</property>
                  <property name="AllowMinimize" type="bool">True</property>
                  <property name="Title" type="string">Find Work Instruction</property>
                  <property name="ChromeType" type="chrometype">TitleOnly</property>
                  <property name="AllowConnect" type="bool">True</property>
                  <property name="Width" type="unit" />
                  <property name="Height" type="unit" />
                  <property name="HelpMode" type="helpmode">Navigate</property>
                  <property name="CatalogIconImageUrl" type="string" />
                  <property name="AllowEdit" type="bool">True</property>
                  <property name="TitleIconImageUrl" type="string" />
                  <property name="Direction" type="direction">NotSet</property>
                  <property name="AllowClose" type="bool">True</property>
                  <property name="ChromeState" type="chromestate">Normal</property>
                </properties>
              </data>
            </webPart>
          </webParts>
          ]]>
      </AllUsersWebPart>

.....


M Sariman RKO Business Solutions Inc.


Viewing all articles
Browse latest Browse all 2319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>