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 ...Need Help For Running a SQL QueryNeed Help For Running a SQL Query
Previous
 
Next
New Post
12/10/2009 7:36 AM
 

I have an article management system where authors write articles, attach images and publish them. However i have problem. Visitors not able to see images because their file paths are broken. I investigated issue and find the temporary solution (the manual fix)

I told the developer about the problem, but he is quite busy to reply. Since then, i would like to do something like this:

Images are stored as "FileID=x" in the ImageUrl column under Articles table. x is the assigned number for an image.

If i change the FileID to Fileid then the problem goes away... However it is a long task to, do it manually for 1000 articles (don't ask me why, because i am porting articles to new location)

Can someone help me to create a query that i can run under Host > SQL so that, FileID=x becomes Fileid=x ?

Btw - main reason for this bug is: lowercase i and uppercase I are not same characters in Turkish alphabet. So they are not match.

Warm regards.

 

 

 

 


Or-Rouge Team Or-Rouge
Personally recommend Hostgator for hosting single or multiple DotNetNuke Websites.
DotNetNuke Tips and Tutorials
Install DotNetNuke to Godaddy root
DotNetNuke Türkçe Hakkinda Hersey
 
New Post
12/10/2009 7:45 AM
 

With a friend's help i just used following:

update Articles set ImageUrl=REPLACE(ImageUrl,'FileID','Fileid');

Now  a question comes, can i automate this and have it run once, when a new article added to system?

 


Or-Rouge Team Or-Rouge
Personally recommend Hostgator for hosting single or multiple DotNetNuke Websites.
DotNetNuke Tips and Tutorials
Install DotNetNuke to Godaddy root
DotNetNuke Türkçe Hakkinda Hersey
 
New Post
12/10/2009 11:37 AM
 

 you should automate add / update stored procedures of articles module to use lowercase instead:

use LOWER(imageurl) instead


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/29/2010 11:04 AM
 

Seb would you tell me how to automate this procedure step by step?

I don't want to deal with running this query every time a new article is written :)


Or-Rouge Team Or-Rouge
Personally recommend Hostgator for hosting single or multiple DotNetNuke Websites.
DotNetNuke Tips and Tutorials
Install DotNetNuke to Godaddy root
DotNetNuke Türkçe Hakkinda Hersey
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Need Help For Running a SQL QueryNeed Help For Running a SQL Query


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