Development

#2923 ([PATCH] sfPropelActAsTaggablePlugin tag_cloud helper function with custom links)

You must first sign up to be able to contribute.

Ticket #2923 (closed enhancement: fixed)

Opened 7 months ago

Last modified 6 months ago

[PATCH] sfPropelActAsTaggablePlugin tag_cloud helper function with custom links

Reported by: forkmantis Assigned to: xavier
Priority: minor Milestone:
Component: sfPropelActAsTaggablePlugin Version: 1.0.10
Keywords: Cc:
Qualification: Accepted

Description

I have a need for a tag cloud where the tags use link_to_remote or link_to_function. The attached patch attempts to allow the user to specify an arbitrary link function, as well as place the tag string anywhere in the URL string. This patch also attempts to preserve backwards compatability with the previous tag_cloud function.

usage:

<?php echo tag_cloud($tags, "javascript_function('%s')",
          array('link_function' => 'link_to_function')) ?>

Attachments

TagsHelper.php.patch (0.9 kB) - added by forkmantis on 02/12/08 18:12:39.

Change History

02/12/08 18:12:39 changed by forkmantis

  • attachment TagsHelper.php.patch added.

02/20/08 07:23:02 changed by xavier

(In [7550]) sfPropelActAsTaggableBehaviorPlugin: tag_cloud helper with custom links function - refs #2923 (thanks, Will !)

02/20/08 07:24:19 changed by xavier

  • status changed from new to closed.
  • resolution set to fixed.
  • qualification changed from Unreviewed to Accepted.