DNN 9.11.2
Is there a setting (and if so, where is it) where you can set the default value of the "Replace Tokens" setting on HTML modules so it's alway selected when a new HTML module is added to a page?
Thanks
I'm afraid there is not. But I agree it would be a great addition!
Can you log an issue on https://github.com/dnnsof.../Dnn.Platform/issues ?
In the meantime (I did not test this, btw :-) ): ChatGPT provides the following SQL to manually update the database
UPDATE ModuleSettings SET SettingValue = 'True' WHERE SettingName = 'ReplaceTokens' AND ModuleID IN ( SELECT ModuleID FROM Modules WHERE ModuleDefID = ( SELECT ModuleDefID FROM ModuleDefinitions WHERE FriendlyName = 'HTML' ) );
Thanks!
I've logged an enhancement request.
I also checked ChatGPT and got a similar answer. It was actually very close, the only difference is SettingName = "HtmlText_ReplaceTokens". Unfortunately this only fixes those instances where the setting was already in place at some time or another. For any default HTML modules, there is no db entry so there is nothing to update.
Posted By jacton on 11/5/2024 11:00 PM [...] For any default HTML modules, there is no db entry so there is nothing to update.
[...] For any default HTML modules, there is no db entry so there is nothing to update.
You can add the record to the ModuleSettings table, you need to know the ModuleIDs.
Happy DNNing! Michael
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.