support for link rewirting hook for tags

This is the place to discuss bugs that have been found in the most recent version of PivotX. Posting bugs will ensure that the Development Team is aware of them and that they will be addressed when resources are available.

support for link rewirting hook for tags

Postby janozaurus » Sun Feb 07, 2010 2:17 pm

Hi,
in the current version of PivotX (SVN revision 2404) there's no 'makeLink' hook in module_tags.php function tagLink(). Hence rewriting of tag links is not possible.

However this feature can easily be added by copy/pasting the code from module_parser.php. I'm attaching a patch. Can you include this in the official version?

Jan

EDIT: Attachment upload failed. Here you go: http://www.spacezone.de/download/pivot/module_tags.php.diff
janozaurus
 
Posts: 38
Joined: Mon Nov 26, 2007 9:03 am

Re: support for link rewirting hook for tags

Postby hansfn » Sun Feb 07, 2010 5:42 pm

Thx. Committed - see revision 2405. (There was a tiny error in your patch, there is no $weblog variable in the tagLink function.)
hansfn
Developer
 
Posts: 1855
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: support for link rewirting hook for tags

Postby janozaurus » Sun Feb 07, 2010 10:05 pm

Thanks.
janozaurus
 
Posts: 38
Joined: Mon Nov 26, 2007 9:03 am


Return to 2.x Bugs

Who is online

Users browsing this forum: No registered users and 2 guests