Author: Nathan.Vonnahme
Date: 2010-05-18 23:21:42 +0200 (Tue, 18 May 2010)
New Revision: 29511
Modified:
plugins/sfDoctrineActAsTaggablePlugin/trunk/README
Log:
fixed ActAs documentation for schema.yml; documented "link_function" option to
tag_cloud()
Modified: plugins/sfDoctrineActAsTaggablePlugin/trunk/README
===================================================================
--- plugins/sfDoctrineActAsTaggablePlugin/trunk/README 2010-05-18 20:21:10 UTC
(rev 29510)
+++ plugins/sfDoctrineActAsTaggablePlugin/trunk/README 2010-05-18 21:21:42 UTC
(rev 29511)
@@ -48,9 +48,10 @@
./symfony plugin-install
http://svn.symfony-project.com/plugins/sfDoctrineActAsTaggablePlugin/trunk
- * edit your schema.yml and add
+ * edit config/doctrine/schema.yml and add the Taggable behavior to the model
you want to be taggable.
- templates: [Taggable] to model you want to be taggable
+ Post:
+ actAs: { Timestampable: ~ , Taggable: ~ }
* rebuild the model:
@@ -240,7 +241,19 @@
* ``add``: text to be used, after each tag, as a link for adding this tag to
the current selection
* ``class``: class of the tags cloud. By default, the class "tags-cloud" is
used
+ * ``link_function``: the helper to use for linking, by default ``link_to()``.
You can use it to link to a javascript function, for example:
+
+ #!php
+ <?php
+ echo tag_cloud($tags, 'handle_tag_click("%s")', array(
+ 'link_function' => 'link_to_function',
+ 'link_options' => array('class=addtag')
+ )
+ );
+
+
+
You might also want to display the tags of one item. The ``tag_list()`` helper
is done for this:
#!php
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.