Had anyone tried to add an own button color to the Website-Builder?
I'm struggling wiht the xpath, but i don't get it. Every time I tried, I received an ParseError: "too many values to unpack" while parsing None:13
Problem is, that there is no unique hook to set the xpath, like an id or name.
Here is some code:
<template id="cp_link_style" inherit_id="website.editor.dialog.link" name="cp Link Style">
<xpath expr="//input[@value='btn-danger']" position="after">
<li>
<label class="btn btn-copado">copado Style<input value="btn-copado" class="link-style" type="radio" name="link-style-type"/></label>
</li>
</xpath>
</template>
and here are several xpath's:
<xpath expr="//li/label/input[@value='btn-danger and @name='link-style-type']" position="after">
<xpath expr="//label[text()='${Style}']/div/div/ul" position="inside">
<xpath expr="//li/label[@class='btn btn-danger']/input[@value='danger']" position="after">
...
The file which is "xpathed" is addons/website/static/src/xml/website.editor.xml
Thanks for help in advance.