Page 1 of 1

News module extra field iimages don't work in Firefox

Posted: Thu Mar 13, 2008 9:23 am
by tractorboy
Extra fields of type "file" let you upload images & add them to a story.  The images appear ok in IE, but not in FF, because the URL uses "\" not "/" in the {$entry->file_location} tag.

To fix this change line 267 of News\Action.default.php :
//Old : $onerow->file_location = cms_join_path('uploads','news','id'.$row['news_id']);
$onerow->file_location = 'uploads/news/id'.$row['news_id'];

Are there any potential side-effects of this change ?

Re: News module extra field iimages don't work in Firefox

Posted: Thu Mar 13, 2008 3:08 pm
by tractorboy
line 81 of action.detail.php needs the same fix