Xtremax - Web Design

15 Nov, 2009

Content Migration in Dot Net Nuke (DNN)

Posted by: Mr Otter In: .NET| DNN

If you have worked on a DNN project, one of the problems are that the images entered using the HtmlModule is hardcoded with the location of the context path.  This essentially means that any changes in the context path of the web application will result in a tonne load of missing images.

Well, I did remember that MySQL had some simple string replace function to address the problem… and after some surfing on the net… wola… The solution to changing all the image path:

update dbo.dnn_HtmlText set DesktopHtml = REPLACE(Cast(DesktopHtml as NVARCHAR(4000)), ‘/aapaf/Portals/0/banners/side’ ,’/aapaf2/Portals/0/banners/side’);

Yes… I know this is not rocket science… just wanted to blog it down here to remind myself during the migration process… and hopefully.. who knows?  It might just help some frustrated soul in the future…

Bookmark and Share

 
close Reblog this comment
blog comments powered by Disqus

  • millipo12: A police officer stops a blonde for speeding and asks her very nicely if he could see her license. She replied in a huff, "I wish you guys cou
  • millipo12: A blonde keeps walking down her drive to her mail box. She keeps doing this until her neighbour asks her why she is doing that.The blo
  • millipo14: Give a man a fish and you feed him for a day.Teach him to use the Internet, and he won'tv bother you for weeks!regardsBrehm

Xtremax Web Design Portfolio

    Opera Estate Primary SchoolNational Association of Travel Agents SingaporeFUMIYAMA CORPORATIONEngineering Education PortalBOON HI-TECH SUPERSTORESingapore Tourism Board

About Xtremax

This is all about a group of hard-core web developers who go about rambling about their daily efforts to make the internet world a better and more accessible place.