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

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.

View Replies: View Best Answer
Mnkras replied on at Permalink Reply
Do you know php at all? and could you possibly post the block?
gparke replied on at Permalink Reply 1 Attachment
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.
Mnkras replied on at Permalink Best Answer Reply
public function getSearchableContent() {
      return $this->title.' '.$this->description.' '.$this->tags;

That should work
gparke replied on at Permalink Reply
That did the trick. Thank you very much.