Dynamic texts for labels in a custom panel

I have a custom panel where I would like the possibility for the user to change the label texts and not be limited to the text set in the .resx file.

I have tried to use the AsWebsiteText but since the page is not a webpage i guess it can not be used. Are there any other options?

Litium version: 8.17.4

Perhaps save it as settings in SettingService - and use the panel GetSettingsAsync() to load it?

public override async Task<SettingsModel> GetSettingsAsync()
    {
        return new SettingsModel();
    }
 
    public class SettingsModel : IPanelSettings
    {
        public string Title { get; set; } = "Sample Title";
    }

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.