pagestudiocms / cms

[OUTDATED] The source code to the open source version of PageStudio, not http://pagestudiocms.com
MIT License
1 stars 2 forks source link

Site Search #78

Open mdestafadilah opened 6 years ago

mdestafadilah commented 6 years ago

Hi,

Search module only read first segment for the result? or may i custom search modules?

Thanks.

cosmomathieu commented 6 years ago

I don't remember. I will have to go back and look at the code.

mdestafadilah commented 6 years ago

I just replace this line

$searchFields = $this->db->select('id')->where('is_searchable','y')->get('content_fields');

with this new line code

$this->db->select('content_fields.id, content_types.dynamic_route') ->from('content_fields')->join('content_types', 'content_types.id = content_fields.content_type_id') ->where('is_searchable','y'); $searchFields = $this->db->get();

I just only get "dynamic route" from content type contains value "fieldid".. i will update soon ... i just add thats line.