1

I have a template that has an image tag inside of it. I want to append the DNN CDF version to the image. So for example, when I increment the CDF version and skin.css?cdv=74, then the image tag inside of my 2sxc razor templates will also get pushed to src="@Content.Image?cdv=74" so any updates to the image don't get stuck with browser caching. Is this possible and how would I do it?

2 Answers2

1

In short, you can get it using the servicesFramework via the following:

serviceFramework.get("ServerSettingsPerformance", "GetPerformanceSettings")

Here is an example of how it is done within DNN.

David Poindexter
  • 488
  • 4
  • 12
0

In case you want it on the server, I believe the PortalSettings in newer Dnns (not in v7) has it https://dnndocs.com/api/DotNetNuke.Abstractions.Portals.IPortalSettings.html#DotNetNuke_Abstractions_Portals_IPortalSettings_CdfVersion

So probably @Dnn.Portal.CdfVersion

iJungleBoy
  • 5,325
  • 1
  • 9
  • 21