That was a good tip, thanks. I set $$root to the field's root.
if ($_SERVER["SERVER_NAME"] == "localhost") {
$BOLTvar['$server'] = 'http://localhost:8888';
$BOLTvar['$root'] = 'http://localhost:8888/' . $BOLTvar['$field'];
}
else {
$BOLTvar['$server'] = 'http://www.example.com';
$BOLTvar['$root'] = 'http://www.example.com/' . $BOLTvar['$field'];
}
On Sun, Apr 25, 2010 at 6:05 PM, The Editor <[email protected]> wrote:
> How about in site.config
>
> $BOLTvar['$home'] = 'www.example.com';
>
> And then
>
> [[{home}|label]] or even [[{home}]]
>
> Cheers
> Dan
>
> P.S. My goal for 4.xx will be to eliminate as many non essential
> options like [[|text]] as possible, so I hate to add one now. The test
> is largely 1) how often is it used and 2) is there an easy enough work
> around.
>
>
> On Thu, Apr 22, 2010 at 5:08 PM, Markus Weimar
> <[email protected]> wrote:
>> Still, a way to link to the default page without using its name seems
>> useful to me. While changing all the "home" links when I change
>> defaultPage seems boring to me.
>>
>> [[|text]] could simply default to "domain/field/". This way, changing
>> defaultPage would not create a single dead link.
>
> --
> 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.
>
>
--
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.