Can't user the search core module in menu template

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
larsbehrens
New Member
New Member
Posts: 3
Joined: Thu Jan 28, 2016 11:10 am

Can't user the search core module in menu template

Post by larsbehrens »

Hey everyone,

I've been trying to fix a problem for three days now and still can't figure it out.

I'm trying to implement a search function in my website, which works properly. The only problem i'm facing is that i can't put it in into my menu template. When te following search tag, "{search resultpage=zoekresultaten search_method=post}"is put into a page template, everything works properly, but when i put the search tag into a menu template, and call that menu template in my page template with: "
{menu number_of_levels=1 template="testsearch"} ", it gives my the error that the search tag doesn't exist (which obviously isn't true).

Here's a screentshot of the page after submitting the page template with the menu template tag in it:

Image

Even weirder tho, when i delete the search tag from my menu template, submit the page template, and than add the search template again to my menu template, there's no problem at all, and everything works properly. This isn't a solution tho, since i'd have to remove the search tag out of my menu template everytime i'd make a change to my page template.

My specs are the following:

CMSMS version = 1.12.1 rotinki (latest)
Search core module = 1.7.13 and hasn't been tempered with
I dont know if this problem existed in previous versions since this is the first time using this version.
Search config: default config, and works properly when the tag has been put into a page template, but doesn't work when put into a menu template.

list of modules:
CMSMailer 5.2.2
FileManager 1.4.5
MenuManager 1.8.7
ModuleManager 1.5.8
News 2.15.2
Printing 1.1.2
Search 1.7.13
ThemeManager 1.1.8
TinyMCE 2.9.12
TruetypeText 2.0.2
RSS2HTML 1.2.2
PHPMyAdmin 2.8.2-1
ModuleMaker 0.3.1
CGExtensions 1.50
FormBuilder 0.6.2
NMS 2.3.2
CMSPrinting 1.0.5
MicroTiny 1.2.9
AjaxMadeSimple 0.4.0
JQueryTools 1.3.4
CGSimpleSmarty 1.9.1
CGBlog 1.12.9
FrontEndUsers 1.29
CGContentUtils 1.5.1

Server specs:
centos 6
PHP 5.4.23
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Can't user the search core module in menu template

Post by velden »

I don't know the cause but just tested and was able to put the {search} tag into an almost default menu template. Same versions of cmsms, search and menu manager.

You didn't copy and paste the tag from some example? Perhaps got some extra invisible 'characters' copied along.
larsbehrens
New Member
New Member
Posts: 3
Joined: Thu Jan 28, 2016 11:10 am

Re: Can't user the search core module in menu template

Post by larsbehrens »

No i didn't, and when i literally coppied the exact same string, and put it into a random page template, everything works like a charm. besides that, i'm aware that it works on most websites (i've got more websites running on the latest cmsms, where this problem doesn't occur).

i've event tried creating an empty menu template, containing only the search tag, and the problem still occurs. I had te same problem on 1.12 by the way.

I think it's one of the modules that are causing the problem, though i wouldn't know why.

I also checked if there would be any conflicting tags withing global content blocks or user defined tags.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Can't user the search core module in menu template

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
larsbehrens
New Member
New Member
Posts: 3
Joined: Thu Jan 28, 2016 11:10 am

Re: Can't user the search core module in menu template

Post by larsbehrens »

Doesn't any one have a solution? I still can't figure out the cause of this problem. I've found a similar thread here:

http://forum.cmsmadesimple.org/viewtopi ... =8&t=73271
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Can't user the search core module in menu template

Post by Dr.CSS »

Can I ask why you would put the search in the menu..?
Post Reply

Return to “The Lounge”