Dan has a 'Section Edit'. Easy, simple and no need to install any
plugin:
<code>
[form]
[session target {p}#anchor]
[box content rows=5 cols=40][(source {p}#anchor)][box]
[session edit "{=content}"][submit]
[form]
</code>
http://boltwire.com/index.php?p=resources.solutions.sectionedit
But the solution is not so convenient because if you want some part of
a page to be editable, you have to set the proper 'anchor' in the page
first. This made it not so user friendly, not like other wikis did.
Is it possible to get an automatic section edit without setting anchor
first?
The 'anchor' part is the key. Is there any thing similar to an
'anchor' we can grab but no need to set something first? I'm thinking
about 'lines'. The [(include)] can find certain line(s).
So I tried using 'include' to replace 'source', a code like this can
grab the certain line(\n) in an edit box:
<code>
[box content rows=5 cols=40][(include page={p} lines=1)][box]
</code>
This is the limit of my ability. If I want the 'Line Edit' functional,
there are two things lack.
1) Saving the certain line back to the proper place of the page.
The bast way maybe improve [(source)] to have the ability to find
certain line and save back. Like some times ago, Dan improved
[(include)]'s ability to find line(s).
2) Having every "\n" with an additional markup, so we don't need to
set 'anchor' or anything like that first.
Something like this:
<code>
[form]
[session target {p}#linexxx]
[box content rows=5 cols=40][(source {p}#linexxx)][box]
[session edit "{=content}"][submit EditThisLine]
[form]
</code>
Putting after every "\n".
If all these two things done, we would have a 'Line Edit' (or
'Paragraph Edit').
Is this make sense?
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
-~----------~----~----~----~------~----~------~--~---