Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Find and Replace for all modules? Default aliasFind and Replace for all modules? Default alias
Previous
 
Next
New Post
2/13/2012 1:16 PM
 

I have a site that I just launched. I have a multitude of image links that need to be changed since the site is now live.

I was using the DotNetNuke.RadEditor  for placing the images in the TextHTML module... even though I put them in as relative paths... the HTML shows the whole path...

So I need to do a massive find and replace.

My other question is about the default alias... how do I specify in DNN6 what the default alias is? I can't seem to find where to do this. Thanks

 
New Post
2/13/2012 1:24 PM
 
Check out Engage: F3 available for free from www.engagesoftware.com for doing find/replace in HTML modules.

Aliases are defined on the Admin/Site Settings page, but you need to be logged in as a Super User (host) to access the settings for portal alias.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
2/13/2012 2:47 PM
 

I tired using F3... caused my site to crash. Unless it was taking that long to actually make the change I wanted. I am thinking about having one of my database people do a find and replace in SQL Management Studio. What tables contain the content for the HTML modules?

I assume the F3 module is doing this behind the scene... I will just do this longhand through SQL.Thoughts?

For the alias.... I had it set to none and needed to do a redirect to the default alias... that's what I needed. Thanks.

 
New Post
2/14/2012 9:48 AM
 

Alright... I have come up with a script that works like a charm and takes way less time and resources if you have access to the SQL Management Studio... I do not offer any guarantee here, but this from my experience works better than the few other solutions I found online...

You may have to alter this slightly for your use, but this did the trick for me.

/*--------------------------*/
-- Find and Replace

UPDATE dbo.DNN_HtmlText
SET [Content] = CAST(REPLACE(CAST([Content] as NVarchar(MAX)),'stringtobereplaced','newstringtobeinserted') AS NText)
where [Content] like '%stringtobereplaced%'

-- Verify New Row Counts

select count(*) from dbo.DNN_HtmlText where [Content] like '%stringtobereplaced%' --should be 0

select count(*) from dbo.DNN_HtmlText where [Content] like '%newstringtobeinserted%' --should be the number of replaced items

--If rowcount is correct, commit transaction. If rowcount is off, rollback transaction

--*******************
--COMMIT TRANSACTION
--ROLLBACK TRANSACTION
--*******************
/*--------------------------*/ 

Just wanted to share this.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Find and Replace for all modules? Default aliasFind and Replace for all modules? Default alias


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out