Forums de discussion

Grouping from theme settings

thumbnail
Arthur Marinho, modifié il y a 7 années.

Grouping from theme settings

New Member Publications: 24 Date d'inscription: 13/01/15 Publications récentes
Hello everyone

I want to visually group some theme settings.
Is there any configuration at the liferay-look-and-feel.xml
that I can differentiate these settings from one another?

Pièces jointes:

thumbnail
David H Nebinger, modifié il y a 7 années.

RE: Grouping from theme settings (Réponse)

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
No, but you could do a jsp hook to alter the html to apply a grouping like this...
thumbnail
Arthur Marinho, modifié il y a 7 années.

RE: Grouping from theme settings

New Member Publications: 24 Date d'inscription: 13/01/15 Publications récentes
Thanks for the answer.
It turned out to be too time consuming to the result, but it is good to know a solution.
thumbnail
Julien Mourad, modifié il y a 7 années.

RE: Grouping from theme settings

Junior Member Publications: 78 Date d'inscription: 22/01/15 Publications récentes
Arthur Marinho:
Thanks for the answer.
It turned out to be too time consuming to the result, but it is good to know a solution.


Although there is no configuration per say, you can still add javascript in liferay-look-and-feel.xml to apply visual changes instead of doing a hook.
<setting configurable="true" type="text" key="link-youtube" value="">
	
		AUI().ready(
			'aui-node',
			function(A) {
				var node = A.one("#[@NAMESPACE@]link-youtube");
				node.ancestor().setStyle('float', 'left');
				node.ancestor().setStyle('marginRight', '25px');
			}
		);
	
</setting>
<setting configurable="true" type="text" key="link-vimeo" value=""></setting>
<setting configurable="true" type="text" key="link-rss" value="">
	
		AUI().ready(
			'aui-node',
			function(A) {
				var node = A.one("#[@NAMESPACE@]link-rss");
				node.ancestor().setStyle('float', 'left');
				node.ancestor().setStyle('marginRight', '25px');
			}
		);
	
</setting>
<setting configurable="true" type="text" key="link-twitter" value=""></setting>
thumbnail
Arthur Marinho, modifié il y a 7 années.

RE: Grouping from theme settings

New Member Publications: 24 Date d'inscription: 13/01/15 Publications récentes
Thanks Julien. This is a very flexible solution emoticon