You can call the info var directly in the php using this function from
library.php

BOLTgetTextVar($var, $default, $page, $pattern='', $auth=false) ...

I'm guessing you set $auth to true to bypass the auth checking, but
I'm not 100% sure... Seems it would have been the other way around.
Now that text vars are called info vars I probably should update the
function name and all references to it. But that would affect several
plugins I'm sure. Not a pleasant sounding idea.

Cheers,
Dan




On Thu, Nov 6, 2008 at 3:59 PM, alinome.net <[EMAIL PROTECTED]> wrote:
>
> I'm writing a customized version of BOLTFbreadcrumb, with some
> additional features I need. I give it a start page to be used as the
> first link. In my case it's the current default page (the defaultPage
> variable in site.config). First I supposed I could recall it with
> {defaultPage} but it didn't work. Then I realized those variables are
> set with the same syntax than text variables, so I tried
> {site.config::defaultPage} and it worked. I called my function this
> way:
>
> [(mybreadcrumb separator=" > " startpage="{site.config::defaultPage}"
> startlabel="Inicio")]
>
> It works fine (when the function will be finished, I'll post it
> because the changes I did could be useful for others). Well, I just
> realized that it doesn't work for guests... After some debugging I
> found the cause: guests cann't read site.config... If I give read
> permissions to guest it works, but it's not a good idea. I don't want
> to hardcode the default page in the function, because there's a config
> variable for it.
>
> Is there any other way to read the site.config variables? I've found
> nothing about this in the mail list or the docs.
>
> Thanks,
> Marcos
>
> --
> http://alinome.net
> >
>

--~--~---------~--~----~------------~-------~--~----~
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