Announcement

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

#1 2011-10-15 07:31:39

jmm68170
New member
Registered: 2011-10-15
Posts: 4

Xinha URL links

Hello !

Xinha is a very good product.

I use wampserver at home and the URL for my first site is http://localhost/siteweb/ (I have an other site (http://localhost/Pao/)
The http://localhost/ can't be modified in wampserver.

When I use images in my site the URL is http://localhost/siteweb/images/xxx.jpg
I just want to have the link        images/xxx.jpg    (and not    /images/xxx.jpg  or  /siteweb/images/xxx.jpg)   

I try to use the parameter              xinha_config.stripBaseHref = true ;   in the config file.
The résult is    /siteweb/images/xxx.jpg   for my images links  and this is not the result I want for my real publication in my site
I want    images/xxx.jpg  in my links for a good  translation in my real site

Do you find me a solution ?

Thanks for all !

Last edited by jmm68170 (2011-10-15 07:44:44)

Offline

#2 2011-10-16 07:02:19

jmm68170
New member
Registered: 2011-10-15
Posts: 4

Re: Xinha URL links

I forget, for better response to my problem, more explanations :

I use IE 8.0 or FF 7.0

About Xinha :
Release:         Trunk (Wed, 12 May 2010 09:40:06 +1200)
Head:            h t t p://svn.xinha.org/trunk/XinhaCore.js
Revision:        1263
Last Changed By: gogo

If I make my xinha edit on my web site the result is /images/xxx.jpg    the / before images is in excess
and if I edit under wampserver in my local site :  /siteweb/images/xxx.jpg  the  /siteweb/  is too

I explain my uses :
when I edit directly on my web site I can later save the database mysql and restore it with wampserver for better tests (and saving)
I can also edit under wampserver at home and later copy my text in the real site
With this problem I must correct more links manually


Thanks for responses

Offline

#3 2011-10-23 08:13:46

jmm68170
New member
Registered: 2011-10-15
Posts: 4

Re: Xinha URL links

Hello !

My problem is also open, I tried the new XinhaCore.js after the ticket #1587 but the results are same. Perhaps this corrections was not for my problem ?

I tried also to open a new ticket and this will not be possible for me !

Can everybody respond to me for what I shell do at this point ?

Thanks for responses

Offline

#4 2011-10-28 01:56:02

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

Re: Xinha URL links

Try BaseHref configuration.


James Sleeman

Offline

#5 2011-10-28 20:15:06

jmm68170
New member
Registered: 2011-10-15
Posts: 4

Re: Xinha URL links

Hi,

I try :
xinha_config.baseHref = 'http://localhost/siteweb/'; in the local config file for my first site and
xinha_config.baseHref = 'http://localhost/Pao/'; in the local config file for my second site
and the result is very good  smile
Thanks for all

Last edited by jmm68170 (2011-10-28 20:16:28)

Offline

Board footer

Powered by FluxBB