- November 14, 2004
- 136
- 2
Regarding my modification described here: https://forum.team-mediaportal.com/viewtopic.php?p=109266#109266
I have to change the definition for music views, so that I add a new property "CommonFilter" (string). This should be filled by a new input field from the MusicViews sections of the configuration.
I tried to add this to ViewDefinition:
But I'm not sure if this is the right place. Maybe theViewDefinition defines all views, not only music views.
And when I have this code, the configuration.exe shows unexpected behaviour...
Is there someone out there pointing me to the right direction?
The goal is as follows: I need to save a new string called "CommonFilter" in music views (stored in MusicViews.xml). The CommonFilter should be entered in a standard input field below the "Name" field.
And one question more: how can we archive that with compatibility to existing MusicView.xml files from 0.2.0 users?
I have to change the definition for music views, so that I add a new property "CommonFilter" (string). This should be filled by a new input field from the MusicViews sections of the configuration.
I tried to add this to ViewDefinition:
Code:
[XmlElement("CommonFilter")]
public string CommonFilter
{
get { return CommonFilter; }
set { CommonFilter = value; }
}
But I'm not sure if this is the right place. Maybe theViewDefinition defines all views, not only music views.
And when I have this code, the configuration.exe shows unexpected behaviour...
Is there someone out there pointing me to the right direction?
The goal is as follows: I need to save a new string called "CommonFilter" in music views (stored in MusicViews.xml). The CommonFilter should be entered in a standard input field below the "Name" field.
And one question more: how can we archive that with compatibility to existing MusicView.xml files from 0.2.0 users?