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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Help - DNN Text/HTMLModule is modifying my img tags!Help - DNN Text/HTMLModule is modifying my img tags!
Previous
 
Next
New Post
4/28/2010 1:40 AM
 

Hi,

I have a serious problem: Whatever I do, the Text/HTML module is changing the src attributes of my img tags which I enter.

I need relative links and I do not realy need to have FCKEditor display the images while editing. The problem is that if I enter something like

<img src="pic.png" ...>

This automatically gets changed to:

<img src="/Portals/0/pic.png" ...>    << Please note the root link

At first I thought that it was the FCKEditor that modifies my img tag upon saving. Though, I found out, that the tag is even replaced when I switch to "simple text box" and select "RAW" as rendering mode.

In my eyes this is a bug, because at least when I use a simple string with a rendering mode of "RAW" the content I entered MUST remain unchanged by DNN.

I tried to find out, where the img tags are being changed by DNN, but with no success so far.

How can I stop this weird behaviour?

 

Thanks,

Matthias

 

 
New Post
4/28/2010 1:52 AM
 
Matthias, I do not agree. Can you please give me a single example where a src="pic.png" would make sense?
 
New Post
4/29/2010 12:05 AM
 

Stefan,

the reason is simple:

On my DEV site, DNN ist hosted at

http://localhost/Dotnetnuke_X

There for all img tags are modified to src='/Dotnetnuke/Portals/0/images/pic.png'

When deploying the site, I would have to modify all HTML content. This is unacceptable. Or imagine different portal aliases which contain subfolders.

Everything in DotNetNuke perfectly works with relative paths, so I think it is very stupid that the HTML module does not conform with this policy!

Matthias

 
New Post
4/29/2010 2:12 AM
 
Matthias Moetje wrote:

Everything in DotNetNuke perfectly works with relative paths, ...

Does it?

IHow should relative paths work if any kind of friendly urls are enabled? Relative to .../tabid/123/default.aspx? 

Setup your local environment to http://localhost, or even http://projectname.IIS7 allows multiple sites, no need to got in a sub folder..

 
New Post
4/29/2010 3:02 AM
 
It is a known limitation of DNN, to store paths to images relatively to the domain, and not relatively to the portal root, but any other solution would require a search and replace on every edit AND display. This affects all links in richtext content, which is not using linkclick.aspx.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Help - DNN Text/HTMLModule is modifying my img tags!Help - DNN Text/HTMLModule is modifying my img tags!


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