HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsAnnouncementsAnnouncementsLinking to an HTML document with embedded imagesLinking to an HTML document with embedded images
Previous
 
Next
New Post
1/7/2008 8:40 AM
 

Hi,

I am looking to deploy a simple NEWS feature to a website. The idea is to post the headline, and summary with a read more link for the complete news story. The complete News Stories are built as HTML documents and my have embedded images and these image urls are build as relative when an admin creates them.

Sound like a perfect for the Announcements module.  If I upload the HTML and images to the portal using the file manager and link to that page via the documents module/URL Control, the images do not appear.

Is there a way to link to an html file that will support relative images, or do I need to munge the HTML document to make absolute image urls after posting the html document.

Thanks for any suggestions or tips.

p.s. I realize this is more of an issue of how the URL control ineracts with the DNN system, so if there any URL control experts out there :)


Jim www.walkspoiled.com
 
New Post
1/7/2008 8:47 AM
 

Jim,

Could you give an example of one of your relative links as well as where you are placing the files on the server? Relative links are relative links as far as I'm concerned -- so if the HTML and the images are in the same directory, and the URL to the image is "image.gif" -- things should line up properly.

take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
1/7/2008 9:44 AM
 

Ian,

The htm document is created uing simple html and the img tag has a src attribute with a link to the file such as, src='telerik.gif'

I posted a sample to my site.

Look at how the direct link to the page works, http://walkspoiled.com/portals/2/SampleNews1.htm

But when using the announcments module and the URL control, the html page is called via some autogenerated ticket and relative links do not work.

http://walkspoiled.com/newstest/tabid/204/Default.aspx is the link to the announcements page, with the 'broken' read more link

thanks for taking a look!


Jim www.walkspoiled.com
 
New Post
1/7/2008 10:54 AM
 

Jim,

Thanks for the clarification, I believe I fully understand the issue now. :) However, I'm unable to offer a solution. I do not see how one would be able to use relative paths in this context.

Maybe some of the others who post here will have some thoughts.

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
1/8/2008 7:08 AM
 

Jim,

Maybe i don't understand your usecase correcly, but why not just create a new page for each article and just put a text/html module on that page?


Erik van Ballegoij, Technology Lead and Evangelist for DotNetNuke corporation, based in Amsterdam, The Netherlands.

Everything I say on these forums is my own opinion and does not necessarily reflect that of DotNetNuke Corp.
Check out the training sessions at DotNetNuke world. Learn from the Experts!
 
Previous
 
Next
HomeHomeDotNetNuke Forg...DotNetNuke Forg...Module ForumsModule ForumsAnnouncementsAnnouncementsLinking to an HTML document with embedded imagesLinking to an HTML document with embedded images


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

DotNetNuke Scoop!

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.