Search to block

Permalink
Hi I was creating my new block. How can search to my new block?

 
citytech2 replied on at Permalink Reply
citytech2
Go to any page->edit that page->click on any panel(enclosed with red dotted border)->a pop up appear->choose "Add Block"->Choose your one.
That's it.

Citytech
JSA1972 replied on at Permalink Reply
Thanks Sorry I mean that how in page search box can find to my new block title or url etc....hard to explain! Sorry no good my english!
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
You can add a function in your block's controller named getSearchableContent(). This should return a plain text from of the block's content.

Then the C5 search system will index your block next time the re index job is run.
JSA1972 replied on at Permalink Reply
Great. Thank you very much.