Newby- When viewing content of new page I only see code

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
ozstar
New Member
New Member
Posts: 4
Joined: Sun Jun 13, 2010 10:05 am

Newby- When viewing content of new page I only see code

Post by ozstar »

Hi,

I am trying to follow the instructions to convert a static site to a new cms one.

I have installed it in wamp in an /localhhost/cmsmadesimple/ folder.

The cms install works fine.

I then copied my html files to that folder above.  All that went well except cms has an images folder and so does my static site.
I copied all image files in cms folder to the static site images folder.

I followed the instructs and created a new content page named the same as the html one, in my case '08-computers'.

I copied all the code for this page in DW, to the new content area and the tried to view it.

All I see is the code plus a lot of extra code at the top. Here are a few lines of that extra cms code.

What am I doing wrong?

When one copies the old html content into the cms area does one copy 'everything from top to bottom that shows in the code area of DW?

Appreciate the help.

Thanks

oz



string(170) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag:     font-size: x-small;
color: #666666;
(Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(246) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag:     font-family: Arial, Helvetica, sans-serif;
font-style: italic;
font-weight: bold;
font-size: small;
(Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(202) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag:     color: #FF0000;
font-family: Verdana, Arial, Helvetica, sans-serif;




string(170) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag:     font-size: x-small;
color: #666666;
(Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(246) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag:     font-family: Arial, Helvetica, sans-serif;
font-style: italic;
font-weight: bold;
font-size: small;
(Smarty_Compiler.class.php, line 446)" string(117) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(202) "Smarty error: [in content:content_en line 1]: syntax error: unrecognized tag:     color: #FF0000;
font-family: Verdana, Arial, Helvetica, sans-serif;
Peciura

Re: Newby- When viewing content of new page I only see code

Post by Peciura »

All  JavaScript and CSS has to be surrounded with tags {literal} and {/literal}.
http://www.smarty.net/manual/en/languag ... iteral.php

It is good idea to put all CSSs to 'Layout » Stylesheets'
http://wiki.cmsmadesimple.org/index.php ... tylesheets
replytomk3

Re: Newby- When viewing content of new page I only see code

Post by replytomk3 »

PM me a sample html and css files and I'll do a very rough template from them and post results.

Basically, CSS is copied as is to a new stylesheet.

Template is created from old HTML page without the content that will change from page to page.

The content that changes from page to page is placed in the Wysiwug editor.
Post Reply

Return to “Layout and Design (CSS & HTML)”