Hi Guys
Im an experienced developer but pretty new to the MODX CMS and i wonder if somebody could give me some pointers on an issue i have with the search snippet..
I’ve set the up search snippet and in general all is working fine apart from that as i see it, it only searches the main content area and wont search template variables. Is this correct?
I want to use template variables for different areas of content, but i do need these to be searchable too? Am i being an idiot and overlooking something obvious.
MODX seems to be the best CMS ive used to date, hand down and im very excited by it but am having a few teething problems(as expected). If anyone can help it would be much appreciated!!
Hi,
the latest version of ajaxSearch search through TVs.
If you want to add this feature in FlexSearchForm have a look at doSearch Function in ajaxsearch.inc.php
:-)
Thanks mate for that info, ill take a look into that!!
...can i take it then that the problem i have is just a restriction of the standard FlexSearchForm? Im surprised there is no one else asking for help on the same problem.
-
MODX Staff
- 12,272 Posts
AjaxSearch also degrades for browser that don’t support Javascript, too.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Ive tried out the ajax search now, and although i haven’t styled it in any way, i do have it working.
This also doesn’t seem to search TV’s though?
Anyone have any ideas? Ideally i dont really need the ajax search. The concept of the FlexSearchForm would be fine for what i want to do but i just need something that will search TV’s properly...
does anyone have any ideas?
...and does nobody else have this problem? im new to MODX but one of the key benefits to me is being able to make my designs work with the CMS, and in reality this involves lots of TV’s rather than just a big content block.
Any help would be greatfully received!!
Thanks
If you use the version heliotrope talked about it should search through tvs, although it will not process any of the @ bindings, so that will have to wait for a future release. If you don’t want the ajax functionality you can still use it and set the parameter &ajaxSearch=`0` then it will function just like flexsearch.
Thanks for the info guys. Much apreciated!
I’m using version 1.0 by the look of it so I’ll install 1.5 and give that a try..
Cheers ;-)
Ive installed version 1.5 now, nice and easy to do, problem is now i get an error where my form field was. Ive double checked everything and it all seems correct. I really dont understand how to debug this error though?
Error below:
Parse error: syntax error, unexpected ’<’ in /sites/rentin/htdocs/manager/includes/document.parser.class.inc.php(705) : eval()’d code on line 1
Any of you kind people have any ideas?
Cheers
Try recopying the code into the snippet, looks like you probably have an extra start php tag.