SOLVED: Template Problem

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
andrzejek

SOLVED: Template Problem

Post by andrzejek »

I have installed "Panoramica" template for my CMSMS, but I got an error message:

string(81) "Smarty error: unable to read resource: "module_db_tpl:MenuManager;pixalhaushoriz""

and both menus (top and right hand side) do not show up. I am fairly new to this, and has just
installed CMSMS, so it is quite possible that solution for that is simple.

This template is in a form of XML and you can actually view the page with the problem here:

http://www.poloniabusiness.com/index.php

I am not sure if there is anything else important, besides the fact that images for this template
are in the upload/Panoramica folder and permission for images is: 644
Last edited by andrzejek on Thu Oct 25, 2007 11:04 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Template Problem

Post by Dr.CSS »

Here is the menu template, seems as tho the theme manager is having a problem, check to see if the other menu tempalte made it in...

Go to Layout » Menu Manager click add template copy/paste this in to it name it and click submit...

{* CSS classes used in this template:
.active - The active page in the horizontal menu (first level).
.bullet_sectionheader - To style section header
hr.separator - To style the ruler for the separator *}
{if $count > 0}

{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}

{repeat string="" times=$node->prevdepth-$node->depth}

{elseif $node->index > 0}
{/if}
{if $node->current == true or $node->parent == true}
url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{elseif $node->type == 'sectionheader'}
url}">{$node->menutext}
{elseif $node->type == 'separator'}

{else}
url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}{/if}
{/foreach}

{repeat string="" times=$node->depth-2}

{/if}
andrzejek

Re: Template Problem

Post by andrzejek »

I don't think it helped. Now I have 3 menu templates. Should I do something else to activate it.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Template Problem

Post by Dr.CSS »

What does the {menu} tag say in the template?...
andrzejek

Re: Template Problem

Post by andrzejek »

I hope you are asking for this:

{cms_module module='menumanager' template='bulletmenu' number_of_levels='1' template='pixalhaushoriz'}


{cms_module module='menumanager' template='Panoramica : ellnav-vert'  start_level='2' collapse='1'}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Template Problem

Post by Dr.CSS »

If you have the named menu templates in place all ready you need to remove the template='bulletmenu' menu tag only takes one template call...

Wonder how that got in there...
andrzejek

Re: Template Problem

Post by andrzejek »

I have removed that but no change. I have tried few templates, then removed all of them as I wanted to stay with this one. Is it possible that this changes something. I am really new to this so, you have to bear with my minimal knoweledge.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Template Problem

Post by Dr.CSS »

You do have the pixalhaushoriz template in menu manager?...

you can use this for your tag...

{menu number_of_levels='1' template='pixalhaushoriz'}
andrzejek

Re: Template Problem

Post by andrzejek »

We are getting somewhere. Top menu is working  :)

I have done the same change for the side menu:

{menu start_level='2' collapse='1' template='Panoramica : ellnav-vert'} (template name is correct)

but this one does not show up and there is no error. Could be that this menu is not active?
andrzejek

Re: Template Problem

Post by andrzejek »

My mistake, there were no sub categories on the Home page, therefore menu would not work.
It works fine on other pages.

Thank you for your help. No I am no my way to learn more about CMS.
chotaboy
Forum Members
Forum Members
Posts: 60
Joined: Tue Sep 11, 2007 3:05 am

Re: SOLVED: Template Problem

Post by chotaboy »

i just want everyone whos new to know this

as for the panoramica template and some others i suspect

heres the problem i saw.. since i had the same exact error message and ll i did to fix it was this

simply head to menu manager and yoll see the menues name like so

Panoramica : ellnav-vert
Panoramica : pixelhaus somethin somethin

they are named wrong

change "Panoramica : ellnav-vert" to "ellnav-vert"

and POOF! it works ... ill be dambed!

i recomment fixing little type o"s like this on the distribution.. just my oppinion but it would help a allready wonderfull product go even farther!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: SOLVED: Template Problem

Post by Dr.CSS »

The exporting of templates will usually only take one menu template, at least in the older ver. of CMSMS that these templates were made in...
chotaboy
Forum Members
Forum Members
Posts: 60
Joined: Tue Sep 11, 2007 3:05 am

Re: SOLVED: Template Problem

Post by chotaboy »

ive noticed lately that i get a weired error with most of the templates since upgrading to 1.2.2.
(im not on 1.2.3 couse it sticks on "site down for maintenance" when i do so i gave up :)  )

when uploading i get version mismatch?

weired

now i kinda like the non xml version of the templates better anywho

i think there should be a zip option for download

so we can manually place templates or get parts from them without having to upload it to do so
Locked

Return to “CMSMS Core”