Adding a new property to the media settings class

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hello Everyone,

Which would be the preferred way to add a new property to the 'MediaSettings.cs' class (at Libraries\Nop.Core\Domain\Media\)?

1) Should I make the media setting class partial (media settings class is not partial by default) and then add another partial class with the new setting?

OR

2) Should I just add the new property to the media settings class itself?

Also related to adding a new property to the media settings class, after adding a new property to the class do I just have to add the property to the 'Setting' table in the database and I am done or do I need to do something more to be able to access that property.

Thanks
11 years ago
Can anybody please clue me in? Any help would be really appreciated :)
11 years ago
What version of NOP?

What does media class refer too? some file locations would help.

I've had a quick look in 2.6 and can't find anything.
11 years ago
Thanks for replying daveb. I am using Nop 2.5 and I am referring to the class 'MediaSettings.cs' in Libraries/Nop.Core/Domain/Media . Please let me know if you need any other information.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.