I unable to user : the example for test theme "test-red"
The example indicates
<theme id="test-red" _delta="define"></theme>
Using _delta="define" results in an error as I would expect as the theme already exists
""rct-login-custom-content": /theme[test-red] at line 17 could not be added : already exists in /itop_design/branding/themes/theme[test-red] at line 1861"
I tried adding _delta="define " at the variable level (merge at the theme level)
<branding><themes><themeid="test-red"_delta="merge"><variables><variableid="ibo-navigation-menu--top-part--background-color"_delta="define">#8E8F9E</variable></variables></theme></themes>
Whilstthiscompilesithasnoeffect.Changingto_delta="redefine"outputsanerror,sayingthevariabledoesn't exist - which sort of makes sense.
I am clearly missing something in my mental model of how this works.
Looking for some inspiration ;-)
Thanks
Tim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I am working through some theme customisation for itop 3.0.x
I am trying to chnage the background of "ibo-navigation-menu--top-part--background-color"
I have tried following https://www.itophub.io/wiki/page?id=3_0_0%3Acustomization%3Atheme#how_to_create_a_new_theme
I unable to user : the example for test theme "test-red"
The example indicates
<theme id="test-red" _delta="define"></theme>
""rct-login-custom-content":
/theme[test-red]
at line 17 could not be added : already exists in/itop_design/branding/themes/theme[test-red]
at line 1861"I am clearly missing something in my mental model of how this works.
Looking for some inspiration ;-)
Thanks
Tim
Hi Tim,
You should use
_delta="must_exist"
, or no_delta
at all for<theme>
as it's only used for reconcilliation in this case.However your should make sur that your module has
itop-structure
as depency so it'll ensure the theme exists before you alter it.Regards
Stephen
Awesome, thanks, that was exactly my problem.