home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
question: need to tweak ViewDefinition.cs - need help
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JulianBuss" data-source="post: 70180" data-attributes="member: 10499"><p>Regarding my modification described here: <a href="https://forum.team-mediaportal.com/viewtopic.php?p=109266#109266" target="_blank">https://forum.team-mediaportal.com/viewtopic.php?p=109266#109266</a> </p><p></p><p>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. </p><p></p><p>I tried to add this to ViewDefinition: </p><p>[code]</p><p>[XmlElement("CommonFilter")]</p><p>public string CommonFilter</p><p>{</p><p> get { return CommonFilter; }</p><p> set { CommonFilter = value; }</p><p>}</p><p>[/code]</p><p></p><p>But I'm not sure if this is the right place. Maybe theViewDefinition defines all views, not only music views.</p><p>And when I have this code, the configuration.exe shows unexpected behaviour... </p><p></p><p>Is there someone out there pointing me to the right direction? </p><p></p><p>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.</p><p></p><p>And one question more: how can we archive that with compatibility to existing MusicView.xml files from 0.2.0 users?</p></blockquote><p></p>
[QUOTE="JulianBuss, post: 70180, member: 10499"] Regarding my modification described here: [url]https://forum.team-mediaportal.com/viewtopic.php?p=109266#109266[/url] 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; } } [/code] 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? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
question: need to tweak ViewDefinition.cs - need help
Contact us
RSS
Top
Bottom