Right now things seems ok actually in regards of loading the SearchTabController - I think I get what is expected, I get the search tabs etc because I am just extending the ecm/widget/search/SearchTabContainer from features.search.SearchTabContainerCustom which is called from SearchPane.html
So now I dont know where to continue.
What I want to do now is to do something when user click on the Search button in the Search Criteria View. Search button marked in green.
Is it possible to call the _search function of ecm/widget/search/SearchTab.js inside features.search.SearchTabContainerCustom or do I have to extend more widgets like ecm/widget/search/SearchTabController.js?
Dont mind the looking weird looking "Recent Search" section - I have removed the information in the picture.
Original Message:
Sent: Thu November 02, 2023 05:00 PM
From: Nanda Pilaka
Subject: Content Navigator 3.0.x Plugin on Content Manager OnDemand - Extending ecm.widget.search.SearchTab
hi Andreas,
Could you please share what 'complaints' you see regd Dojo and we can try to provide some comments?
thank you
------------------------------
Nanda Pilaka
IBM Content Navigator Support
Original Message:
Sent: Thu November 02, 2023 08:08 AM
From: Andreas Baaserud Hauge
Subject: Content Navigator 3.0.x Plugin on Content Manager OnDemand - Extending ecm.widget.search.SearchTab
Hi Nanda, thanks for you reply!
Yes that actually helped a bit, so what I am trying to do is to extend the function _search in ecm/widget/search/SearchTab.js
So, I have extended the ecm/widget/layout/SearchPane.js
Now I am trying to extend the ecm/widget/search/SearchTabContainer.js complaining about some missing dojo style
My SearchPaneCustom.html looks like the following
<div class="ecmCenterPane"> <span>hei på deg</span> <button>dette er min knapp</button> <div data-dojo-attach-point="borderContainer" data-dojo-type="idx.layout.BorderContainer" class="contentPane" gutters="false" design="sidebar"> <div data-dojo-type="dijit.layout.ContentPane" data-dojo-attach-point="searchSelectionPane" region="leading" class="leadingPane" splitter="true"> <div data-dojo-attach-point="searchSelectionArea" class="navContainer" data-dojo-type="dijit.layout.BorderContainer" gutters="false"> <div data-dojo-attach-point="repositorySelectorArea" class="navContainerTopBar" data-dojo-type="dijit.layout.ContentPane" region="top"></div> <div data-dojo-attach-point="searchSelectorArea" class="navContainerBottomBar" data-dojo-type="dijit.layout.ContentPane" region="center"></div> </div> </div> <div data-dojo-attach-point="searchTabContainer" data-dojo-type="features.search.SearchTabContainerCustom" region="center" class="contentPane"></div> </div></div>
Then my features/search/SearchTabContainerCustom.js looks like this
define([ "dojo/_base/declare", "ecm/widget/search/SearchTabContainer"], function(declare, SearchTabContainer) { /** * @name ecm.widget.search.SearchTabContainer * @class Provides a widget that contains and controls the search tabs that are open. * @augments ecm.widget.layout._TabContainerBase */ return declare("features.search.SearchTabContainerCustom", SearchTabContainer, { controllerWidget: "ecm.widget.search.SearchTabController" });});
It just to make sure I dont break anything before continuing.
Is this correct?
Again, my goal is to change the function _search inside ecm/widget/search/SearchTab.js
------------------------------
Andreas Baaserud Hauge
Senior Consultant
tietoevry
Original Message:
Sent: Tue October 31, 2023 12:44 PM
From: Nanda Pilaka
Subject: Content Navigator 3.0.x Plugin on Content Manager OnDemand - Extending ecm.widget.search.SearchTab
hi Andreas,
Have you checked Chapter 5, 6 in the Customizing and Extending IBM Content Navigator redbook -> https://www.redbooks.ibm.com/abstracts/sg248055.html?Open
Nanda
------------------------------
Nanda Pilaka
IBM Content Navigator Support
Original Message:
Sent: Tue October 31, 2023 06:41 AM
From: Andreas Baaserud Hauge
Subject: Content Navigator 3.0.x Plugin on Content Manager OnDemand - Extending ecm.widget.search.SearchTab
Hello beautiful people,
I am trying to extend the ecm.widget.search.SearchTab with my own SearchTabCustom widget/feature.
Currently I am unable to get it to use my custom widget, since the list of searches still pointing to ecm.widget.search.SearchTab
Perhaps I dont understand how to extend it properly - way I have done it is to create my own feature of the ecm.widget.search.SearchPane and all the corresponding javascripts / html needed to extend ecm.widget.search.SearchTab.
Anyway, I have the feeling I am extending the feature wrong - so my next question would be:
How do I extend / modify the function "_search" under ecm.widget.search.SearchTab.js
------------------------------
Andreas Baaserud Hauge
Senior Consultant
tietoevry
------------------------------