Page 1 of 1

EditContent misbehaving

Posted: Tue Aug 02, 2011 6:25 am
by wakewatcher
I'm in the process of upgrade all the way back from 1.6.6 to the latest. I haven't done anything yet as I want to verify that 1.6.6 is working. (I have several installations of 1.6.6 I need to upgrade.)

Oddly in one of my installations, "edit content pages" show no content to edit. The admin/content/pages shows the list of content pages but when I click any of them the edit page is blank between the "Edit Content" text and the "back to menu" link.

However I can add and edit News so I'm baffled. Anybody seen this before and now what I might have screwed up?

Thanks.

Re: EditContent misbehaving

Posted: Tue Aug 02, 2011 7:40 am
by compufairy
Hi,

Does the template of that particular site contain the {content} tag?

Anne-Mieke

Re: EditContent misbehaving

Posted: Tue Aug 02, 2011 4:58 pm
by wakewatcher
I apologize I'm not familiar of what or where the template for the site is? I looked under "extentions" and "tags" and there is a link that says "content" is that what you are referring to? Thanks for your help.

Re: EditContent misbehaving

Posted: Tue Aug 02, 2011 5:05 pm
by compufairy
in main menu => layout => templates.
If you check your pages list you can see which templates are in use.

Re: EditContent misbehaving

Posted: Tue Aug 02, 2011 6:31 pm
by wakewatcher
Oh. Yes in operation the templates work to display the content and in the admin/content/pages it shows the associated template but when I click on the page link to edit the content nothing comes up to edit. But the similar look and feel admin/content/news works as expected.

Like I mentioned if this all fixes itself by upgrading I'm ok. My problem is I got to jump from 1.6.6 to the latest and was hoping that it could be as simple as overwriting all the existing code with the latest version and some how auto-magically updating whatever database changes required.

Re: EditContent misbehaving

Posted: Tue Aug 02, 2011 8:38 pm
by calguy1000
<cough>forum rules</cough>.

If you want help, we need information, and we won't ask for it.

Re: EditContent misbehaving

Posted: Tue Aug 02, 2011 8:45 pm
by RonnyK
First,

check if the template, which is showing on the right side of the page you are trying to edit has {content}, so not {content block="someblock"}, but explicitly {content}. Since some releases {content} is a required (was already) but is now checked against.

Ronny

Re: EditContent misbehaving

Posted: Tue Aug 02, 2011 9:55 pm
by wakewatcher
@calguy: After a lot of time looking at my sources and searching the forum (I may have a search term disability) I provided in my first post everything I know about this... version and the observations. I was assuming if it wasn't enough information for some to respond they wouldn't respond. I am very grateful for the responses I got.

@ronnyk/compufairy: Thanks for the suggestions on obviously limited information.

Maybe some pictures would be helpful.

Image

Which results in this.

Image

The left "Left simple navigation + 1 column" template code is:

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: Left sidebar + 1 column" *}


</head>

</__body>
{gaat id="UA-12366205-1"}
<div id="pagewrapper">

    {* 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 Header, with logo image that links to the default start page. Logo image is changed in the stylesheet  "For template: Left menu + 1 column" *}
   <div id="header">
           <h1>{cms_selflink dir="start" text="$sitename"}</h1>
   <hr class="accessibility" />
   </div>
   {* End Header *}


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


   {* Start Breadcrumbs *}
   <div class="breadcrumbs">
        {breadcrumbs starttext='You are here' root='Home' delimiter='&raquo;'}
   <hr class="accessibility" />
   </div>
   {* End Breadcrumbs *}


   {* Start Content (Navigation and Content columns) *}
   <div id="content">

      {* Start Sidebar *}
      <div id="sidebar">

      {* Start Navigation *}
      <div id="menu_vert">
         <h2 class="accessibility">Navigation</h2>
         {menu template='simple_navigation.tpl' collapse='1'}
      </div>
      {* End Navigation *}

      {* Start News *}
      <div id="news">
         <h2>News</h2>
          {news number='3' detailpage='news'}
      </div>
      {* End News *}

      </div>
      {* End Sidebar *}


      {* Start Content Area *}
      <div id="main">
         <div style="float: right;">{print showbutton=true script=true}</div>
         <h2>{title}</h2>
         {content} <br />

         {* Start relational links *}
	 <div class="hr"></div>
	 <div class="right49">
	 	<p>{anchor anchor='main' text='^ Top'}</p>
	 </div>
         <div class="left49">
            <p>{cms_selflink dir="previous" label="Previous page: "} <br />
            {cms_selflink dir="next"}</p>
         </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 pagewrapper *}

<__body>
</__html>
So I guess I was hopeful that someone based on the stated observations would have recognized this before. Since it doesn't appear to be the case perhaps one way to approach it would be to simple copy one of my working 1.6.6. versions over the top of it (except the config.php file and database of course) and hope that fixes it.

Re: EditContent misbehaving

Posted: Wed Aug 03, 2011 5:02 am
by wakewatcher
I copied over the top and the editable content is now there. However it introduced a new (unrelated?) issue which I've posted HERE.