Page 1 of 1

smarty error

Posted: Thu Dec 27, 2012 6:51 pm
by poca
Hi. Have a problem now on my site (nibenilux.eu), after modifying a css. at some point it just stopped to load properly.
I search a bit and found this http://docs.cmsmadesimple.org/troublesh ... stylesheet
it seems like solution to my problem but now I can't get where the HTML template file is located ? Where to replace {stylesheet} by {cms_stylesheet} ? Searched all files inside of my hosting and only found empty html files...

please, someone can explain a bit what's going on ?

Re: smarty error

Posted: Thu Dec 27, 2012 7:24 pm
by staartmees
Templates are stored in your database. You can access and edit them after logging in to the backend of your site and selecting Layout > templates. In the template you use, replace {stylesheet} with {cms_stylesheet} and save it.

Re: smarty error

Posted: Thu Dec 27, 2012 7:49 pm
by poca
ok, inside of the edit thing there is no {stylesheet} anywhere.

Re: smarty error

Posted: Thu Dec 27, 2012 8:15 pm
by staartmees
The template you use comes with {stylesheet} or {cms_stylesheet}. So if for some reason none of both is there, put {cms_stylesheet} after {metedata} and save the template.

Re: smarty error

Posted: Thu Dec 27, 2012 8:38 pm
by poca
ok, when I click on that thing to edit the template I get the following css:

Code: Select all

#left_menu li a{
color: #2e4d00; 
font-size: 12px;
text-decoration: none;
display: block;
}

#left_menu li.level1 a{
font-weight: bold;
}

#left_menu li.level1:hover a{
color: #fff; 
}

#left_menu li.level1{
background-image: url('/uploads/images/ITfrut/str.png');
background-repeat: no-repeat;
background-position: 10px 10px;
margin-top: 5px;
margin-bottom: 5px;
width: 154px;
margin-left: -40px;
padding: 8px 11px 8px 28px;
 
color: #2e4d00; 
font-size: 12px;
font-weight: bold;
list-style: none;
 position: relative;
cursor: pointer;
}

#left_menu li.level1:hover {
color: #fff; 
background: #7bbc1c; 
background-image: url('/uploads/images/ITfrut/str_b.png');
background-repeat: no-repeat;
background-position: 10px 10px;
}

#left_menu li.level1 ul{
display: none;
	left: 100%;
	top: 0px;
	position: absolute;

}

#left_menu li.level1:hover > ul{
display: block;
background: #7bbc1c; 
border-radius: 5px;
opacity: 0.95;
}

#left_menu li.level1  ul li.level2 a{
color: #fff; 
background:none;
border-radius: 0px;
}

#left_menu li.level1  ul li.level2 {
width: 174px;
margin-left: -40px;
padding: 5px 8px;
color: #fff; 
background:none;
border-radius: 0px;
margin-top: 4px;
margin-bottom: 4px;
cursor: pointer;
}

#left_menu li.level1  ul li.level2:hover {
background:  #2e4d00;
}

#left_menu li.level2 ul{
display: none;
	left: 100%;
	top: -4px;
	position: absolute;
}

#left_menu li.level2:hover  ul{
display: block;
background: #7bbc1c;
border-radius: 5px;
}

#left_menu li.level2:hover ul li.level3 a{
width: 174px;
margin-left: -40px;
padding: 5px 8px;
color: #fff; 
background: #7bbc1c;
border-radius: 0px;
margin-top: 4px;
margin-bottom: 4px;
}

#left_menu li.level2  ul li.level3:hover a{
background:  #2e4d00;
}

#left_menu li.level1:hover li{
position: relative;
}
no {metadata} here.

Re: smarty error

Posted: Thu Dec 27, 2012 11:11 pm
by Jo Morg
OK... I'm trying to understand what you did and what you are trying to do... but not being able to.
How come you are trying to edit a stylesheet on a template that is otherwise empty?!
So... have you read this?
Did you take some time to peek and try to understand the sample templates that are optionally installed as well as the linked stylesheets?
Have you tried to read the help that is available on the CMSMS installation?
poca wrote:I search a bit and found this http://docs.cmsmadesimple.org/troublesh ... stylesheet
You should read the documentation as much as possible.
You should also read this.

Re: smarty error

Posted: Fri Dec 28, 2012 12:51 pm
by poca
thanks for help! Of course I'll read the docs.
but for now, I'm asking myself where the html template file is ?
for example in this article http://docs.cmsmadesimple.org/layout/ba ... e-template
Where I'm supposed to find this file ? Because initially it was told to replace {stylesheet} by {cms_stylesheet} in that html file.

Re: smarty error

Posted: Fri Dec 28, 2012 10:42 pm
by Jo Morg
poca wrote:thanks for help! Of course I'll read the docs. but for now, I'm asking myself where the html template file is ?
OK... maybe for a beginner it is not too clear but, being a Content Management System, CMSMS is, as 90% of CMS's, DB based.

So most of the data needed to work on a site is on some table on a database on the server. You access templates, stylesheets, pages and contents on special editors on the Admin Console of CMSMS.

The files involved are from the core and modules and don't need to be changed unless specified by any documents or instructions to do so.

Other files that you can upload and change at will are image files.
But mostly, data is stored on a DB and can be accessed on the backend.
How to do it and where to do it is on the Docs

Re: smarty error

Posted: Mon Dec 31, 2012 5:42 pm
by poca
I can't get my website working still...
What I did only, I was playing with the stylesheet of the top menu and that's it. It was fine for some time, but one day I changed it (like before) and since then it shows this http://nibenilux.eu/.

I already tried to create a new template and theme but nothing happens.
I don't understand why a simple change in css results in such shitty consequences.

Re: smarty error

Posted: Tue Jan 01, 2013 6:33 pm
by frankmanl
Poca, your site does not load at all, it gives a 504 Gateway Time-out error.
I'm willing to help, but I don't understand what you did and changed (your question is not clear at all), but please read the documentation Jo Morg pointed at, especially the chapter about templates: http://docs.cmsmadesimple.org/layout/cr ... n-template.
When I look at the image in your post of 27 Dec 20.49 it looks like you removed all templates but NCleanBlue and then started changing that template - a really wise thing to do!
See if you can import an original template that comes with the installation and then look if your site works when you use that unchanged original template.
If so, then you have a good starting point.
If not, then maybe you should consider your current site lost and do a fresh installation (but that's totally your decision).
If you don't understand what a template is and how it works, if you don't understand how to edit templates and stylesheets within CMS Made Simple, if you don't understand the difference between an HTML template and a CSS stylesheet then maybe you should do some reading on these subjects first.

Frank

Re: smarty error

Posted: Tue Jan 01, 2013 6:38 pm
by poca
ok. finally the hosting service they managed to find the earliest version of the DB, before I did changes in the stylesheet. now it works! THANK YOU for posts anyway!