On a slightly different note, I keep trying to convert from PortalSettings to use IPortalSettings, but there is no ActiveTab property in IPortalSettings. Is there a replacement or some other way to get that? I looked at the platform repo and it still looks like PortalSettings is still being used for a lot of cases, such as this one:
Should I just keep using PortalSettings and not bother trying to convert to using IPortalSettings?
I'm working on removing usages of obsolete code (see PR #6965), which includes converting a bunch of <code>PortalSettings</code> usages to <code>IPortalSettings</code>. There is not a way to get the current page via dependency injection, though there have been some discussions on and off about adding a way to retrieve the current context. For now, I'm replacing <code>PortalSettings.ActiveTab</code> with <code>TabController.CurrentPage</code>.
Thanks Brian!
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.