we have a general module which implements some widget functionality and adds basic templates to a shop, which are defined in the widget.xml
like this:
<some_module>
<name>my name</name>
<parameters>
<template translate="label description">
<visible>1</visible>
<label>Block template</label>
<description>Template to render the block</description>
<type>select</type>
<value>cms/widget/static_block/default.phtml</value>
<values>
<default translate="label">
<value>cms/widget/static_block/default.phtml</value>
<label>CMS Static Block Default Template</label>
</default>
<table_2columns translate="label">
<value>foobar/module/static_block/2columns.phtml</value>
<label>2 Columns Table</label>
</table_2columns>
</values>
<sort_order>10</sort_order>
</template>
We use that basic configuration a lot, but now want to remove one of the entires in in a child extension, which are usually just used to add more project specific templates, but should this time also remove one of the defaults. Unfortunately there's nothing like a remove tag for values entries. Also setting the value or label to an empty string does not work. :(
I'm currently looking for an event to extend the renderer and removing the values in there, but that feels quite dirty and it would be a lot nicer to do that actually in the widget.xml of the extending module. Is there a way to do that without changing the code of the parent/general module?