You are not logged in.
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
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
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
This is from the uncompressed source code. You can find all config options on http://xinha.raimundmeyer.de/JSdoc/Xinha/
Offline