[Solved] Second Content Tag not displaying editable area

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
baldguy
Forum Members
Forum Members
Posts: 34
Joined: Mon Jan 28, 2008 4:04 am

[Solved] Second Content Tag not displaying editable area

Post by baldguy »

Upgraded to 1.11.4

In my template I have the following code:

Code: Select all

{content assign=maincontent label="Main Content"}
{content block='second_block' assign=sidebar label='Sidebar'}
	{if $sidebar}
		<div id="sidebar">
			{$sidebar}
		</div>
		<div id="content_2col">
			{$maincontent}
		</div>			
	{else}
		<div id="content_1col">
			{$maincontent}
		</div>
	{/if}
When I go to add a new page, I am presented with the primary content area (labeled "Main Content"), and a space where the second content area should be. It is labeled correctly, "Sidebar", and there is a blank space where the textarea/editor should be, but no way to enter information.

Firebugging it shows the textarea is there with visibility:hidden, at the element level.

I also tried adding wysiwyg='true' to the second content block, but that didn't help.

I'm using TinyMCE as the default editor in the site.

I've tried clearing the browser cache and the site cache. Still nothing.

What did I miss that would prevent this from displaying?

Thanks.
Last edited by baldguy on Fri Dec 28, 2012 3:16 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Second Content Tag not displaying editable area

Post by calguy1000 »

Just tested this... with this content in a brand new template:

Code: Select all

{process_pagedata}<!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" >
<head>
<title>{sitename} - {title}</title>
{metadata}
{cms_stylesheet}
</head>
</__body>

<!-- start header -->
<div id="header">
  <h1>{sitename}</h1>
</div>
<!-- end header -->

<!-- start menu -->
<div id="menu">
  {menu}
</div>
<!-- end menu -->

<!-- start content -->
<div id="content">
  <h1>{title}</h1>
{content assign=maincontent label="Main Content"}
{content block='second_block' assign=sidebar label='Sidebar'}
   {if $sidebar}
      <div id="sidebar">
         {$sidebar}
      </div>
      <div id="content_2col">
         {$maincontent}
      </div>         
   {else}
      <div id="content_1col">
         {$maincontent}
      </div>
   {/if}
</div>
<!-- end content -->

<__body>
</__html>
No issues here, so therefore you will need to do some more digging.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
baldguy
Forum Members
Forum Members
Posts: 34
Joined: Mon Jan 28, 2008 4:04 am

Re: Second Content Tag not displaying editable area

Post by baldguy »

Well, apparently it's something else that's gone wrong, as I copy/pasted your template into a new template on my site, and I'm still not getting the sidebar textarea/editor.

Thanks for the help.
baldguy
Forum Members
Forum Members
Posts: 34
Joined: Mon Jan 28, 2008 4:04 am

Re: Second Content Tag not displaying editable area

Post by baldguy »

Found it.

In my TinyMCE configuration, I had the following in the Advanced->Extra Configuration box:

Code: Select all

extended_valid_elements : "iframe[marginheight|id|frameborder|scrolling|align|marginwidth|name|id|src|height|width|]"
in an attempt to get the editor to render iframes for embedded video.

Removing that caused the second editor box to display.

Edit: Must have been a typo - probably the last pipe after width - because adding the code from this comment http://forum.cmsmadesimple.org/viewtopi ... 79#p289179 works fine, and keeps the iframe.
Post Reply

Return to “CMSMS Core”