Update HTML in TinyMCE updates the wrong content block

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.
Post Reply
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Update HTML in TinyMCE updates the wrong content block

Post by tophers »

Nearly half the time that I edit the html code directly in TinyMCE it updates the wrong content block (replaces the sidebar content when I'm editing the main content block, for example). Doesn't happen all the time, but enough to cause mayhem with the content. I'm particularly worried about the site going live and the updates being handed over to the client.

I'm running CMSMS version 1.2, and TinyMCE version 2.2.5
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: Update HTML in TinyMCE updates the wrong content block

Post by tophers »

Thought I'd provide a bit more information (in the hopes that someone can help!)

My template has four content blocks:
{content block='Left bar'}
{content block='Header'}
{content block='Sidebar'}
{content}

When I edit the HTML in one content block, it will update the wrong block (ie - updating Sidebar will replace the content of Header). I have no idea why. I'm running the latest version of CMSMS and TinyMCE. In case it helps, here's the site I'm working on:

http://www.tmpcanada.ca/clients/ctcc2/
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Update HTML in TinyMCE updates the wrong content block

Post by Dr.CSS »

What does the actual template look like?...
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: Update HTML in TinyMCE updates the wrong content block

Post by tophers »

Here's the template I'm using:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Change lang="en" to the language of your site -->

<head>

<title>{sitename} - {title}</title>
<!-- The sitename is changed in Site Admin/Global settings. {title} is the name of each page -->

{metadata}
<!-- Don't remove this! Metadata is entered in Site Admin/Global settings. -->

{stylesheet}
<!-- This is how all the stylesheets attached to this template are linked to -->

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
<!-- Relational links for interconnections between pages, good for accessibility and Search Engine Optmization -->


{literal}
<__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
	var nw="auto",w=document.documentElement.clientWidth;
	if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script>
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
<!-- The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Top menu + 2 columns" -->


<!--[if IE]>
<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
<![endif]-->
<!-- The above JavaScript is required for CSSMenu to work in IE -->

</head>

</__body>

<div id="pagewrapper">
<div id="contentwrapper">

    <!-- start accessibility skip links -->
    <ul class="accessibility">
      <li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
      <li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
    </ul>
    <!-- end accessibility skip links -->


    <hr class="accessibility" />
    <!-- Horizontal ruler that is hidden for visual browsers by CSS -->

   <!-- Start Top Navigation. Edit the footer in the Global Content Block called "topnav" -->
   <div id="topnav">
              {global_content name='topnav'}
           <!-- End Top Navigation  -->
   <hr class="accessibility" />
   </div>
   <!-- End Top Navigation -->

      <!-- Start Navigation -->
      <div id="menu_horz">
         <h2 class="accessibility">Navigation</h2>
         {menu template='cssmenu_mod.tpl'}
      <hr class="accessibility" />
      </div>
      <!-- End Navigation -->

   <!-- Start Left bar-->
   <div id="leftbar">
      {content block='Left bar'}
   </div>
   <!-- End Left bar-->

   <!-- Start Search-->
   <div id="search">
          {search}
   </div>
   <!-- End Search -->


   <!-- Start Breadcrumbs -->
   <div class="breadcrumbs">
        {breadcrumbs starttext='You are here' root='Home' delimiter='»'}
   <hr class="accessibility" />
   </div>
   <!-- End Breadcrumbs -->


   <!-- Start Content (Navigation and Content columns) -->
   <div id="content">

      <!-- Start Header -->
      <div id="header">
         <h2 class="section">{title}</h2>
         {content block='Header'}
      </div>
      <!-- End Header -->

      <!-- Start Sidebar -->
      <div id="sidebar">
          <div class="hascontent">
             {content block='Sidebar'}
          </div>
      </div>
      <!-- End Sidebar -->

      <!-- Start Content Area -->
      <div id="main">
         <!-- <div style="float: right;">{print showbutton=false script=false}</div> -->
         {content} <br />

         <!-- Start relational links -->
	 <div class="hr"></div>
	 <div class="right49">
	 	<p>{anchor anchor='main' text='^ Top'}</p>
	 </div>
         <div class="left49">
            <!-- Start relational links off
               <p>{cms_selflink dir="previous" label="Previous page: "} <br />
               {cms_selflink dir="next"}</p>
            End relational links off -->
          </div>

         <!-- The label parameter doesn't need to be there if you're using English, but is here to show how it's used if you don't want the English text "Previous page" -->
	 <!-- End relational links -->

      <hr class="accessibility" />
      </div>
	  <!-- End Content Area -->


   </div>
   <!-- End Content -->


   <!-- Start Footer. Edit the footer in the Global Content Block called "footer" -->
   <div id="footer">
      {global_content name='footer'}
   </div>   
   <!-- End Footer  -->

</div><!-- end contentwrapper -->
</div><!-- end pagewrapper -->
<__body>
</__html>
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Update HTML in TinyMCE updates the wrong content block

Post by Dr.CSS »

Have you tried using all lower case and no spaces between words?...
User avatar
tophers
Forum Members
Forum Members
Posts: 218
Joined: Thu Jun 07, 2007 7:25 pm

Re: Update HTML in TinyMCE updates the wrong content block

Post by tophers »

mark wrote: Have you tried using all lower case and no spaces between words?...
Can I make those changes without affecting the content?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Update HTML in TinyMCE updates the wrong content block

Post by Dr.CSS »

No it looks for the name of the content block, if changed the new block will show up but empty...
Post Reply

Return to “CMSMS Core”