プロジェクト

全般

プロフィール

Vote #64178

完了

Single section edit.

Admin Redmine さんが約3年前に追加. 約3年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Wiki_1
対象バージョン:
開始日:
2008/11/21
期日:
進捗率:

100%

予定工数:
category_id:
1
version_id:
36
issue_org_id:
2222
author_id:
1911
assigned_to_id:
1
comments:
35
status_id:
5
tracker_id:
2
plus1:
16
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Hi, folks!
Wiki don't have feature to edit single section on page. (see mediawiki)
I think it maybe good.
Thanks.


journals

+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1 This would be very nice
--------------------------------------------------------------------------------
+1 I believe this is the only detail on which Redmine's wiki doesn't beat mediawiki
--------------------------------------------------------------------------------
+1

Editing large wiki pages is cumbersome without.
Would be a great addition!
--------------------------------------------------------------------------------
+1 when maintaining a document (let's say a scope statement) in the redmine wiki, if it begins to be big, we have to split it in different pages (as it's really hard to find where to do the edits), but nor the include macro nor the child_pages are sufficient to offer a one page view of this document (the toc doesn't cover the included pages sections)

The ideal solution would be to keep this document in a single page, but to be able to edit only parts of it (as does many existing wiki platforms)
--------------------------------------------------------------------------------
Hi folks. *I've implemented this feature for the stable release v.0.8* and we are going to test this in the following two weeks. So stay tuned. ;)
--------------------------------------------------------------------------------
Manuel Studer wrote:
> Hi folks. *I've implemented this feature for the stable release v. 0.8* and we are going to test this in the following two weeks. So stay tuned. ;)

--------------------------------------------------------------------------------
I'm going to release the modification as a patch within the next days. I used Nokogiri for HTML parsing, so you'll need to install it.

And it works nice so far. Check out the screenshot.
--------------------------------------------------------------------------------
Hi folks,

Here is the first release for Redmine 0.8. As I said, you need "Nokogiri":http://nokogiri.rubyforge.org/. On a RHEL or Centos System you can install Nokogiri like the following:

<pre>
sudo yum install libxml2 libxml2-devel libxslt libxslt-devel
sudo gem install nokogiri
</pre>

Then install the patch:
<pre>
patch -p0 < wiki_section_edit-v0-9.patch
</pre>

Let me know if it works for you.

Cheers,
Manuel

If you want to remove the patch:
<pre>
patch -p0 -R < wiki_section_edit-v0-9.patch
</pre>
--------------------------------------------------------------------------------
Thanks!

But rubyforge.org is down :-(
--------------------------------------------------------------------------------
It work!
Thank you very much. :-)
--------------------------------------------------------------------------------
+1

Is this in version 0.8 now? If not, it'd be nice to have still.
--------------------------------------------------------------------------------
Ben Oakes wrote:
> +1
>
> Is this in version 0.8 now? If not, it'd be nice to have still.

By the way, we're on Redmine 0.8.4.stable.2819 (MySQL) and I don't see it.
--------------------------------------------------------------------------------
+1

It would be great if you could updated this patch or add it to trunk.

I tried applying this patch to trunk #1329 and it failed. I applied it manually but this lead to exceptions. I am not a Ruby/Rails programmer and I couldn't figure out the problem.
--------------------------------------------------------------------------------
Leonid Myravyev wrote:
> Hi, folks!
> Wiki don't have feature to edit single section on page. (see mediawiki)
> I think it maybe good.
> Thanks.

Here is the updated patch for trunk r3357. Let me know if it works for you.

--------------------------------------------------------------------------------
Manuel Studer wrote:
> Leonid Myravyev wrote:
> > Hi, folks!
> > Wiki don't have feature to edit single section on page. (see mediawiki)
> > I think it maybe good.
> > Thanks.
>
> Here is the updated patch for trunk r3357. Let me know if it works for you.

Oops, there was a small bug in version 1. This is now the corrected version 1.1.
--------------------------------------------------------------------------------
I think this feature is necessary for collaborative work on the wiki. This would avoid many problems when users are working on the same part of the project, and edit the same page at the same moment.

So:
<pre>
while(true) {
echo "+1";
}
</pre>

:)
--------------------------------------------------------------------------------
Nice. +1 to your +1. :)

Alexis Lahouze wrote:
> I think this feature is necessary for collaborative work on the wiki. This would avoid many problems when users are working on the same part of the project, and edit the same page at the same moment.
>
> So:
<pre>
while(true) {
echo "+1";
}
</pre>
>
> :)

--------------------------------------------------------------------------------
+1

The patch doesn't seem to work with 1.0 (r3858) though, getting the following error:

<pre>
patching file app/helpers/wiki_helper.rb
patching file app/helpers/application_helper.rb
Hunk #1 FAILED at 402.
1 out of 1 hunk FAILED -- saving rejects to file app/helpers/application_helper.rb.rej
patching file app/controllers/application_controller.rb
patching file app/controllers/wiki_controller.rb
Hunk #1 FAILED at 61.
Hunk #2 succeeded at 245 (offset 11 lines).
1 out of 2 hunks FAILED -- saving rejects to file app/controllers/wiki_controller.rb.rej
patching file app/views/wiki/edit.rhtml
Hunk #1 succeeded at 2 with fuzz 2.
patching file public/stylesheets/application.css
Hunk #1 succeeded at 724 (offset 54 lines).
Hunk #2 succeeded at 764 (offset 54 lines).
</pre>
--------------------------------------------------------------------------------
That would be very useful, indeed.
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Very useful! PLease include into 1.3
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Feature added in r7829. It also allows multiple users to edit different sections at the same time if they don't conflict.
--------------------------------------------------------------------------------
Found a glitch:
* if a section contains <pre>@WHATEVER@</pre>, the next section won't be editable

* when editing a section, there is no way to go back to the page
* as a personnal POV, that would be nice to be able to edit the section "inline", meaning staying in the wiki page and being able to see the whole page contents, like for issue comment editing

Very nice work, though!
--------------------------------------------------------------------------------
Etienne Massip wrote:
> Found a glitch:
> * if a section contains [...], the next section won't be editable

Fixed in r7835.

> * when editing a section, there is no way to go back to the page

You mean a Cancel link to go back to the page?

> * as a personnal POV, that would be nice to be able to edit the section "inline", meaning staying in the wiki page and being able to see the whole page contents, like for issue comment editing

I dit it the Wikipedia way but there's certainly room for improvement :-)

Thanks for the feedback.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> You mean a Cancel link to go back to the page?

Yes, the global idea is that SSE is useful to speed up page editing in focusing on a specific section, so if you change your mind you may want to be right back to the location you were previously in the page.

> I dit it the Wikipedia way but there's certainly room for improvement :-)

That's a very appreciated feature =)(with a cancel button), I'll wait for other peopple feedback =)

--------------------------------------------------------------------------------
Not confirmed, but could be broken according to Mischa's #9673.
--------------------------------------------------------------------------------
Now fixed.
--------------------------------------------------------------------------------


related_issues

relates,Closed,9673,Angle brackets within 'pre' blocks are silently replaced by named HTML entities during wiki section-edit
relates,Closed,10199,No wiki section edit when title contains code

Admin Redmine さんが約3年前に更新

  • カテゴリWiki_1 にセット
  • 対象バージョン1.3.0_36 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0