Saturday, May 19, 2012 | Register | Login 
Minimize
 Module Support Forums
 
 Forum Forum metaPost Forums metaPost Forums Providers - Ven... Providers - Ven... Absolute Paths? Absolute Paths?
Previous Previous
 
Next Next
New Post
 10/14/2009 7:58 AM
Steven Webster
7 posts
No Ranking


Absolute Paths?
 
Is there a way to configure either Live Writer or the MetaPost provider for Ventrian News Articles to support absolute paths on images and files?  Right now they go in as relative paths which messed up RSS feeds that include HTML.

Currently you need to open each article and manually correct the path - which sort of defeats the value of using Live Writer in the fist place and takes a lot of time,
 
New Post
 10/15/2009 12:03 AM
Don Worthley
333 posts
8th Level Poster


Re: Absolute Paths?
 
Not currently, but this is something I need to address.  The reason for the relative URLs was to support the ability to publish to sites that both use HTTPS and regular HTTP.  It sounds like we need an option either at the module or the provider level which allows an administrator to enable absolute URLs.  Would that work? 

Thanks for your feedback and our interest in metaPost.  It's appreciated!

Don
 
New Post
 10/16/2009 7:15 AM
Steven Webster
7 posts
No Ranking


Re: Absolute Paths?
 
Don,
Yes, that would be great.  We are using RSS heavily from a News Articles installation and none of the images are working.  Is this something that could be done quickly? 
 
New Post
 11/12/2009 5:59 AM
Steven Webster
7 posts
No Ranking


Re: Absolute Paths?
 
Any more information on this?  I renders RSS feeds from News Articles that contain photos pretty useless. 
 
New Post
 11/12/2009 8:20 AM
Don Worthley
333 posts
8th Level Poster


Re: Absolute Paths?
 
This is something that I'll need to add as an option to metaPost and I haven't had the time to add it yet.  I've flagged this as an important option to add to the next release.

Until then, though, this is something you could address with a short SQL update script.  The data in the summary field in DnnForge_NewsArticles_Article and in the pagetext field in DnnForge_NewsArticles_Page could be updated with a script that looks for src="/Portals/ and replaces it with src="http://www.yourdomain.com/Portals/

You could even automate this by creating a trigger on these tables to make sure that updates and inserts have this same update statement executed. 

That would get you by until we can get an option in the product to allow admins to decide whether they want the images stored in an absolute or relative format.

Ping me again if you run into problems creating the SQL. 

Thanks,

Don
 
Previous Previous
 
Next Next
 Forum Forum metaPost Forums metaPost Forums Providers - Ven... Providers - Ven... Absolute Paths? Absolute Paths?