As designed Value parameters being exported with child styles

Russ

Well-known member
Affected version
2.1
I'm not sure this would be a bug but we use a select menu with value parameters in a couple of properties.

192235


In this example, say you:

  1. Choose a font on the child style
  2. Export it and delete it
  3. Update the main parent (left side)....
  4. Re-import the child style and it will not update the values because the value parameters are being exported and re-imported exactly how they were:
Code:
  <properties>
    <property property_name="fontname" group_name="testgroup" title="Font Family" description="" property_type="value" value_type="select" depends_on="" value_group="" display_order="0" addon_id="">
      <value_parameters>arial=Arial
comicsans=Comic Sans :)
lato=Lato
montserrat=Montserrat
mplusrounded=M Plus Rounded
nunito=Nunito</value_parameters>
      <value>"comicsans"</value>
    </property>
  </properties>

You can't edit the property on the child style, your only option is to revert the property and reselect the option. Is this as designed? Since it's inheriting from a parent style is there anyway to simply export the selected value?
 
Last edited:
Generally speaking, this is an intentional design change from XF1 to avoid some issues that specifically related to just maintaining a value for a customized style property. That caused various situations where things could break horribly due to things like moving a style or changes in data types. This approach avoids those situations, though it does theoretically create an issue like this.

I don't think we're likely to change anything here at this time. It can also be resolved by reverting the customization, which should allow it to re-pick up the parent property.
 
Back
Top Bottom