Expand my Community achievements bar.

Use shortdesc for Meta description in AEM site generation

Avatar

Level 1

By default it looks like for AEM Site generation the meta description in the header is getting added byfmdita/components/dita/head

And is looking for jcr:description.

I expected that somewhere in the publish that shortdesc would have been set in the AEM site files as the jcr:description but that does not appear to be the case.  

Should that be expected behavior?

 

The shortdesc ends up in the published node structure so we could look to pull that property instead of the default.
Any pitfalls or concerns with taking that approach?
2 Replies

Avatar

Level 6

Hi @jeffl39610155 
shortdesc is mapped to wrapper component which can remapped to a different component as per your requirement using elementmapping config located at /libs/fmdita/config/elementmapping.xml 

 

Avatar

Administrator

@jeffl39610155 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni