Hi,
Custom property is not retrieved by default when the content list is displayed. You may configure the repository, go to the Browse tab, and add the custom property to the Selected Properties, with the two checkboxes for Details View and Magazine View checked.
Then you may override the ecm.model.Item.getMimeClass() function to set the icon class per your custom property value.
Item.prototype.getMimeClass = function() {
var mimeType = this.mimetype || "";
var iconClass;
if (this.isFolder()) {
...
if (this.attributes["EmailSubject"] != null) { // <<<<<< a custom property
iconClass = "ftFolderSyncedIcon";
}
If you want to hide the custom property column on the content list, you may override ecm.widget.listView.ContentList._createGrid() function, and set your custom property as a hidden column.
require([...
"dojo/dom-construct", //
"dojo/sniff", //
"gridx/Grid", //
"ecm/widget/listView/gridModules/Async", //
"ecm/widget/ListViewPaginationBar", //
"gridx/modules/HiddenColumns", //
"ecm/widget/listView/ContentList", //
"ecm/model/Item", //
...
ContentList.prototype._createGrid = function() {
...
this.store = this._resultSet.getStore();
var modules = this._getModules();
modules.push(HiddenColumns); // add module to hide columns
this.grid = new Grid({
cacheClass: Cache,
pageSize: this._resultSet.pageSize,
store: this.store,
structure: structure,
selectRowTriggerOnCell: !has("ecmMobile") && !this._allowCheckboxes,
modules: modules,
textDir: has("text-direction"),
headerHidden: this.headerHidden,
contentList: this,
barBottom: this._isShowPaginationBar() ? [ListViewPaginationBar] : null
});
this.grid.hiddenColumns.add("8"); // <<<<<< column id of the custom property
...
Regards,
Angie
#IBMContentNavigator(ICN)#Support#SupportMigration