Forum

Add new property fr...
 
Notifications
Retirer tout

Add new property from plugin without overwriting class

4 Posts
2 Utilisateurs
0 Reactions
1,721 Vu
(@antoine1003)
Posts: 36
Active Member
Début du sujet
 
[#6501]

Hi guys,
I looking to create plugins to add some properties to Objects. To make it more readable and clean I decided ti split those plugins into several plugins. I looked on official plugin and they just overwrite existing model/custom object with the new one. This will properly works if plugins don't add properties to the same Object but if not, it will create conflicts. Indeed if I install one plugin then add the other one, the second one will overwrite the previous modified object. To counter that each plugin needs to take into account all other plugin's cutoms properties and plugins will have to be installed in a specific order which is pretty bad.
Have you guys encounter this problem? Did you find a way to dynamically add field to the existing cutom object?
Thanks a lot,
Antoine


 
Posté : 13 Fév PM 18:022
(@babynus)
Posts: 14952
Membre Admin
 

Yes, that are issues we manage for our own plugins, and you'll to to manage by your own for your own plugins.

But it it is only to "add properties" to items, why not use "Screen customization" plugin.


 
Posté : 14 Fév PM 17:022
(@antoine1003)
Posts: 36
Active Member
Début du sujet
 

Okay thanks. Well we don't use this plugin because it's not a free one haha
Bye,
Antoine


 
Posté : 14 Fév PM 17:022
(@babynus)
Posts: 14952
Membre Admin
 

... and sometines paying for usefull things may help the project stay alive B)


 
Posté : 14 Fév PM 17:022
Share:
Retour en haut