Page 1 of 1
[SOLVED!]Pages and Content Blocks
Posted: Thu Mar 25, 2010 9:25 pm
by pgwalsh
I am curious why when I add a new page or content block they contain:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html>
<head>
<title>Untitled document</title>
</head>
</__body>
<__body>
</__html>
When I look at a page source while live I'm actually seeing the extra embed html head title body etc. That doesn't seem right to me.
Re: Pages and Content Blocks
Posted: Thu Mar 25, 2010 9:41 pm
by Wishbone
I've never seen that in any of my installs, but check under "Site Admin" -> "Page Defaults"
There is a section called "Content" that contains page defaults.. Mine says:
Code: Select all
<!-- Add code here that should appear in the content block of all new pages -->
Re: Pages and Content Blocks
Posted: Thu Mar 25, 2010 10:18 pm
by pgwalsh
wishbone wrote:
I've never seen that in any of my installs, but check under "Site Admin" -> "Page Defaults"
There is a section called "Content" that contains page defaults.. Mine says:
Code: Select all
<!-- Add code here that should appear in the content block of all new pages -->
Mine says . So I don't know why every time I add a new page there's a header and footer.
Re: Pages and Content Blocks
Posted: Fri Mar 26, 2010 3:07 pm
by pgwalsh
Peciura wrote:
It is in you page templates "Layout » Templates »
TEMPALATE"
If you want to remove it read this page first
http://www.w3schools.com/tags/tag_doctype.asp
The doctype declaration should be the very first thing in an HTML document, before the tag.
If you still want to build web pages with CMSms you would better keep it.
You clearly are not following what the problem is and I would appreciate you removing your post because you're going to throw everyone off.
The templates are fine, enough said.
The problem is when I create a new
page or
content block under
content they include the doctype declaration, header, title and body tags. When I load a page I may have 3 or 5 of those throughout the document. They're not suppose to be in the body. So clearly there's something wrong with my default page and content blocks when adding new ones and it's not showing up in page defaults.
Re: Pages and Content Blocks
Posted: Fri Mar 26, 2010 3:32 pm
by jmcgin51
Actually, everyone who has responded to you is going above and beyond the call, since you have provided very little information about your problem.
I would suggest you start here:
http://forum.cmsmadesimple.org/index.ph ... 661.0.html
Re: Pages and Content Blocks
Posted: Fri Mar 26, 2010 4:38 pm
by Peciura
Have you tried to turn WYSIWYG off ? Give link to a page.
Re: Pages and Content Blocks
Posted: Fri Mar 26, 2010 4:45 pm
by pgwalsh
Above and beyond, really? I've written applications that 1000's of people use that are not web based and provided help to users far beyond this thread. I didn't mean to offend anyone if that's how you or they feel.
Like other problems with this CMS I've run into, I'll probably figure out a solution myself. I wasn't sure if this was a common problem or quite unique and I searched the forum, but I could not find the answer. I asked the question, in what I thought was a sensible way, with an example of the issue and where it was occurring. I'm not sure what other information I could provide other than explaining what I have.
wishbone was on the right track.
Here's hopefully a better explanation.
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html>
<head>
<title>Untitled document</title>
</head>
</__body><!-- my template starts here -->
<!-- title h1 h2 menus etc and everything else before the side content -->
<!-- Start Side Block -->
**** This is where I have a global content block. ***
<div id="sidebar">
<class="hascontent">
**** HERE IS WHERE ANOTHER DOCTYPE, HTML,TITLE,BODY OCCUR ****
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html>
<head>
<title>Untitled document</title>
</head>
</__body>
<div class="ccbox" style="text-align: center;">
<h4 style="text-align: center;">Only The Good Stuff!</h4>
<ul style="color: #504b44; font-size: 90%; font-weight: 600; text-align: center; list-style: none; margin: 0; padding: 0px 0px 10px 0px;">
<li style="padding-top: 5px;">Real Fruit Juice</li>
<li style="padding-top: 5px;">Naturally Sweetened with<br />Stevia and Xylitol</li>
<li style="padding-top: 5px;">Low Calorie</li>
<li style="padding-top: 5px;">No Added Sugar</li>
</ul>
</div>
<__body>
</__html>
**** Then we go into the main body content, which contains another doctype, head, body ****
<div id="main"> etc etc etc
<__body>
</__html>
When I create a new page or content block they contain the extra headers body tags etc. How do I remove or make them not appear in the body or remove them from the base of content?
Here's a link:
http://www.california-naturals.com/
Re: Pages and Content Blocks
Posted: Fri Mar 26, 2010 4:48 pm
by pgwalsh
Peciura wrote:
Have you tried to turn WYSIWYG off ? Give link to a page.
I did turn it off and that's where I noticed the extra tags. However if I create a new page the tags are in there. So I want to be able to create a tag or global content block without those tags, but I'm not sure where they're coming from. They're not coming from the defaults, but since you mentioned WYSIWYG I'm going to looke at TinyMCE and see if it is adding those extra tags for some reason.
Re: Pages and Content Blocks
Posted: Fri Mar 26, 2010 4:59 pm
by ironblaze94
Did you upload CMSMS via FTP?
Re: Pages and Content Blocks
Posted: Fri Mar 26, 2010 5:12 pm
by pgwalsh
ironblaze94 wrote:
Did you upload CMSMS via FTP?
I did, but it must have happened during an upgrade because it wasn't originally happening. I'm digging in to different parts to see if I can narrow it down.
Re: Pages and Content Blocks
Posted: Fri Mar 26, 2010 5:16 pm
by Wishbone
You might want to do a phpmyadmin search of your database to see if you can find which table this is coming from, if it is coming from the database. Which version of CMS are you using?
Re: Pages and Content Blocks
Posted: Fri Mar 26, 2010 5:18 pm
by pgwalsh
Okay... Thanks Peciura... The problem is with TinyMCE. I uninstalled it and I'm no longer seeing those extra tags. I'll try to reinstall it, but if they come back, I'll remove TinyMCE from the modules directory and do a fresh install of TinyMCE. I looked at TinyMCE plugins and they were set to default, but I think that may be where the issue is coming from.
The issue was resolved by uninstalling and reinstalling TinyMCE. Thank you all very much for your help.
Re: [SOLVED!]Pages and Content Blocks
Posted: Fri Mar 26, 2010 6:37 pm
by jmcgin51
glad to hear you solved the problem, and thanks for adding the [SOLVED] notation to your original post
In the future, we need at least your version information. Complete system information is also useful. There is a link on the System Info page in the Admin Panel, which will generate a version of the System Info page that is suitable for copy/paste here into the forum.