Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2015-03-13 05:39:26
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 278
search exact text
I’ve two sections: 1.Articles here posting the pages and information 2.Result here posting the students result.
added the following tags to my page template:
<txp:search_input label="Search" match="exact" section="result" />
<txp:search_input label="Search" match="exact" section="articles" />
now i’m facing with problem:
1. if i type student
on any search box, it will find from both section articles where is the world of student.
2. i post the results of students in the format of: student-001
, student-002
, student-003
, etc… now if i type student on the search box, it will search all the students result ! but i don’t want to find all the results (student-001, student-002,etc…) it should find the exact word which i typed.
now TXP will think the world of student-001 is two separate words ( student & 001 )
Last edited by raminrahimi (2015-03-13 05:41:46)
Offline
Offline
#3 2015-03-14 10:39:09
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 278
Re: search exact text
i added that code on the form of search_results
also, still both search box works same function :-(
Offline
Pages: 1