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 ...image pathimage path
Previous
 
Next
New Post
4/14/2009 8:54 AM
 

Maybe I need to make this really simple as other posts have yet to be answered.

There is valid reason as to why I cannot use a dnn module or custom module and or .net to include an anchor tag within a dnn page. 
Having said that:

Create a new dnn page.
Add the text/html module
Add img tag via html and point to img src in relative path within site and have it find the file.
<img src="images/myImage.png" />
I do not want to hard code the domain and cannot use other technology than straight html in this case.
 

How do i do this as the relative path does not function to the root of the site?

Even if it is a custom module, how do I code this relative path in a custom module so relative path is correct?

 
New Post
4/14/2009 9:35 AM
 

Steve,

I'm assuming you are talking about an "images" folder within a custom module that would be stored in the "DesktopModules" folder, right?  Assuming I'm correct you could put the src as src="/DesktopModules/MyModule/images/myImage.png"; if you are talking about the root images folder you could use src="/images/myImage.png"

One thing to note here is that the above work when the application is ROOT on the domain.  In other words if your DNN app is hosted directly in www.mydomain.com then the above would work.  However, if it were a virtual directory under the domain such as www.mydomain.com/myapp you would have to include /myapp before the leading slash in my example above (so src="/myapp/images/myImage.png").

Make sense?


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
4/14/2009 1:43 PM
 

Yes. Fixed and thanks.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...image pathimage path


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