Hi,
I'm trying to override a function in TagCloudWidget using a custom class but SS seems to ignore this new file.
Basically what I did was:
- I created a new class in /mysite/code/CustomTagCloudWidget.php with the following structure
<?php
class CustomTagCloudWidget extends TagCloudWidget {
function TagsCollection() {
// new stuff
}
}
?>
- Added the useCustomClass method to my _config.php file
Object::useCustomClass('TagCloudWidget', 'CustomTagCloudWidget', true);
Am I missing something?
Thank you in advance.
Regards,
Rodolfo