getSearchableContent
Permalink
I've built a very simple block to add an audio player. Fields include "title", "tags" and "description" and I'd like for those to be searchable. I've found the
function, and tried to add it, but it obviously requires more than simply pasting it into the controller.php file.
I appreciate any help.
thanks,
Greg
public function getSearchableContent() { return $this->content; }
function, and tried to add it, but it obviously requires more than simply pasting it into the controller.php file.
I appreciate any help.
thanks,
Greg
![Mnkras](/files/avatars/781.jpg)
Do you know php at all? and could you possibly post the block?
Attached is the zipped up block.
I know a little php but not an expert by any means. Thanks for your help.
I've been using the block for several weeks, so I know the player works. I'm not using C5's file uploader for the mp3 files. I chose to ftp them to specific directories and simply reference those.
Basically it loads html5 audio tags for webkit and a flash player for everybody else - I refuse to create ogg.
I know a little php but not an expert by any means. Thanks for your help.
I've been using the block for several weeks, so I know the player works. I'm not using C5's file uploader for the mp3 files. I chose to ftp them to specific directories and simply reference those.
Basically it loads html5 audio tags for webkit and a flash player for everybody else - I refuse to create ogg.
public function getSearchableContent() { return $this->title.' '.$this->description.' '.$this->tags; }
That should work
That did the trick. Thank you very much.