On Mon, Mar 22, 2010 at 10:36 AM, Markus Weimar
<[email protected]> wrote:
> 1) In index.php before the engine call:
> $farmPath = 'http://' . $_SERVER['HTTP_HOST'] . '/boltwire/farm';
>
> Leads to:
> img: http://localhost:8888/boltwire/farm/img
> farm: http://localhost:8888/boltwire/farm
>
> Good.
>
> This works on all pages:
> [^$$img/boltwire.gif^]
>
> This does not work on any page and gives an upload link:
> [^boltwire.gif^]
>
> Why? If BoltWire would look in img which is correctly set, it would
> certainly have to find that file.

Almost certainly related to your cleanUrls. It works on a default installation

> 2) Without setting a farmPath:
>
> img: ../boltwire/farm/img
> farm: http://localhost:8888/boltwire/farm
>
> This works on all pages as above:
> [^$$img/boltwire.gif^]
>
> This works ONLY on top-level pages:
> [^boltwire.gif^]
>
> On sub-level pages the relative path is used FROM the sub-level.
> Result is something like: field/boltwire/farm/img or
> field/a/b/c/boltwire/farm/img.
>
> This behavior is odd. The relative path should be computed in relation
> to index.php and not to the page. Interestingly this only happens with
> clean URLs, maybe as sub-pages translate to slashes and / means path.

You must be exactly right. The cleanUrls no doubt confuse things. This
is why I generally try to avoid providing support for cleanUrls.  :)

Cheers,
Dan

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en.

Reply via email to