smarty error
smarty error
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 ?
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 ?
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: smarty error
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.
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: smarty error
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
ok, when I click on that thing to edit the template I get the following css:
no {metadata} here.
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;
}
Re: smarty error
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?
You should also read this.
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?
You should read the documentation as much as possible.poca wrote:I search a bit and found this http://docs.cmsmadesimple.org/troublesh ... stylesheet
You should also read this.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: smarty error
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.
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
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.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 ?
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
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: smarty error
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.
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
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
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
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!