Read my whole reply before taking action! On Tue, Mar 23, 2010 at 11:07 AM, The Editor <[email protected]> wrote: > On Tue, Mar 23, 2010 at 5:55 AM, Markus Weimar > <[email protected]> wrote: >> No difference. Still the image has this address: >> >> http://localhost:8888/test/boltwire/farm/img/boltwire.gif > > Is that not the right location?
test is the field! :) it should be: http://localhost:8888/boltwire/farm/img/boltwire.gif That's my problem. By using these relative paths from sub.level.pages the boltwire folder get's put AFTER the field or AFTER field/sub/level/ field/sub/level/page -> /field/sub/boltwire/farm/... field/page -> /boltwire/farm/... (hurray!) >> and still: >> img: ../boltwire/farm/img >> farm: http://localhost:8888/boltwire/farm > > How do you generate these? $$img and $$farm in a page? Yes, like that. > It looks like these are both the correct default values... Correct as long as ../boltwire/farm/img gets computed starting from sub.level.HERE Therefore my thoughts about making img like farm: http://localhost:8888/boltwire/farm/img instead of ../boltwire/farm/img >> I haven't set anything fancy in index.php just: >> $cleanURL='http://localhost:8888/test/'; >> $fieldURL='http://localhost:8888/test/'; > > Oh, I see. That's exactly what I would expect. > > Again, $$farm is from $farmURL and gives the **url**. $$img is the > child of $farmPath, which is a relative path. If you set $farmPath to > a url in index.php, $$img will change. Also, not in the next release > $$farm will show $farmPath rather than $farmURL. Just required a > simple change in BOLTsnippets. > > Try setting $farmPath to your desired URL and see if the new code in > markups.php doesn't begin working for you. If it is aliasing though, > someone else will have to help you. I can't believe this! It's working in combination with your markups.php fix!!! img: http://localhost:8888/boltwire/farm/img farm: http://localhost:8888/boltwire/farm And I still can use this locally and remotely: $cleanURL='http://' . $_SERVER['HTTP_HOST'] . '/test/'; $fieldURL='http://' . $_SERVER["HTTP_HOST"] . '/test/'; Now, to prevent any clean url posts in the future, BoltWire could see if cleanURL is set. If so one can expect that relative paths won't work on sub level pages. Therefore BoltWire replaces any ../ relative paths with the clean url minus the field. Wouldn't that be beautiful? And again: Thanks so much for not letting me down on this one! :) I'll document as soon as I have time and we have come to an end here. -- 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.
