Ok, I've been looking into this and the problem is this: the title
action has a line like this:
[text title "{:title}"]
Page variables are substituted before form inputs so after the data
var is substituted you have:
[text title "[about] linly"]
Now BoltWire sees the first ] and thinks it is the close of the text
box... It is probable we could develop a better markup rule that would
exclude the ] when it is between ' ' or " ", but it would not be easy
for me. If anyone cares to take a stab, I'd gladly incorporate it.
When I feel up to the challenge I may tackle it myself. Who knows,
might not be that bad...
I did however do some tweaking to the code to allow this for basically
any form input (just barely test, but seems so anyway):
[text title source=":title"]
This pulls in the source code and inserts it into the field. I've
tested with a title like "[about] Linly" and it works fine. We would
have to do more testing to see all the ways this can be used. But the
code was very simple, which is always a good sign.
Also, as noted earlier, I've got markup like this working now too:
[text title /=some markup...=/]
which also has all kinds of interesting implications, like:
[session field /=some text
more text
and still more text
=/]
And the markup doesn't break. Comes out perfect. This could be a
pretty good replacement for templates... Though it still seems more of
a quirky advanced feature than something we would want to shift users
toward. Just nice to have.
I'll release these shortly I guess (maybe tomorrow--two releases in
one day is a bit much). And perhaps upgrade the title and data actions
to take advantage of these more foolproof source= options.
Cheers,
Dan
On Sun, Feb 8, 2009 at 11:11 PM, Linly <[email protected]> wrote:
>
> OK, I set a test on my login page:
>
> http://www.boltwire.com/index.php?p=login.linly
>
> The title is "[about] Linly". Then you can click the action=title to
> see the problem.
>
> Cheers,
> linly
>
> On 2月9日, 上午3時47分, The Editor <[email protected]> wrote:
>> Can you create a test page at BoltWire to demo this (like
>> test.linkbug) and send me the url? I've tried editing and saving
>> [[some.page|My] title]] repeatedly, and it works fine every time...
>> I'm using updated code, which may make a difference, but I don't think
>> I've changed anything that would affect this...
>>
>> Cheers,
>> Dan
>>
>> On Wed, Feb 4, 2009 at 2:46 AM, Linly <[email protected]> wrote:
>>
>> > If I write a page title containing "[" and "]". It can be saved at
>> > first time. But in the next time I edit the page the title words
>> > behind the "]" (including "]") would be cut out. Any ideas to avoid
>> > this?
>>
>> > Cheers,
>> > linly
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---