Issues with custom columns in listview for AEM 6.3 on /aem/products.html/ | Community
Skip to main content
ebin_Aby
Level 2
January 30, 2018
Solved

Issues with custom columns in listview for AEM 6.3 on /aem/products.html/

  • January 30, 2018
  • 15 replies
  • 8690 views

We intend to add some more columns in list view in AEM 6.3 on /aem/products.html/etc/commerce/products page.

.Issues with custom columns in listview for AEM 6.2 The above changes work on site.html but for the  products.html no changes work. Seems like it is using different template/path which I am unable to find.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SuperGrover_MZD

So, Commerce is setup a little different from sites. I would look at overlaying some items for the list view

/libs/commerce/gui/content/collections/products/jcr:content/views/list/columns

and the tables are driven from

/libs/commerce/gui/components/admin/products/childrow/childrow.jsp

Hopefully, that gets you started. It seems like there is an issue with how commerce is setup that won't allow the table to be sortable even though it can be enabled for the list view columns.

15 replies

smacdonald2008
Level 10
January 30, 2018

Please post a screen shot so its clear,

ebin_Aby
ebin_AbyAuthor
Level 2
January 30, 2018

Url : {server}/aem/products.html/etc/commerce/products/we-retail/me/gloves/meotwicls

List view where product name/sku is missing

Card View where product name/sku is present (red circle)

We intend to add more fields in list view eg created by. AEM6.1 was giving product name by default while in AEM6.3 it is not .

Note : In catalog.html we can modify/add the column in list view but not in projects.html ({server}/mnt/overlay/dam/gui/content/idsprint/catalogs.html/content/dam/catalogs )

smacdonald2008
Level 10
January 31, 2018

Can you list all the files that you tried to change to make this value render properly.

ebin_Aby
ebin_AbyAuthor
Level 2
February 2, 2018

hey Scott, i intend to add more columns in list view and i am still unable to add it. I was able to modify site.html by following the doc Issues with custom columns in listview for AEM 6.2  but unable to add the column in projects.html

smacdonald2008
Level 10
February 2, 2018

So we know exactly what you are doing  - can you show the code are adding.

ebin_Aby
ebin_AbyAuthor
Level 2
February 2, 2018

code change for site.html is GitHub - Adobe-Marketing-Cloud/aem-sites-extension-listview-columns: Sample package for AEM 6 Sites extension. Add custo…  . We updated com.adobe.aem.sites.extension.listview.columns.content but we want to know which file to modify in order to change project.html

SuperGrover_MZDAccepted solution
Level 2
February 6, 2018

So, Commerce is setup a little different from sites. I would look at overlaying some items for the list view

/libs/commerce/gui/content/collections/products/jcr:content/views/list/columns

and the tables are driven from

/libs/commerce/gui/components/admin/products/childrow/childrow.jsp

Hopefully, that gets you started. It seems like there is an issue with how commerce is setup that won't allow the table to be sortable even though it can be enabled for the list view columns.

October 1, 2018

Hi Luke,

Can we use it for assets.html as well, I tried the approach mentioned using "pageinfoprovider" in AEM 6.3, but its not populating values against the columns. In fact not able to add <td> for newly added columns against existing row. Please suggest something regarding this.

overlayed path: /libs/dam/gui/content/commons/availablecolumns

Thanks,

Niranjan

Level 2
October 1, 2018

Sure, so assets is once again a different set of components.

Take a look at this set of nodes...
/libs/dam/gui/coral/components/admin/contentrenderer/row/*

For example,

/libs/dam/gui/coral/components/admin/contentrenderer/row/asset/asset.jsp

I added the following...

<td is="coral-table-cell" value="0"></td>   <!--Adding a placeholder column for video profile-->

    <%

            Resource propsNode = resource.getChild("jcr:content");

            String lukesScore = propsNode.getValueMap().get("lukesScore", String.class);

            if(lukesScore == null) lukesScore = "";

    %>

    <td is="coral-table-cell" value="<%= xssAPI.encodeForHTMLAttr(lukesScore)%>"><%= xssAPI.encodeForHTMLAttr(lukesScore)%></td>   <!--Adding a placeholder column for LUKE score-->

    <cq:include script = "reorder.jsp"/>

    <cq:include script = "meta.jsp"/>

I added some values to the jcr:content node on a couple assets... you could do something different.

October 3, 2018

Hi Luke,

Thanks for the reply.
Can we handle this without overlaying, by using simple clientside javascript?

Regards,

Niranjan