Added:
/wiki/pp_get_objects_for_tag.wiki
=======================================
--- /dev/null
+++ /wiki/pp_get_objects_for_tag.wiki Wed Feb 9 07:23:21 2011
@@ -0,0 +1,41 @@
+#summary To load this tag include {% load tag_helpers %} at the top of the
html file.
+#sidebar TableOfContents
+
+= Custom Tag: `pp_get_objects_for_tag` =
+====_Module: pirate_core_====
+
+This template tag populates the namespace `pp_tag` with a list of objects
to which the tag `object` has been applied to.
+
+==_Arguments and Parameters_==
+
+ * object: the Tag model that the author wants to grab tags for
+
+==_Return value_==
+
+ * `pp_tag.issues`: Issues that have been tagged with `object`
+ * `pp_tag.solutions`: Solutions that have been tagged with `object`
+ * `pp_tag.arguments`: Arguments that have been tagged with `object`
+
+
+==_Usage Notes_==
+ * *Assumptions*: None
+
+ * *Errors*: None
+
+==_Examples_==
+====Basic form====
+The following code will display the HTML list of tag recommendations.
+{{{
+ {% pp_get_objects_for_tag object=request.object %}
+
+ {% for issue in pp_tag.issues %}
+ {{issue}}
+ {% endfor %}
+ {% for solution in pp_tag.solutions %}
+ {{solution}}
+ {% endfor %}
+ {% for arg in pp_tag.arguments %}
+ {{arg}}
+ {% endfor %}
+ {% endpp_get_objects_for_tag %}
+}}}