I am referring to this section of the docs:
1) In order to embed an asset publisher, this code is necessary:
Could you please confirm this is the right way and, if it is, add it to the documentation? It is a way developers would not normally find immediately. You may find more background info at these links:
2) To add a Site Navigation Menu, I instead found this way:
Could you please confirm if this is correct? Even for this case, developers may not always quickly figure out the right class to add.
I understand that the question: How to find the correct class name for the portlet I want to embed in my .tpl layout template ? is partly covered here and here, however, please, if you notice any improvement possibilities, please proceed with updating the documentation.
As an extra, it would be great if the docs could have a list of the right class to use for all the portlets Liferay DXP ships out of the box.
Thanks and best regards,