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 ?
News module extra field iimages don't work in Firefox
-
- Forum Members
- Posts: 21
- Joined: Thu Mar 23, 2006 11:06 am
-
- Forum Members
- Posts: 21
- Joined: Thu Mar 23, 2006 11:06 am
Re: News module extra field iimages don't work in Firefox
line 81 of action.detail.php needs the same fix