Topic
  • 12 replies
  • Latest Post - ‏2012-10-19T11:04:11Z by ry_wilson
SystemAdmin
SystemAdmin
1569 Posts

Pinned topic Error when removing bannerNav from Custom PageBuilder theme

‏2012-01-16T19:28:13Z |
Hi,

I'm creating a custom theme based on the PageBuilder theme now
when I attempt to remove the bannerNav the page breaks (i.e. none
of the widgets and portlets show).

Now I followed this wiki link:
http://www-10.lotus.com/ldd/portalwiki.nsf/dx/Working_with_page_builder_navigation_wp7

In the wiki said that to remove one of the widgets like bannerNav
I must also remove it from the com.ibm.pb.themes.commonInit >
navPrimingContainers, so I did the following:

In pages: theme.html, nls/theme.html, theme_en.html and theme_es.html

I commented out the bannerNav like so:
<!--<a rel="dynamic-content" href="res:/UniversalB2C/themes/html/UniversalB2C/bannerNav.jsp"></a>-->

I also removed the topNavLinks from the OnLoad handler at the top like so:

<script type="text/javascript">
dojo.addOnLoad(function(){
com.ibm.pb.themes.commonInit({
setWindowTitle:false, // title is set by the head dynamic content spot
useNavigationController: true,
useRenderingController: true,
useDNDController: true,
initLiveTextService: true,
lazyLoadModeWidgets: true,
navPrimingContainers: , /* This used to be navPrimingContainers: ,*/
customInit: com.ibm.themes.PageBuilder2.init
});
dojo.publish("com.ibm.portal.theme.portlet_ready"); // notifies ASA that portlet IDs are ready to be found in the DOM
});
</script>

Any ideas?

Thank you,
Updated on 2012-10-19T11:04:11Z at 2012-10-19T11:04:11Z by ry_wilson
  • SystemAdmin
    SystemAdmin
    1569 Posts

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-01-16T19:30:33Z  
    Sorry the brackets were removed by the forum in the previous post.

     <script type="text/javascript">
    dojo.addOnLoad(function(){
    com.ibm.pb.themes.commonInit({
    setWindowTitle:false, // title is set by the head dynamic content spot
    useNavigationController: true,
    useRenderingController: true,
    useDNDController: true,
    initLiveTextService: true,
    lazyLoadModeWidgets: true,
    navPrimingContainers: , /*This used to be navPrimingContainers: , */
    customInit: com.ibm.themes.PageBuilder2.init
    });
    dojo.publish("com.ibm.portal.theme.portlet_ready"); // notifies ASA that portlet IDs are ready to be found in the DOM
    });
    </script>
  • SystemAdmin
    SystemAdmin
    1569 Posts

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-01-16T19:34:26Z  
    Third time is the charm

    <script type="text/javascript">
    dojo.addOnLoad(function(){
    com.ibm.pb.themes.commonInit({
    setWindowTitle:false, // title is set by the head dynamic content spot
    useNavigationController: true,
    useRenderingController: true,
    useDNDController: true,
    initLiveTextService: true,
    lazyLoadModeWidgets: true,
    navPrimingContainers: ["selectionPathPrimer","topNavLinks","navTabsRoot"], /*This used to be navPrimingContainers: ["selectionPathPrimer","topNavLinks","navTabsRoot"],*/
    customInit: com.ibm.themes.PageBuilder2.init
    });
    dojo.publish("com.ibm.portal.theme.portlet_ready"); // notifies ASA that portlet IDs are ready to be found in the DOM
    });
    </script>
  • ry_wilson
    ry_wilson
    96 Posts

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-01-17T13:02:54Z  
    Third time is the charm

    <script type="text/javascript">
    dojo.addOnLoad(function(){
    com.ibm.pb.themes.commonInit({
    setWindowTitle:false, // title is set by the head dynamic content spot
    useNavigationController: true,
    useRenderingController: true,
    useDNDController: true,
    initLiveTextService: true,
    lazyLoadModeWidgets: true,
    navPrimingContainers: ["selectionPathPrimer","topNavLinks","navTabsRoot"], /*This used to be navPrimingContainers: ["selectionPathPrimer","topNavLinks","navTabsRoot"],*/
    customInit: com.ibm.themes.PageBuilder2.init
    });
    dojo.publish("com.ibm.portal.theme.portlet_ready"); // notifies ASA that portlet IDs are ready to be found in the DOM
    });
    </script>
    Juan,

    Its still not clear what element you removed from the navPrimingContainer as your last post had the following:
    navPrimingContainers: , /*This used to be navPrimingContainers: ,*/

    I assume that you meant to have the following code:
    navPrimingContainers:

    What errors are you seeing in the console? Is it:
    this.selPathi - 1 is undefined

    If so there may be an issue with the com.ibm.pb.data.NavigationPrimer. Could you please open a PMR and reference my name.

    Ryan

    SCJP & SCWCD
    IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0, v6.1, v7.0

    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM
  • SystemAdmin
    SystemAdmin
    1569 Posts

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-01-17T14:42:10Z  
    • ry_wilson
    • ‏2012-01-17T13:02:54Z
    Juan,

    Its still not clear what element you removed from the navPrimingContainer as your last post had the following:
    navPrimingContainers: , /*This used to be navPrimingContainers: ,*/

    I assume that you meant to have the following code:
    navPrimingContainers:

    What errors are you seeing in the console? Is it:
    this.selPathi - 1 is undefined

    If so there may be an issue with the com.ibm.pb.data.NavigationPrimer. Could you please open a PMR and reference my name.

    Ryan

    SCJP & SCWCD
    IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0, v6.1, v7.0

    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM
    Hi Ryan,

    I kept trying to paste what I removed, but I was having some issues with the data that was being escaped.

    I removed topNavLinks from navPrimingContainers so I was left with:
    selectionPathPrimer, navTabsRoot.

    And I'm getting the following error:
    Uncaught TypeError: Cannot read property 'children' of undefined
    dojo.declare.finalizelayerLoader.jsp:3
    com.ibm.pb.themes.commonInitlayerLoader.jsp:3
    (anonymous function):10039/wps/portal/universal/!ut/p/b1/04_Sj9CPykssy0xPLMnMz0vMAfGjzOIdXdyCTNx9DA3cfbwtDDxN3Z1CjJydjA38DYAKIpEVGPhaGhl4Bri5e5sbWhi5uxui6keVtjAzJqDfyYg4_QY4gKMBXvdbmFGmH-j_cP0ovEpMjKEK8FhRkBsaGhphkAkAWT1vjQ!!/:44
    dojo.loadeddojo.js:16
    dojo._callLoadeddojo.js:16
    dojo._modulesLoadeddojo.js:16
    dojo._loadInitdojo.js:16

    Thank you for all your help
  • ry_wilson
    ry_wilson
    96 Posts

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-01-17T14:48:13Z  
    Hi Ryan,

    I kept trying to paste what I removed, but I was having some issues with the data that was being escaped.

    I removed topNavLinks from navPrimingContainers so I was left with:
    selectionPathPrimer, navTabsRoot.

    And I'm getting the following error:
    Uncaught TypeError: Cannot read property 'children' of undefined
    dojo.declare.finalizelayerLoader.jsp:3
    com.ibm.pb.themes.commonInitlayerLoader.jsp:3
    (anonymous function):10039/wps/portal/universal/!ut/p/b1/04_Sj9CPykssy0xPLMnMz0vMAfGjzOIdXdyCTNx9DA3cfbwtDDxN3Z1CjJydjA38DYAKIpEVGPhaGhl4Bri5e5sbWhi5uxui6keVtjAzJqDfyYg4_QY4gKMBXvdbmFGmH-j_cP0ovEpMjKEK8FhRkBsaGhphkAkAWT1vjQ!!/:44
    dojo.loadeddojo.js:16
    dojo._callLoadeddojo.js:16
    dojo._modulesLoadeddojo.js:16
    dojo._loadInitdojo.js:16

    Thank you for all your help
    Based on the error your seeing it does look to be in the same area of code I mentioned above.
    Please open the PMR and we can assist you further. This may need to be corrected in the theme.

    Ryan

    SCJP & SCWCD
    IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0, v6.1, v7.0

    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM
  • SystemAdmin
    SystemAdmin
    1569 Posts

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-01-25T17:17:08Z  
    • ry_wilson
    • ‏2012-01-17T14:48:13Z
    Based on the error your seeing it does look to be in the same area of code I mentioned above.
    Please open the PMR and we can assist you further. This may need to be corrected in the theme.

    Ryan

    SCJP & SCWCD
    IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0, v6.1, v7.0

    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM
    Hi I opened a PMR, and was able to resolve this issue.

    This issue is due to a small bug in the theme at the following file:
    PortalServer\theme\wp.theme.dojo\installedApps\dojo.ear\dojo.war\v1.4.3\com\ibm\themes\PageBuilder2\theme.js

    I was told that a fix for this issue was going to be included in the CF11; which will be release sometime in February.

    This helps.
  • lex84
    lex84
    1 Post

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-01-26T12:16:43Z  
    Thank you for the information, we have exactly the same problem.
  • SystemAdmin
    SystemAdmin
    1569 Posts

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-02-20T19:05:54Z  
    • lex84
    • ‏2012-01-26T12:16:43Z
    Thank you for the information, we have exactly the same problem.
    Glad to be of help.

    I was just contacted by IBM and the fix has already been released.

    Refer to:
    http://www.ibm.com/eserver/support/fixes/fixcentral/swg/quickorder?productid=WebSphere Portal&brandid=5&fixes=7.0.0.1-WP-WCM-Combined-CFPM53918-CF011
  • SystemAdmin
    SystemAdmin
    1569 Posts

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-03-07T02:09:27Z  
    I have loaded the latest cumulative fix as in the previous post yet I have the same problem:

    Remove

    results in no portlet content being displayed on pages.

    This is on a Windows XP environment.
  • ry_wilson
    ry_wilson
    96 Posts

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-03-07T20:01:24Z  
    I have loaded the latest cumulative fix as in the previous post yet I have the same problem:

    Remove

    results in no portlet content being displayed on pages.

    This is on a Windows XP environment.
    If you have the APAR applied but are still seeing the issue could you please open a PMR for this.

    Ryan

    SCJP & SCWCD
    IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0, v6.1, v7.0

    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM
  • vikashgupta
    vikashgupta
    10 Posts

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-10-18T15:41:01Z  
    • ry_wilson
    • ‏2012-03-07T20:01:24Z
    If you have the APAR applied but are still seeing the issue could you please open a PMR for this.

    Ryan

    SCJP & SCWCD
    IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0, v6.1, v7.0

    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM
    Hi Ryan,

    Following to this post i have one question to you for my custom theme in WPS 7.0.0.2 version.

    To remove bannerNav i followed this below article
    http://www-10.lotus.com/ldd/portalwiki.nsf/dx/How_do_I_remove_bannerLinks_from_a_PageBuilder2_custom_theme
    but still i am not able to see portlets on my page because i receive one error in console like

    • error in console******
    Uncaught TypeError: Cannot read property 'data-nm-level' of null dojo.js:16
    dojo.attr dojo.js:16
    dojo.declare.parse layerLoader.jsp:3
    dojo.mixin.forEach dojo.js:16
    com.ibm.pb.themes.commonInit layerLoader.jsp:3
    (anonymous function) :10039/wps/myportal/!ut/p/b1/hY_LDoIwEEW_yHRIC6XLCikt1NZqotCNYWEMCY-N8futBJfW2U3mnNy5yKMuwTSnGSWQoRb5uX8Nj_45LHM_fnaf3dKT0EctlXWmIKD2B3PGTQlgSQC6AMCP4bD6RcUloToINWWguEy44CapGtj8CLDmW4OZvTBnbR7OdaEr5wx25Tc_Avz5_4p8NEKnGxCpaOQy3dHkRyGY2r0Btccfjg!!/dl4/d5/L2dBISEvZ0FBIS9nQSEh/:58
    dojo.loaded dojo.js:16
    dojo._callLoaded dojo.js:16
    dojo._modulesLoaded dojo.js:16
    dojo._loadInit dojo.js:16

    • error end *************

    So by debugging i found the solution i mentioned below:

    1. i removed navPrimingContainers completely or can put empty bracket without any of them selectionPathPrimer,navTabsRoot in theme_.html
    2. i removed complete div style="display:none" id="selectionPathPrimer" including code of looping from config.jsp

    Doing this i am able to view portlets and everyother thing is fine. but my concern is that Is this correct way or not?
  • ry_wilson
    ry_wilson
    96 Posts

    Re: Error when removing bannerNav from Custom PageBuilder theme

    ‏2012-10-19T11:04:11Z  
    Hi Ryan,

    Following to this post i have one question to you for my custom theme in WPS 7.0.0.2 version.

    To remove bannerNav i followed this below article
    http://www-10.lotus.com/ldd/portalwiki.nsf/dx/How_do_I_remove_bannerLinks_from_a_PageBuilder2_custom_theme
    but still i am not able to see portlets on my page because i receive one error in console like

    • error in console******
    Uncaught TypeError: Cannot read property 'data-nm-level' of null dojo.js:16
    dojo.attr dojo.js:16
    dojo.declare.parse layerLoader.jsp:3
    dojo.mixin.forEach dojo.js:16
    com.ibm.pb.themes.commonInit layerLoader.jsp:3
    (anonymous function) :10039/wps/myportal/!ut/p/b1/hY_LDoIwEEW_yHRIC6XLCikt1NZqotCNYWEMCY-N8futBJfW2U3mnNy5yKMuwTSnGSWQoRb5uX8Nj_45LHM_fnaf3dKT0EctlXWmIKD2B3PGTQlgSQC6AMCP4bD6RcUloToINWWguEy44CapGtj8CLDmW4OZvTBnbR7OdaEr5wx25Tc_Avz5_4p8NEKnGxCpaOQy3dHkRyGY2r0Btccfjg!!/dl4/d5/L2dBISEvZ0FBIS9nQSEh/:58
    dojo.loaded dojo.js:16
    dojo._callLoaded dojo.js:16
    dojo._modulesLoaded dojo.js:16
    dojo._loadInit dojo.js:16

    • error end *************

    So by debugging i found the solution i mentioned below:

    1. i removed navPrimingContainers completely or can put empty bracket without any of them selectionPathPrimer,navTabsRoot in theme_.html
    2. i removed complete div style="display:none" id="selectionPathPrimer" including code of looping from config.jsp

    Doing this i am able to view portlets and everyother thing is fine. but my concern is that Is this correct way or not?
    That should be fine since you're removing the selectionPathPrimer element from both places.

    Ryan

    SCJP & SCWCD
    IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0, v6.1, v7.0

    The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM