Sure but it can be adapted. That was just a sample to show how to do
it. To get what you want, try this:
1. Create page action.sectionedit (or something shorter if you want,
maybe sedit). It should have content something like this (feel free to
customize):
! Section Edit
Page: {p}, Section: {?section}
[form]
[session target {p}#{?section}]
[box content rows=5 cols=40][(source {p}#{?section})][box]
[session edit "{=content}"]
[submit]
[form]
Next on some page, put markup like this:
start stuff
[[#anchor]]Stuff to change
[[#end]][[{p}&action=sectionedit§ion=anchor|Edit]]
[[#anchor2]]Another section
[[#end]][[{p}&action=sectionedit§ion=anchor2|Edit]]
last stuff
I don't know how this compares with the markup used on wikimedia, but
if you have a suggestion for shortcutting it let me know. This is just
raw out of the box BoltWire stuff. Nothing fancy... But just off the
cuff, here's one possibility:
Put this line in a config file (no line breaks)
MarkUp('pre', 'sectionedit', '/\[\[\#([-_a-z0-9]+)end\]\]/',
'[[#end]][[{p}&action=sectionedit§ion=$1|--[EDIT] ]]');
And then try this on a page...
[[#anchor]]
Some stuff
[[#anchorend]]
[[#anchor2]]
Another section
[[#anchorend]]
I'm open to other suggestions. Would you be so kind as to add some of
this information to the sectionedit page, down at the bottom?
Cheers,
Dan
On Mon, Dec 22, 2008 at 5:58 AM, Daisuke <[email protected]> wrote:
>
> Thanks but it's not exactly what I'm after.
>
> Please have a look at this example.
> http://en.wikipedia.org/wiki/Karate#Kumite
> There is a text "[edit]" next to the headline/topic to edit the
> content. I want the boltwire to act in a very similar way if its
> easy..
>
> Thank you.
>
> On Dec 22, 11:34 pm, "The Editor" <[email protected]> wrote:
>> Sure, take a look at this snippet.
>>
>> http://www.boltwire.com/index.php?p=solutions.snippets.sectionedit
>>
>> Cheers,
>> Dan
>>
>> On Mon, Dec 22, 2008 at 1:11 AM, Daisuke <[email protected]> wrote:
>>
>> > In mediaWiki, an editor can edit a part of a page by clicking on edit
>> > next to topics..
>> > can this be achieved in boltwire? I think it will be very useful as my
>> > page can get long i'm not very fond of editing a whole page.. I would
>> > instead like to have an option to edit content in a topic :)
>>
>> > Thanks developers.
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---