Closed (won't fix)
Project:
IMCE
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2009 at 13:15 UTC
Updated:
4 Sep 2011 at 13:57 UTC
Jump to comment: Most recent
Comments
Comment #1
Leeteq commentedComment #2
singularoI like this idea, but I tried the patches, and the preview stopped working etc with the imce+wysiwyg+imce_wysiwyg combo, so I can't use it.
Just FYI
Comment #3
sinasquax commentedI use the same combo and it works, the patches doesn't alters the preview normally, did you test on the 6.x-1.2 version ?
I don't know why #1 has changed the number of version ?!
Comment #4
ufku commentedPathologic exists in order to fix broken URLs.
This patch breaks IMCE URLs in order to make Pathologic fix them again. Really strange!
Comment #5
lejonsson commentedSince ukfu insist on not adopting this feature which many of us requests for good reasons, will anyone maintain this patch? Does it still work on 6.x-1.3?
Comment #6
Anonymous (not verified) commentedHi,
After googled about one day about this horrible relative path problem, and still not understand why ufku - your work for imce is just great anyway - doesn't want to work with relative path.
I am website builder since about 10 years and I still never use absolute internal links, *only* one big reason : portability !!! It is not normal that changing host will break all of your internal links (images, links, etc). It is not normal to store so much redondant and so much *hardcoded* data.
So now, I think I red most of all posts about this prob, the thing that is inconvenient is only when using RSS feeds or any outter contents that need - of course - absolute urls...ok so there is pathologic module that can rewrite relative urls, only for rss feed for example, that is why this patch is realy cool and not bizarre at all. There is no problem with clean urls or multisite because the html base tag precisely resolves it.
So to summarize, for getting REAL relative path for pictures & else :
1) add a base tag in your templates like :
<base href="http://www.mysite.com/" />of course with trailing slash...
2) apply this great patch
this insert relative path instead server-relative path, this works in front side but not in preview edition with ckeditor so :
3) add one ckeditor parameter in the file %path_to_modules%/ckeditor/ckeditor.config.js :
config.baseHref = Drupal.settings.basePath;// this will set the absolute path to drupal directory like "/path/to/drupal/"this is for adding a base tag in the ckeditor preview iframe
ah ok now I can work with the great module IMCE without fear of horribles broken links when moving one site
Comment #7
Anonymous (not verified) commentedsubscribing for relative paths