Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

Site Search #78

Open
mdestafadilah opened this issue Jul 31, 2018 · 2 comments
Open

Site Search #78

mdestafadilah opened this issue Jul 31, 2018 · 2 comments
Labels

Comments

@mdestafadilah
Copy link

Hi,

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

Thanks.

@cosmomathieu
Copy link
Member

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

@mdestafadilah
Copy link
Author

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 "field_id_".. i will update soon ... i just add thats line.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants