Page 1 of 1

Using {search} tag in Menu Manager

Posted: Tue Aug 04, 2015 4:57 am
by squeakyduck
I'm setting up a css menu, and integrating the search function into it by calling the {search} tag in a custom template in the Menu Manager.

This produces the correct output on the site, however when I come to edit pages in admin, the html breaks at the navigation section with error:

Code: Select all

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "module_db_tpl:MenuManager;css3_navigation" on line 46 "{search}" unknown tag "search" <-- thrown in /mysitehere/public_html/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 46
I'm probably doing something wrong here, but if anyone could point me in the right direction, I'd be very grateful. Thanks.

(CMSMS: v1.12)

Re: Using {search} tag in Menu Manager

Posted: Tue Aug 04, 2015 8:46 am
by velden
I did some quick tests on 1.12 and can NOT confirm this behavior:

Menu template 'test' (last part of it):

Code: Select all

{/if}

{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
<li>{search} test menu</li>
</ul>
{/if}
Part of page template:

Code: Select all

      {* Start Navigation *}
      <div style="float: left; width: 25%;">
         {menu loadprops=0 template='test'}
      </div>
      {* End Navigation *}
Search box shows properly in menu on front end. Editing content of page is not a problem.

Maybe you want to share your menu and page templates.

Re: Using {search} tag in Menu Manager

Posted: Tue Aug 04, 2015 4:18 pm
by squeakyduck
Hmm, odd. I created a template in Menu Manager with just {search}, then a layout template with:

Code: Select all

<__html><head></head></__body>
  {content}
  {menu loadprops=0 template='test'}
<__body></__html>
Submitting throws error: Syntax error in template "module_db_tpl:MenuManager;test" on line 1 "{search}" unknown tag "search"

I tested this on an online demo of CMSMS and it works as expected. I've verified the install, and all the hashes match, so it must be the way ours is configured.

Re: Using {search} tag in Menu Manager

Posted: Tue Aug 04, 2015 7:56 pm
by Dr.CSS
You should always start your posts with the system info found in the CMSMS admin as this may have a profound effect on how much help you get and expedience of said help...

Re: Using {search} tag in Menu Manager

Posted: Tue Aug 04, 2015 10:35 pm
by squeakyduck
Dr.CSS wrote:You should always start your posts with the system info found in the CMSMS admin as this may have a profound effect on how much help you get and expedience of said help...
Cms Version: 1.12
Installed Modules:
CMSMailer: 5.2.2
FileManager: 1.4.5
MenuManager: 1.8.6
ModuleManager: 1.5.8
News: 2.15.1
CGGoogleMaps2: 0.99.1
Search: 1.7.12
ThemeManager: 1.1.8
TinyMCE: 2.9.12
Gallery: 2.0.2
CGExtensions: 1.48.5
FormBuilder: 0.8.1.1
CGSimpleSmarty: 1.9.1
jQuery: 1.2.0
JQueryTools: 1.3.5.2
CMSPrinting: 1.0.5
MicroTiny: 1.2.9
Captcha: 0.5.2

Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 512000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:
phpversion: 5.4.19
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 512M
max_execution_time: 120
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 128M
upload_max_filesize: 512M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.42
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found