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>
Upgrade 1.5.2 to 1.11.2 = no main content.
Upgrade 1.5.2 to 1.11.2 = no main content.
- Attachments
-
[The extension txt has been deactivated and can no longer be displayed.]
Last edited by broon on Thu Oct 25, 2012 3:36 pm, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Upgrade 1.5.2 to 1.11.2 = no main content.
Syntax changed significantly in 1.11.x when we went to Smarty3. Smarty3 is much more particular about syntax than any previous version.
We will need to see any errors, and you may need to add some debug statements into your templates to see where things are messing up.
We will need to see any errors, and you may need to add some debug statements into your templates to see where things are messing up.
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.
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Upgrade 1.5.2 to 1.11.2 = no main content.
The biggest problem is your {content} area is in the <head> section of the template.
I suggest you:
a: Move it to the absolute top of your template. Immediately after {process_pagedata}
b: change it to: {content assign='captured_content'} for preformance.
This is because CMSMS processes the <head> section of the template directly AFTER the body part is processed.
I suggest you:
a: Move it to the absolute top of your template. Immediately after {process_pagedata}
b: change it to: {content assign='captured_content'} for preformance.
This is because CMSMS processes the <head> section of the template directly AFTER the body part is processed.
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.
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.
Re: Upgrade 1.5.2 to 1.11.2 = no main content.
Hi Calguy
Thank you for that tip, that has worked for a simpler template
but I am still having the same problem with the example tpl attached. I tried removing code bit by bit but only removing all of the extras seemed to fix it.
Seems to be a combination of things.
If anyone can see a glaring error I would be really grateful for guidance.. thanks again Calguy.. much appreciated.
thanks
Thank you for that tip, that has worked for a simpler template
but I am still having the same problem with the example tpl attached. I tried removing code bit by bit but only removing all of the extras seemed to fix it.
Seems to be a combination of things.
If anyone can see a glaring error I would be really grateful for guidance.. thanks again Calguy.. much appreciated.
thanks
solved: Re: Upgrade 1.5.2 to 1.11.2 = no main content.
I am not sure if this was the final fix but I changed
{$content}
{$captured_content}
It may be a combination of other edits too but now it works.
thanks
{$content}
{$captured_content}
It may be a combination of other edits too but now it works.
thanks
Re: Upgrade 1.5.2 to 1.11.2 = no main content.
When you do an assign you have to use the assigned syntax, you had assign='captured_content' then used {$content} instead of {$captured_content}...