[pirate-politics] r607 committed - Created wiki page through web user interface.

2 views
Skip to first unread message

pirate-...@googlecode.com

unread,
Feb 9, 2011, 8:47:29 AM2/9/11
to pirate-poli...@googlegroups.com
Revision: 607
Author: fragro
Date: Wed Feb 9 05:17:03 2011
Log: Created wiki page through web user interface.
http://code.google.com/p/pirate-politics/source/detail?r=607

Added:
/wiki/pp_tag_recommendations.wiki

=======================================
--- /dev/null
+++ /wiki/pp_tag_recommendations.wiki Wed Feb 9 05:17:03 2011
@@ -0,0 +1,33 @@
+#summary To load this tag include {% load tag_helpers %} at the top of the
html file.
+#sidebar TableOfContents
+
+= Custom Tag: `pp_tag_recommendations` =
+====_Module: pirate_core_====
+
+This template tag populates the namespace `pp_tag` with a list of
recommended tags for this Object. Recommendations are currently based on
Model, in the future they can be based on similarity metrics or
collaborative filtering.
+
+==_Arguments and Parameters_==
+
+ * object: the object that tags will be recommended for
+
+==_Return value_==
+
+ * `pp_tag.taglist`: Contains a tag cloud listing of tags that are being
recommended. This is also dynamically generated HTML, that contains links.
Each link, if clicked, will tag `object` with that Tag using the
javascript 'add_tag()' function.
+
+==_Usage Notes_==
+ * *Assumptions*: None
+
+ * *Errors*: None
+
+==_Examples_==
+====Basic form====
+The following code will display the reputation integer.
+{{{
+ <div id="ajax_link_tag_list">
+ {% pp_tag_recommendations object=request.object %}
+
+ {{pp_tag.taglist|safe}}
+
+ {% endpp_tag_recommendations %}
+ </div>
+}}}

Reply all
Reply to author
Forward
0 new messages