#76: 作成者情報の拡張とフィードバック
Implement the required templates, forms and formhandlers to allow members to get more information about authors and send them feedback throug a simple form to an authors email address, without revealing the email address of the author. It should also be possible to send feedback in general to the potal administrator 必須のテンプレートを実装する、形式、そして、メンバーが著者に関する詳細な情報を得て、彼らにフィードバックthrougを送るのを許すformhandlers、著者の電子メールアドレスを現すことなく、著者電子メールアドレスに単純な形式。 一般にpotalな管理者にフィードバックを送ることは、また、可能でなければなりません
#76: Extended author information and (portal) feedback
Definitions 定義
author 著者 Creator in DC, the portal member that has created the content. Must be a real member, members defined at a higher level in the Zope instance are/will remain tricky コロンビア特別区(内容を作成した入口メンバー)の作者。本物の部材(巧妙なZope例are/will残りでより高いレベルで定められるメンバー)でなければなりません
Motivation 動機づけ
When viewing content it should be possible to retrieve more information about its author, view other content by this author and send feedback to this author. 内容を見るとき、その著者に関する詳細な情報を検索して、この著者によって他の内容を見て、この著者にフィードバックを送ることは可能でなければなりません。 Assumptions 見せかけ
- This plip is implemented on a relatively old branch by limi. このplipは、limiによって比較的古い支店の上で実行されます。 * Authors must be real plone members, not users defined at a higher level in the Zope instance (i.e. root) 著者は本物のplone部材であるにちがいありません。そして、ユーザーがZope例(すなわち根本の)でより高いレベルで定められません、
Proposal 提案
The byline template must be changed so it shows the full name of the author, the date the content became effective and a link to an author page listing specific details about the author, such as: それが著者のフルネーム、内容が起こった日付と、例えば、著者について特定の詳細をリストしている著者ページへのリンクを示すように、bylineテンプレートは変わらなければなりません:
- full name フルネーム portrait 肖像 Location and other harmless data, once implemented as Member properties 場所と他の無害なデータ(議員特性として実行される一度) A feedback form (if the visitor is logged in), or else a button telling the user to login to send feedback フィードバックフォーム(訪問客が中で記録されるならば)、でなければ、ログインにフィードバックを送るようにユーザーに言っているボタン An overview of content by this author by content type, 5 items per content-type (max) and a link to search for more content of this type by this author. 内容タイプによるこの著者による内容の概要、内容-タイプ(最大)につき5つのアイテムとこれのより多くの内容を捜す関連は、この著者によってタイプします。
Implementation 実施
The author page is a CPT that gets passed the authorname as part of the traverse_subpath, i.e. /author/username 著者ページは、traverse_subpathの一部としてauthornameを渡されるCPTです‖すなわち/著者/ユーザー名
Update[optilude] - if no traverse_subpath is given, it will also look at the Creator of the parent object; that way, you can go to /Members/member1/document1/author to get author info on that document. This also makes it easier to navigate back (a link is provided) to the document.
Update [optilude]−traverse_subpathが与えられないならば、それはまた、親オブジェクトの創造主を見ます;そのように、あなたはそのドキュメントに関する著者情報を得るために『/議員/member1/document1/著者』ことをがんばることができます。これも、文書に背中(関連は提供されます)を進むことをより簡単にします。
Feedback uses the referer header to get (or guess) the context for which the feedback is being sent and who the author of this content is if the feedback is to be sent to the author. フィードバックは、フィードバックが送られている、そして、フィードバックが著者に送られることになっているならば、この内容の作成者がそうである前後関係を得る(または推測します)ために、refererヘッダを使います。
Anonymous users must login first to send feedback. The current portlet currently has a bug that prevents proper redirection to the original authorpage when logging in - this will be fixed (and the portlet will be better cachable in the process as well) 最初にフィードバックを送る匿名のユーザー必要なものログイン。現在のportletには現在、ログインするとき、原物のauthorpageに適当なリダイレクションを防ぐバグがあります−これは固定されます(そして、portletは同様にプロセスにおいてよりよくcachableです)
Other content by this author will be implemented by searching all content by this author and by iterating over this entire content listing, building groups of content per content type. この著者による他の内容はこの著者によって全ての内容を捜すことによってインプリメントされます、そして、もう一度この全ての内容リストを繰り返すことによって、内容につき内容の建築群はタイプします。
The authors address must not be revealed in this proces. 著者アドレスは、このprocesで現れられてはなりません。