留言板
Get theme-setting from another page
Marco Endres,修改在10 年前。
Get theme-setting from another page
Regular Member 帖子: 112 加入日期: 12-8-22 最近的帖子
Hello,
Is it possible to take the value from a setting from another page / the parent page in the .vm files? ( $theme.getSetting("..") )
The problem is, i take for some pages a special look and the most settings are the same.
thanks
Marco
Is it possible to take the value from a setting from another page / the parent page in the .vm files? ( $theme.getSetting("..") )
The problem is, i take for some pages a special look and the most settings are the same.
thanks
Marco
Jaynil A Bagdai,修改在10 年前。
RE: Get theme-setting from another page
Regular Member 帖子: 119 加入日期: 12-3-3 最近的帖子
Hello Marco,
Can you please elaborate what exactly you are trying to achieve?
--
Jaynil
Can you please elaborate what exactly you are trying to achieve?
--
Jaynil
Marco Endres,修改在10 年前。
RE: Get theme-setting from another page
Regular Member 帖子: 112 加入日期: 12-8-22 最近的帖子
Hallo Jaynil,
Thank you fpr the fast reply. I try to copy the settings from another page, but not all only a few.
example:
parent page
-child page
settings from parent page:
text-color: #FF0000
link-color: #0000FF
settings from child page:
text-color: [inherit from parent page]
link-color: #aaaaaa
How can i inherit the value from setting text-color in the childpage from the parent page? The problem is i can't take the same Look an Feel, because the link-color is different.
i mean this settings:
thanks for your help
Marco
Thank you fpr the fast reply. I try to copy the settings from another page, but not all only a few.
example:
parent page
-child page
settings from parent page:
text-color: #FF0000
link-color: #0000FF
settings from child page:
text-color: [inherit from parent page]
link-color: #aaaaaa
How can i inherit the value from setting text-color in the childpage from the parent page? The problem is i can't take the same Look an Feel, because the link-color is different.
i mean this settings:
thanks for your help
Marco
Ryan Schuhler,修改在10 年前。
RE: Get theme-setting from another page
Junior Member 帖子: 77 加入日期: 12-7-6 最近的帖子
Hey Marco,
Im pretty sure there is currently no way to inherit or copy theme settings. The closest thing you can get to it is setting a default value. For example:
<setting configurable="true" key="text-color" value="#FF0000" />
<setting configurable="true" key="link-color" value="#0000FF" />
This will give you the default value for every page, which you can change if you would like. So for your example in the previous post. The default text-color and link-color could be set in the theme. So the parent page would not need any customization and on the child page you could change the theme setting to be #aaaaaa.
Hopefully that makes sense. I know its not the full solution you are looking for, but currently I think its the closest thing possible.
-ryan
Im pretty sure there is currently no way to inherit or copy theme settings. The closest thing you can get to it is setting a default value. For example:
<setting configurable="true" key="text-color" value="#FF0000" />
<setting configurable="true" key="link-color" value="#0000FF" />
This will give you the default value for every page, which you can change if you would like. So for your example in the previous post. The default text-color and link-color could be set in the theme. So the parent page would not need any customization and on the child page you could change the theme setting to be #aaaaaa.
Hopefully that makes sense. I know its not the full solution you are looking for, but currently I think its the closest thing possible.
-ryan
Marco Endres,修改在10 年前。
RE: Get theme-setting from another page
Regular Member 帖子: 112 加入日期: 12-8-22 最近的帖子
Hello Ryan
Thank you for your help. :-)
But you are right. That isn't the full solution, that i need :-/
If somebody find a better way, tell me that, please.
Thanks
Marco
Thank you for your help. :-)
But you are right. That isn't the full solution, that i need :-/
If somebody find a better way, tell me that, please.
Thanks
Marco