I am seeing a problem when installing plugins with different locations but it is being hardcoded, I want them to be more convenient by allowing admins with the highest rights to modify the location of any plugin according to their needs. My wishes on the interface page have already been configured, instead of having to go deep into the code to change the position. I'm really not good at English. I hope someone can understand my ideas and help me, thank you, I'm a young developer so I really need your help.
I am seeing a problem when installing plugins with different locations but it is being hardcoded, I want them to be more convenient by allowing admins with the highest rights to modify the location of any plugin according to their needs
Can you provide more information on what you mean by location ?
duyVN wrote:
instead of having to go deep into the code to change the position
Can you provide more information on what you mean by position?
public Task<IList<string>> GetWidgetZonesAsync() { var lstDisplay = new List<string>();
lstDisplay.Add(PublicWidgetZones.DanhMucFooter); return Task.FromResult<IList<string>>(lstDisplay); } What I mean is that instead of declaring a fixed location in the plugin, I can customize the plugin to any location that I have declared in the admin section.
I understand that I have to do what is necessary to add a certain position on the interface. But my goal is not like that. I want them to be able to switch to each other right in the admin page
Ensure that widget names remain in the table, such as the settings table, a general attribute table, or a personalized table with an option to enable/disable. Verify upon startup whether the widget zone is enabled or disabled. //Rashed
Thank you everyone for your help, I did it another way I thought of, I think it's quite difficult to capture the plugin key to determine which plugin this is and then save it to the database, giving the cx location like that , then I have to go through the extra work of manually adding locations for each plugin through the admin interface.