Site navigation

Last Edit

Page last modified 21:55, 20 Dec 2010 by Dadeo
MediaPortal Wiki > MediaPortal 1 > Contribute > Skins > Skin Related Changes > 1.1.0 to 1.2.0 > Global Define Tags

Global Define Tags


    • Required:  No
    • Type of Change:  Feature

    Skin maintenance difficulty is compounded when the same <define> appears in multiple skin xml files.

    This new feature allows you to place <define> skin elements in the references.xml for use by all skin xml files.

    Description of Change

    Simply place <define>...</define> tags in the references.xml file and refer to these definitions in any of your skin xml files. The <define> elements typically appear before the first <control> element (not required but likely a good standard) and at the same position in the hierarchy as the <control> elements (<define> and <control> are siblings).

    This implementation does not alter the prior implementation of the <define> node. You may still place a <define> node inside the <window> node of an xml skin file. However, if you place the same <define> node in both the references.xml file as well as the skin file for a window definition then the value defined in the skin file will override the value set in the references.xml. This behavior mirrors the present behavior of the references.xml control "template" attributes being overridden by the values defined in skin window file.

    Additional Information and References

    Mantis Issue: 3017
    Related xml(s): references.xml
    Windows IDs:  
    Related Wiki Page(s): Skin Architecture
    Author: Marvman
    Date added: 2009-25-10

    XML/Code Samples

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    	<style Name="smallTitle">
    		<description>default image</description>

    Running the latest version?

    V1.15.0 - released June 2016
    Releasenews | Download
    | Requirements

    MediaPortal RSS Feeds

    windows media centerNews & Blogs
    htpcP&S: New


    Contact | Press