Forums de discussion
Social Links in Liferay Theme
Stephane Franchamp, modifié il y a 9 années.
Social Links in Liferay Theme
New Member Publications: 19 Date d'inscription: 07/08/14 Publications récentes
Hi,
Any Ideas how to add Social Links for a custum them, i try to do this but it's not working :
add in portal_normal.vm:
#if ($theme_settings.display-header-social == true && $header_social)
$header_social
#end
and in the init_custom.vm :
#if ($theme_settings.display-header-social)
#set ($header_social = $journalContentUtil.getContent($group_id, "HEADER-SOCIAL", null, "$locale", $theme_display))
#end
also in liferay-plugin-package.propreties :
required-deployment-contexts=\
resources-importer-web
resources-importer-developer-mode-enabled=false
So Any Help ??
Any Ideas how to add Social Links for a custum them, i try to do this but it's not working :
add in portal_normal.vm:
#if ($theme_settings.display-header-social == true && $header_social)
$header_social
#end
and in the init_custom.vm :
#if ($theme_settings.display-header-social)
#set ($header_social = $journalContentUtil.getContent($group_id, "HEADER-SOCIAL", null, "$locale", $theme_display))
#end
also in liferay-plugin-package.propreties :
required-deployment-contexts=\
resources-importer-web
resources-importer-developer-mode-enabled=false
So Any Help ??
Ahmed bouchriha, modifié il y a 9 années.
RE: Social Links in Liferay Theme
Junior Member Publications: 55 Date d'inscription: 04/05/12 Publications récentes
Hi Stephane
Try this :
in the init_custom.vm :
in portal_normal.vm:
And you have to make sure that the article Header Social exist on your site/site template web contents with the id HEADER-SOCIAL.
If you are working on a site template and you can't find the article Header Social maybe you will need to set
on liferay-plugin-package.propreties
Try this :
in the init_custom.vm :
#if ($journalContentUtil.getContent($group_id, "HEADER-SOCIAL", null, "$locale", $theme_display) && $theme_settings.display-header-social)
#set ($header_social = $journalContentUtil.getContent($group_id, "HEADER-SOCIAL", null, "$locale", $theme_display))
#end
in portal_normal.vm:
#if ($header_social)
$header_social
#end
And you have to make sure that the article Header Social exist on your site/site template web contents with the id HEADER-SOCIAL.
If you are working on a site template and you can't find the article Header Social maybe you will need to set
resources-importer-developer-mode-enabled=true
on liferay-plugin-package.propreties