This is a help calling. :)

Thank for Dan's new version (2.33) of BoltWire, I've done a
interesting LineEdit or ParaEdit solution, eh, almost.

What I've done was:

1) Install the ShowHide plugin:

http://boltwire.com/index.php?p=resources.solutions.showhide

2) Create an action page name it as "action.paraedit".

3) Put these code inside "action.paraedit":

<code>
[(include page={p} lines=1..1)]`
[(showhide id=line1 show='Edit1' type=button)]<box id=line1>
[form]`
[box content_1 rows=5 cols=50][(include page={p} lines=1)][box]
[session target {p}]
[session log content="{=content_1}" flags="line=1"][submit]
[session index pages={p}][form] </box>
`
[(include page={p} lines=2..2)]`
[(showhide id=line2 show='Edit2' hide='Hide' type=button)]
<box id=line2>
[form]`
[box content_2 rows=5 cols=50][(include page={p} lines=2..2)][box]
[session target {p}]
[session log content="{=content_2}" flags="line=2"][submit]
[session index pages={p}][form] </box>`
`
[(include page={p} lines=3..3)]`
[(showhide id=line3 show='Edit3' hide='Hide' type=button)]
<box id=line3>
[form]`
[box content_3 rows=5 cols=50][(include page={p} lines=3..3)][box]
[session target {p}]
[session log content="{=content_3}" flags="line=3"][submit]
[session index pages={p}][form] </box>`
</code>

4) Open any page with the additional url "&action=paraedit". And you
will get a three-lines-ParaEdit function.

===================================

If I want to edit a long article, which is the reason why we need Line/
ParaEdit for, I have to extent the code manually. It can not
automatically detect how many lines the target page contain.

It's somehow a stupid solution, but it can edit the single paragraph
(every "\n") right after it.

I have other problems:

 - The code is some how ugly.
 - The log command would delete empty lines automatically, but I need
empty lines.
 - I don't know how to make the button align right. I've used <right></
right>, but it adds too many empty spaces between paragraphs.

Any ideas?

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

Reply via email to