Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Hi All,
We have a Asset metadata schema with various fields , Many of them are optional. Now we are trying to make few fields as required, and expectation was it gives an error if any those mandatory fields are is not authored for new assets . But it is showing a error message (REQUIRED METADATA IS MISSING) for the existing assets. Is there a way to not to display such error for the already existing assets ?
Thanks in Advance.
¡Resuelto! Ir a solución.
Vistas
Respuestas
Total de me gusta
Hi,
Not sure which AEM version you are talking about here, my reply assumes it is for 6.4 (though most of it will be applicable even for previous versions too).
-> expectation was it gives an error if any those mandatory fields are is not authored for new assets .
For this definition of "new assets" needs to be shape out first, to keep it simple, I am considering assets which are ingested in last 24 hours are new assets.
-> Is there a way to not to display such error for the already existing assets ?
Yes. AFAIK there is no config to achieve this but you can overlay[0], there is a method with name hasValidMetadata at line no. 353. Just update the method and add condition to return true only for assets which are ingested(jcr:created) 24 hour before.
[0]/libs/dam/gui/coral/components/admin/contentrenderer/card/common/card-banner.jsp
Vistas
Respuestas
Total de me gusta
Can you show us which property you changed.
Vistas
Respuestas
Total de me gusta
Hi,
Not sure which AEM version you are talking about here, my reply assumes it is for 6.4 (though most of it will be applicable even for previous versions too).
-> expectation was it gives an error if any those mandatory fields are is not authored for new assets .
For this definition of "new assets" needs to be shape out first, to keep it simple, I am considering assets which are ingested in last 24 hours are new assets.
-> Is there a way to not to display such error for the already existing assets ?
Yes. AFAIK there is no config to achieve this but you can overlay[0], there is a method with name hasValidMetadata at line no. 353. Just update the method and add condition to return true only for assets which are ingested(jcr:created) 24 hour before.
[0]/libs/dam/gui/coral/components/admin/contentrenderer/card/common/card-banner.jsp
Vistas
Respuestas
Total de me gusta
Thanks a lot Ashu. Overlaying card-banner.jsp worked like a charm.
you can mark as correct answer.
Vistas
Respuestas
Total de me gusta
Hi Ashu,
The approach which you have provided , works fine. But I see same error shows up if I am trying to use filters and options. hanks in Advance.
Vistas
Respuestas
Total de me gusta
The cards rendered on Search Page has different code and including CardBanner using absolute URL. Please check the component at [2] Line no. 54
You should overlay this as well, and refer to /card-banner.jsp overlaid in /apps.
Considering you are asking this for AEM 6.3, since this has been fixed in 6.4.
[2]/libs/dam/gui/coral/components/admin/contentrenderer/card/assetomnisearch/assetomnisearch.jsp#L54
Vistas
Respuestas
Total de me gusta
Thanks for reply Ashu. I forgot to mention AEM version , We are using 6.2.
Vistas
Respuestas
Total de me gusta
Fine it will be Line #52 if AEM 6.2 + latest CFP.
/libs/dam/gui/coral/components/admin/contentrenderer/card/assetomnisearch/assetomnisearch.jsp#L52
Vistas
Respuestas
Total de me gusta
I have overlayed /libs/dam/gui/coral/components/admin/contentrenderer/card/assetomnisearch/assetomnisearch. jsp and I have referred card-banner.jsp with the apps path . Still no luck. I am still seeing the error on using filters.
I am on AEM 6.2 with CFP 14.
Regards,
pradeep.
Vistas
Respuestas
Total de me gusta
Yes it may not work as I can see card's path is hardcoded to /libs at [1]. The "/libs/" should be removed from [1] to allow overlaying. You can log a product's enhancement request to get it done. Thanks
[1]/libs/granite/omnisearch/content/metadata/asset
Vistas
Respuestas
Total de me gusta
Hi ashu4pma,
thanks for replying . I will create a day care ticket and will update here based on the response from adobe.
Vistas
Respuestas
Total de me gusta
Hi ashu4pma,
Could you please respond to the following questions as well . If you can. Thanks in Advance.
Vistas
Respuestas
Total de me gusta
Replied, both questions are bit open ended, expecting more details to converge. Thanks
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas