Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Ajay Bansal
Configuration setting is not working in theme
28. März 2013 05:38
Antwort

Ajay Bansal

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 22. März 2013

Neue Beiträge

I defined this setting in liferay-look-and-feel.xml

<setting configurable="true" key="Visible" type="checkbox" value="true"></setting>

But I am not getting any value by writing this code in VM

$theme.getSetting("Visible")
Anonym
RE: Configuration setting is not working in theme
28. März 2013 07:13
Antwort

Anonym

I think keys have to be lowercase
Ajay Bansal
RE: Configuration setting is not working in theme
28. März 2013 22:47
Antwort

Ajay Bansal

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 22. März 2013

Neue Beiträge

Now its not working for lower case also . can any body help?
Anonym
RE: Configuration setting is not working in theme
28. März 2013 23:01
Antwort

Anonym

is the theme for 6.1+ configurable theme settings were added in 6.1
Ajay Bansal
RE: Configuration setting is not working in theme
29. März 2013 04:34
Antwort

Ajay Bansal

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 22. März 2013

Neue Beiträge

yes
Anonym
RE: Configuration setting is not working in theme
29. März 2013 08:49
Antwort

Anonym

this is what the liferay-look-and-feel.xml file should look like.


<?xml version="1.0"?>
<!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 6.1.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_6_1_0.dtd">

<look-and-feel>
<compatibility>
<version>6.1.0+</version>
</compatibility>
<theme id="theme-id" name="Theme Name">
<settings>
<setting configurable="true" key="visible" type="checkbox" value="true" />
</settings>
</theme>
</look-and-feel>


to access the value in a theme .vm file use:

$theme_display.getThemeSetting('visible')

For more info click here