Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-01-28 14:17:49

xinhafanatic
New member
Registered: 2009-01-28
Posts: 2

Problems with ImageManager and absolute URL

Hello all,

I would like the Image Manager to link to images with absolute urls.

In config.php I have set $IMConfig['images_url'] = "http://mydomain.com/image_rep";

However, upon insert a picture, Image Manager gets rid of the domain linking to "/image_rep/" only.

I need to know what needs to be changed to get all inserted images to have absolute URLs.

Many Thanks!

Offline

#2 2009-01-28 18:50:22

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Problems with ImageManager and absolute URL

See the main xinha config options.

687    // specify a base href for relative links
686      /** Specify a base href for relative links<br />
687       *  ATTENTION: this does not work as expected and needs t be changed, see Ticket #961 <br />
688       *  Default: <code>null</code>
689       *  @type String|null
690       */
691      this.baseHref = null;
692    
693      /** If true, relative URLs (../) will be made absolute.
694       *  When the editor is in different directory depth
695       *  as the edited page relative image sources will break the display of your images.
696       *  this fixes an issue where Mozilla converts the urls of images and links that are on the same server
697       *  to relative ones (../) when dragging them around in the editor (Ticket #448)<br />
698       *  Default: <code>true</code>
699       *  @type Boolean
700       */
701      this.expandRelativeUrl = true;
702     
703     /**  We can strip the server part out of URL to make/leave them semi-absolute, reason for this
704       *  is that the browsers will prefix  the server to any relative links to make them absolute,
705       *  which isn't what you want most the time.<br />
706       *  Default: <code>true</code>
707       *  @type Boolean
708       */
709      this.stripBaseHref = true;

James Sleeman

Offline

#3 2009-01-28 19:31:33

xinhafanatic
New member
Registered: 2009-01-28
Posts: 2

Re: Problems with ImageManager and absolute URL

Sorry, which file will I find this in?

I didn't see any config file in the distribution I downloaded so I had to create my own my_config.js, which I obviously filled in myself.

I would like to know which file I would find the above code in.

Many thanks

Offline

#4 2009-01-29 10:18:55

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Problems with ImageManager and absolute URL

This is from the uncompressed source code. You can find all config options on http://xinha.raimundmeyer.de/JSdoc/Xinha/

Offline

Board footer

Powered by FluxBB