Added:
/wiki/pp_get_tags_for_model.wiki
=======================================
--- /dev/null
+++ /wiki/pp_get_tags_for_model.wiki Wed Feb 9 07:15:13 2011
@@ -0,0 +1,32 @@
+#summary To load this tag include {% load tag_helpers %} at the top of the
html file.
+#sidebar TableOfContents
+
+= Custom Tag: `pp_get_tags_for_model` =
+====_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 you want tags in reference to its model
+
+==_Return value_==
+
+ * `pp_tag.tags`: contains a list of Tag objects that have been used for
the model of the object being passed in.
+
+==_Usage Notes_==
+ * *Assumptions*: None
+
+ * *Errors*: None
+
+==_Examples_==
+====Basic form====
+The following code will display the HTML list of tag recommendations.
+{{{
+ {% pp_get_tags_for_model object=request.object %}
+
+ {% for tag in pp_tag.tags %}
+ <a href="{% pp_url template='tag_detail.html'
object=tag %}">{{tag.name}}</a>
+ {% endfor %}
+ {% endpp_get_tags_for_model %}
+}}}