Foros de discusión
How to add the Sitemap in Theme
Gustavo Oliveira, modificado hace 6 años.
How to add the Sitemap in Theme
Junior Member Mensajes: 98 Fecha de incorporación: 23/09/15 Mensajes recientes
How can I add the sitemap in the Theme like this:
https://dev.liferay.com/pt/develop/tutorials/-/knowledge_base/7-0/embedding-portlets-in-themes-and-layout-templates
Tried a few classes and didnt work. Thanks
https://dev.liferay.com/pt/develop/tutorials/-/knowledge_base/7-0/embedding-portlets-in-themes-and-layout-templates
Tried a few classes and didnt work. Thanks
Massimo Bevilacqua, modificado hace 6 años.
RE: How to add the Sitemap in Theme
Regular Member Mensajes: 210 Fecha de incorporación: 27/12/16 Mensajes recientes
I don't know if you need it anymore. But what do you mean with "sitemap"?
Do you need to add a custom portlet to your theme?
Do you need to add a custom portlet to your theme?
Gustavo Oliveira, modificado hace 6 años.
RE: How to add the Sitemap in Theme
Junior Member Mensajes: 98 Fecha de incorporación: 23/09/15 Mensajes recientesMassimo Bevilacqua:
I don't know if you need it anymore. But what do you mean with "sitemap"?
Do you need to add a custom portlet to your theme?
I wanted to use the native sitemap portlet, like we use the search one.
We had to create a custom portlet for it, but do you know how to call the native sitemap on a theme?
Manish Yadav, modificado hace 6 años.
RE: How to add the Sitemap in Theme
Expert Mensajes: 493 Fecha de incorporación: 26/05/12 Mensajes recientes
Try with Below code
$theme.runtime("<portletID>")
$theme.runtime("<portletID>")
Massimo Bevilacqua, modificado hace 6 años.
RE: How to add the Sitemap in Theme
Regular Member Mensajes: 210 Fecha de incorporación: 27/12/16 Mensajes recientes
To insert your custom portlet to theme you have to add this code inside your theme template (portal_normal.ftl or where do you want):
to see your portlet name try to insert it in a page as a normal application and then from Look and feel -> Advanced styling
you will find the portlet id:
This is the one from Web content display:
Portlet ID: #portlet_com_liferay_journal_content_web_portlet_JournalContentPortlet_INSTANCE_QMvMqU3Ap7VG
in portlet name you have to insert just
portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet"
with no "portlet" and "Instance".
I followed this: embedding-portlets-in-themes
<@liferay_portlet["runtime"]
defaultPreferences="${freeMarkerPortletPreferences}"
portletProviderAction=portletProviderAction.VIEW
instanceId="c0nT5cTu2" <---- if your custom portlet has "instanceable= true" this is required
portletName="com_yourpackage_yourPortletName" />
to see your portlet name try to insert it in a page as a normal application and then from Look and feel -> Advanced styling
you will find the portlet id:
This is the one from Web content display:
Portlet ID: #portlet_com_liferay_journal_content_web_portlet_JournalContentPortlet_INSTANCE_QMvMqU3Ap7VG
in portlet name you have to insert just
portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet"
with no "portlet" and "Instance".
I followed this: embedding-portlets-in-themes
Lee Jordan, modificado hace 4 años.
RE: How to add the Sitemap in Theme
Expert Mensajes: 449 Fecha de incorporación: 26/05/15 Mensajes recientes
How would we configure the sitemap portlet to show pages that were hidden from navigation, programatically in theme? I'm trying to put a band aid on 7.2 lacking a navigation menu in the product menu.