Upgrade 1.5.2 to 1.11.2 = no main content.
Posted: Thu Oct 25, 2012 3:28 pm
I have just gone through a fairly smooth upgrade.
Though I do seem to have a syntax error on my templates that is preventing content from showing.
NOTE: If I use my modified templates this results in empty main content.
BUT If i use a default clean/new template then I can see my main content.
I am presuming front end users/ custom content or content blocks modules have the wrong syntax. I have been through the forums and tried a few different things but I can't work it out.
I am attaching system info and a copy of one of the broken templates.
Any guidance on where this is going wrong would be very much appreciated.
Template info is below.....
___________________________
{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" lang="en">
<head>
{if isset($detail_title)}
<title>{sitename} - {$detail_title}</title>
{else}
<title>{sitename} - {title}</title>
{/if}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{cms_stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}
{capture assign='captured_content'}{content}{/capture}
</head>
</__body>
<div id="pagewrapper">
{global_content name='topheader'}
<div id="headrest" class="clearfix">
<img class="headerleft" src="/uploads/images/misc/ll.gif" alt="change" width="272" height="93" />
{cms_module module=CustomContent}
{if $ccuser->loggedin() && $ccuser->memberof('Members')}
<div id="mheaderright">
<div class="logout">{cms_module module="FrontEndUsers" form="logout"}</div>
<div id="callus">call us </div>
<div id="search">{search submit="Go" resultpage='search-results'}</div>
</div>
{else}
<div id="headerright">call us <div id="callus">call us </div>
<div id="search">{search submit="Go" resultpage='search-results'}</div>
</div>
{/if}
</div>
{global_content name='bottomheader'}
{* Start Content *}
<div id="content" class="clearfix">
{* Start Sidebar *}
<div id="sidebar">
{* Start Sub Navigation *}
{menu loadprops=0 template='sidenav' collapse='1' start_level='2' excludeprefix="member"}
<hr class="accessibility" />
{* End Sub Navigation *}
</div>
{* End Sidebar *}
{* Start Content Area *}
{content block='rightcolumn' assign='rightcolumn'}
<div id="main">
<div id="mainleft">
<div class="breadcrumbs">
{breadcrumbs starttext='You are here' root='Home' delimiter='<img
src="images/caspari/chevron.gif" alt="" />'}
<hr class="accessibility" />
</div>
<a name="content"></a>
{if isset($detail_title)}
<h1>{$detail_title}</h1>
{else}
<h1>{title}</h1>
{/if}
{$content}
<div class="utilities">
<div class="printlink">{print showbutton="false" script="false" text="Print
this page" class="false"}</div>
<div class="top">{anchor anchor='top' text='Back to top'}</div>
</div>
</div>
<div id="mainright">
{global_content name='newsletter'}
{if !empty($rightcolumn)}
<div id="mainrightbg">
<div id="mainright1">
<div id="mainright2">
{$rightcolumn}
</div>
</div>
</div>
{/if}
</div>
{* End Content Area *}
</div>
</div>
{* End Content *}
{global_content name='footer'}
</div>
<__body>
</__html>
Though I do seem to have a syntax error on my templates that is preventing content from showing.
NOTE: If I use my modified templates this results in empty main content.
BUT If i use a default clean/new template then I can see my main content.
I am presuming front end users/ custom content or content blocks modules have the wrong syntax. I have been through the forums and tried a few different things but I can't work it out.
I am attaching system info and a copy of one of the broken templates.
Any guidance on where this is going wrong would be very much appreciated.
Template info is below.....
___________________________
{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" lang="en">
<head>
{if isset($detail_title)}
<title>{sitename} - {$detail_title}</title>
{else}
<title>{sitename} - {title}</title>
{/if}
{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{cms_stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}
{capture assign='captured_content'}{content}{/capture}
</head>
</__body>
<div id="pagewrapper">
{global_content name='topheader'}
<div id="headrest" class="clearfix">
<img class="headerleft" src="/uploads/images/misc/ll.gif" alt="change" width="272" height="93" />
{cms_module module=CustomContent}
{if $ccuser->loggedin() && $ccuser->memberof('Members')}
<div id="mheaderright">
<div class="logout">{cms_module module="FrontEndUsers" form="logout"}</div>
<div id="callus">call us </div>
<div id="search">{search submit="Go" resultpage='search-results'}</div>
</div>
{else}
<div id="headerright">call us <div id="callus">call us </div>
<div id="search">{search submit="Go" resultpage='search-results'}</div>
</div>
{/if}
</div>
{global_content name='bottomheader'}
{* Start Content *}
<div id="content" class="clearfix">
{* Start Sidebar *}
<div id="sidebar">
{* Start Sub Navigation *}
{menu loadprops=0 template='sidenav' collapse='1' start_level='2' excludeprefix="member"}
<hr class="accessibility" />
{* End Sub Navigation *}
</div>
{* End Sidebar *}
{* Start Content Area *}
{content block='rightcolumn' assign='rightcolumn'}
<div id="main">
<div id="mainleft">
<div class="breadcrumbs">
{breadcrumbs starttext='You are here' root='Home' delimiter='<img
src="images/caspari/chevron.gif" alt="" />'}
<hr class="accessibility" />
</div>
<a name="content"></a>
{if isset($detail_title)}
<h1>{$detail_title}</h1>
{else}
<h1>{title}</h1>
{/if}
{$content}
<div class="utilities">
<div class="printlink">{print showbutton="false" script="false" text="Print
this page" class="false"}</div>
<div class="top">{anchor anchor='top' text='Back to top'}</div>
</div>
</div>
<div id="mainright">
{global_content name='newsletter'}
{if !empty($rightcolumn)}
<div id="mainrightbg">
<div id="mainright1">
<div id="mainright2">
{$rightcolumn}
</div>
</div>
</div>
{/if}
</div>
{* End Content Area *}
</div>
</div>
{* End Content *}
{global_content name='footer'}
</div>
<__body>
</__html>