Menu Manager Database Templates kicking back smarty errors

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
mrk

Menu Manager Database Templates kicking back smarty errors

Post by mrk »

In the Menu Manager i created duplicates of the cssmenu.tpl one called top_bar.tpl and bottom_bar.tpl.
but when i go to use them it is kicking back smarty errors.

string(80) "Smarty error: unable to read resource: "module_file_tpl:MenuManager;top_bar.tpl""

and

string(83) "Smarty error: unable to read resource: "module_file_tpl:MenuManager;bottom_bar.tpl""

i have inserted both into my template like this:

Code: Select all

{menu template='top_bar.tpl'}
and

Code: Select all

{menu template='bottom_bar.tpl'}
am i missing something here.
if i use:

Code: Select all

{menu template='cssmenu.tpl'}
it works fine.

Thanks in advance.
cyberman

Re: Menu Manager Database Templates kicking back smarty errors

Post by cyberman »

mrk wrote: i have inserted both into my template like this:

Code: Select all

{menu template='top_bar.tpl'}
and

Code: Select all

{menu template='bottom_bar.tpl'}
Looks like there are  some name conventions and sign _ makes trouble ...
mrk

Re: Menu Manager Database Templates kicking back smarty errors

Post by mrk »

Hey thanks for your quick response Cyberman, but i changed them by removing the underscore "_" but it is still kicking back those same errors
here's a link:
http://nafc2.com/

THanks again.
User avatar
chead
Forum Members
Forum Members
Posts: 63
Joined: Tue Feb 06, 2007 4:01 am

Re: Menu Manager Database Templates kicking back smarty errors

Post by chead »

Probably a silly question, but are your topbar and bottombar templates saved in the database or as files? The 'template' parameter is different depending on where the template is stored.

From help:
(optional) template="bulletmenu.tpl" - The template to use for displaying the menu. Templates will come from the database templates unless the template name ends with .tpl, in which case it will come from a file in the MenuManager templates directory
cyberman

Re: Menu Manager Database Templates kicking back smarty errors

Post by cyberman »

Are there real menu manager template files inside menu managers template folder? If not and duplicated mm templates are stored in database, you have to cut ".tpl"
mrk

Re: Menu Manager Database Templates kicking back smarty errors

Post by mrk »

Thanks y'all we are getting closer. cutting the ".tpl" killed the error message and the bottom bar is showing  just fine, but the top bar is just not showing at all. when i "view source" it shows in the the html but it is nto showing up on screen.

the link again is:
http://nafc2.com/
cyberman

Re: Menu Manager Database Templates kicking back smarty errors

Post by cyberman »

Have seen you import some stylesheets - maybe there are some "crossing" stylesheets  ::) ...
mrk

[solved] Menu Manager Database Templates kicking back smarty errors

Post by mrk »

Thats was it my good man!
many many many thanks!
;D :D ;D :D ;D
Locked

Return to “CMSMS Core”