プロジェクト

全般

プロフィール

Vote #65720

未完了

"What Links Here" in right hand column

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

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

0%

予定工数:
category_id:
1
version_id:
0
issue_org_id:
3879
author_id:
463
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Similar to "Wikipedia":http://en.wikipedia.org/wiki/Special:WhatLinksHere/Redmine, it'd be nice to have a list of all the wiki pages that link to the wiki page currently being viewed. For example, it could look like the following:

h3. Wiki

  • Start page
  • Index by title
  • Index by date

h3. What Links Here

  • Wiki Page 1
  • Wiki Page 2
  • ...
  • Wiki Page N

Without this, it's hard to tell where to go for related information.


journals

I second this request.
--------------------------------------------------------------------------------
I thought about this with a colleague the other day. Here's a sketch of how it might work, if anyone wants to implement it.

Ingredients:

* A @page_links@ join table (two columns, something like: @source_page@ and @linked_page@)
* An observer on the wiki page model
* A method on the wiki page parser that gives an array of links

On save, the source page would delete all its rows in @page_links@, parse the new page content for links, and update the join table with which pages are now linked.

To display "what links here", all that would be needed is a query to give all @page_links@ rows with a @linked_page@ of the currently viewed page. The pages that link to that page are the @source_page@ values in the result of that query.

*Example:*

@page_links@ has no rows.

I create a page called "foo" with this content:

<code>
This is a page about foo. Related topics: [[bar]], [[baz]].
</code>

@page_links@ then has:

|_.source_page|_.linked_page|
|foo|bar|
|foo|baz|

Then, I create a page named "bar":

<code>
This is a page about bar.
</code>

To find the pages that link to "bar", I query for @page_links@ with a @linked_page@ of "bar". Result:

|_.source_page|_.linked_page|
|foo|bar|

So, "foo" is the only page that links to "bar".
--------------------------------------------------------------------------------
+1

Please see also #16996 [Reciprocal links (or, "Related wiki pages")]
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,16996,Reciprocal links (or, "Related wiki pages")

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

  • カテゴリWiki_1 にセット

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

いいね!0
いいね!0