Update of /cvsroot/openinteract/OpenInteract2/extra_packages/delicious_tags/doc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31922/doc
Modified Files:
delicious_tags.pod
Log Message:
OIN-103: fix related_tags_box to not blow up when it does not get an
object; also add its action and other actions to docs
Index: delicious_tags.pod
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract2/extra_packages/delicious_tags/doc/delicious_tags.pod,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** delicious_tags.pod 25 Nov 2004 03:14:04 -0000 1.3
--- delicious_tags.pod 25 Nov 2004 13:50:32 -0000 1.4
***************
*** 99,102 ****
--- 99,108 ----
}
+
+ # In your template you can add a box to display the current item's
+ # tags:
+
+ [% OI.box_add( 'related_items_box', object = news ) %]
+
=head1 DESCRIPTION
***************
*** 118,122 ****
=head1 ACTIONS
! No actions defined in this package.
=head1 OBSERVERS
--- 124,148 ----
=head1 ACTIONS
! B<related_tags_box>
!
! Box to display the tags (and the number of other objects tagged by
! them) related to a particular object. You need to pass in an 'object'
! or 'c_object' for it to work:
!
! [% OI.box_add( 'related_tags_box', object = news ) %]
!
! B<tagged_items>
!
! Component to display items given a particular tag. You can invoke this
! anywhere:
!
! <p>
! [% OI.action_execute( 'tagged_items', tag = 'perl' ) %]
! </p>
!
! B<tags>
!
! Currently has single task 'show_tagged_items' which displays a
! full-page version of the 'tagged_items' action.
=head1 OBSERVERS
***************
*** 124,127 ****
--- 150,157 ----
L<OpenInteract2::Observer::AddDeliciousTags>
+ Gets fired on a 'post add' or 'post save' of an action. It adds the
+ tags from the request/action parameter 'tags' to the object in the
+ action parameter 'object' or 'c_object'. See docs for details.
+
=head1 RULESETS
|