DEVCON 2026    |    2-5 November 2026 – QEII Centre – London, UK    |    Register now! 

Blogs

Embedding a form in the theme/Header/Footer

Liferay DXP

Harpreet Saini
Harpreet Saini
Menys d'un minut de lectura

Crete your form: Login to your site and go to Control Panel -> Content and data -> Forms -> Create your form

Add code to display form Portlet  n your Theme/Header/Footer  : In your portal_normal.ftl or other corresponding file where you want to add the form place the following code:        
        <@liferay_portlet["runtime"]
              portletName="com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet"    
              defaultPreferences="${freeMarkerPortletPreferences}"
        />

and deploy your theme. 

After refreshing your page you will see the the form portlet on the page. 

Select your form using the form portlet's UI.

Navigate to other pages to confirm that your form shows at every page.

Comentaris de la pàgina

Related Assets...

No s'ha trobat cap resultat

More Blog Entries...

Ben Turner
de setembre 02, 2026
David H Nebinger
d’agost 18, 2026
David H Nebinger
d’agost 16, 2026