Skip to content

Concrete5 Mod: Searchable HTML block

This mod is simple and should be incorporated into the core ASAP. It enables Concrete5′s search functionality to index textual content within the HTML block type.

Just add the following code to /root/concrete/blocks/html/controller.php, starting at line 20:


	public function getSearchableContent() {
		return strip_tags($this->content);
	}


Voila!

Tags: ,

One Response to “Concrete5 Mod: Searchable HTML block”

  1. Andrew E says:

    Nice catch. This is actually sitting in SVN right now and has been for a little while – we’re just trying to get some other 5.4.1 items out the door with it.

Leave a Reply

©2009 One Hat Design Studio, llc   Blog Admin

map index index map index map index map index map index map index map index map