This is a great suggestion. I think it would go here in the info function:

        if (isset($args['field'])) $field = trim(BOLTurl2utf($args['field']));
        else $field = BOLTurl2utf($pageLink);
        $field = str_replace(' ', '_', $field);

(added the third line around line 211). If this is a good idea to
everyone, I'm willing to slip it into the code...  Does it address
everyone's needs?

Cheers,
Dan


On Sun, Aug 2, 2009 at 8:16 AM, DrunkenMonk<[email protected]> wrote:
>
> My suggestion is simply to add a
>
> inputString = strreplace( ' ', '_', inputString );
>
> in the data function. The {::variable} will act much as it does not,
> while the data function will be internally consistent, treating
> "one_two" the same as "one two".
>
> On Jul 27, 6:52 pm, Martin <[email protected]> wrote:
>> Does this mean you have a solution for this problem that you reported
>> first?
>>
>> If so, can you tell us about?
>>
>> Greetings, Martin
>>
>> On Jul 27, 12:51 pm, DrunkenMonk <[email protected]> wrote:
>>
>> > If it does, the info function may become much slower on some pages, as
>> > it will have to search through paragraphs to find possible info
>> > variables.
>>
>> > However, this could be solved by running the field through a search
>> > and replace...
>>
>> > On Jul 27, 7:16 am, Martin <[email protected]> wrote:
>>
>> > > info should take all characters up to the first ":" as field.
>>
>> > > It does not. It takes only the first word and scramble the results
>> > > when two words
>> > > are found.
>>
>> > > [(template each)][(info target=info.test field="{+::item}" value=+
>> > > {+p})]
>>
>> > > Results:
>>
>> > > one_word: value1,value2 => fine
>> > > two words: value1value2 => not good
>>
>> > > Greetings, Martin
> >
>

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