Reply to thread

[CODE=XML]defines in skin xml file (myvideo.xml):

  <label>#test_textstring_xml</label>  | <!-- | does not work | show: #test_textstring_xml -->

  <label>#test_textstring_property_xml</label>  |  <!-- | work | -->

  <label>#test_textstring_propertyEvaluated_xml</label> | <!-- | work | -->

  <label>#test_textplot_xml</label>  | <!--  | does not work | show: #test_textplot_xml -->

  <label>#test_textplot_property_xml</label>  | <!-- | does not work | show: Plot with property="true" - #plot -->

  <label>#test_textplot_propertyEvaluated_xml</label>  |  <!-- | does not work | show: Plot with property="true" and evaluateNow="true" - #plot -->


defines in references xml file (references.xml):

   <label>#test_textstring_ref</label> | <!-- | work | -->

   <label>#test_textstring_property_ref</label> | <!-- | work | -->


colors definitions in skin xml file (myvideo.xml):

   <textcolor>#test_textcolor_property_xml</textcolor> | <!-- | does not work | show: nothing/blank -->

   <textcolor>#test_textcolor_property_xml</textcolor> | <!-- | does not work | show: nothing/blank -->


colors definitions in references xml file (references.xml) :

   <textcolor>#test_textcolor_ref</textcolor> --> | <!-- | work | show: correct color -->

   <textcolor>#test_textcolor_property_ref</textcolor> | <!-- | work | show: correct color -->[/CODE]


Hi :)


Based on your test and what i have try to debug, it seems that :

I take the case of : <label>#test_textstring_xml</label>  | <!-- | does not work | show: #test_textstring_xml -->


The define is done in myvideo.xml (without the 'property=true' so without <define property="true"> it's (<define>#test_textstring_xml:This is text in define</define>)

And we try to get this value from myvideo.views.default.xml and it doesn't work because MP didn't add this proprety + value in sort on cache.


Now i think that if i add <define property="true"> it will work.

But i also think that it will work if i move that line (<define>#test_textstring_xml:This is text in define</define>) to myvideo.views.default.xml.


To summarize :

If we want to key a value from a property from a different file, we need to add <define property="true"> or need to put the define in the current xml aka myvideo.views.default.xml in this case.


Could you confirm this ?


Edit : if we add the define in reference, it seems here that <define property="true">#...... is not a must, it can be <define>#......


Top Bottom