[Solved] Can't replay captured content
[Solved] Can't replay captured content
I've just upgraded from 1.6.6 to 1.8.2. The upgrade has gone fairly smoothly. However, I had the problem described in http://forum.cmsmadesimple.org/index.php?topic=45433.0.
I followed the solution mentioned there. Namely...
{capture assign='sb_content'}{content block='Sidebar'}{/capture}
and then, subsequently, use...
{$sb_content}
...but it doesn't work for me. Nothing is output (even when checking the raw HTML), even though the page does have content in the Sidebar content block.
The variable has obviously been assigned, because...
{if $sb_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
...has the desired effect (namely, that pages without any content in the sidebar get a different stylesheet to pages with content in the sidebar). However, when it comes to print the content with {$sb_content}, nothing is output.
I've also tried {content block='Sidebar' assign='sidebar_content} in place of the "capture" section, but to no avail.
Can anybody tell me how to capture and then replay content correctly?
Thanks,
Andrew
--
----------------------------------------------
Cms Version: 1.8.2
Installed Modules:
CMSMailer: 2.0
FileManager: 1.0.2
MenuManager: 1.6.5
ModuleManager: 1.4
News: 2.10.6
nuSOAP: 1.0.2
Printing: 1.1.0
Search: 1.6.5
ThemeManager: 1.1.1
TinyMCE: 2.7.2
FrontEndUsers: 1.6.9
CustomContent: 1.5.3
Captcha: 0.4
CGExtensions: 1.17.2
Uploads: 1.9.1
Config Information:
php_memory_limit:
process_whole_template: false
output_compression: false
max_upload_size: 2000000
default_upload_permission: 664
url_rewriting: mod_rewrite
page_extension:
query_var: page
use_hierarchy: true
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.2.4-2ubuntu5.10
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
memory_limit: 32M
max_execution_time: 30
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: No check because open basedir active
session_use_cookies: On (True)
xml_function: On (True)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.0.51a
----------------------------------------------
I followed the solution mentioned there. Namely...
{capture assign='sb_content'}{content block='Sidebar'}{/capture}
and then, subsequently, use...
{$sb_content}
...but it doesn't work for me. Nothing is output (even when checking the raw HTML), even though the page does have content in the Sidebar content block.
The variable has obviously been assigned, because...
{if $sb_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
...has the desired effect (namely, that pages without any content in the sidebar get a different stylesheet to pages with content in the sidebar). However, when it comes to print the content with {$sb_content}, nothing is output.
I've also tried {content block='Sidebar' assign='sidebar_content} in place of the "capture" section, but to no avail.
Can anybody tell me how to capture and then replay content correctly?
Thanks,
Andrew
--
----------------------------------------------
Cms Version: 1.8.2
Installed Modules:
CMSMailer: 2.0
FileManager: 1.0.2
MenuManager: 1.6.5
ModuleManager: 1.4
News: 2.10.6
nuSOAP: 1.0.2
Printing: 1.1.0
Search: 1.6.5
ThemeManager: 1.1.1
TinyMCE: 2.7.2
FrontEndUsers: 1.6.9
CustomContent: 1.5.3
Captcha: 0.4
CGExtensions: 1.17.2
Uploads: 1.9.1
Config Information:
php_memory_limit:
process_whole_template: false
output_compression: false
max_upload_size: 2000000
default_upload_permission: 664
url_rewriting: mod_rewrite
page_extension:
query_var: page
use_hierarchy: true
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.2.4-2ubuntu5.10
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
memory_limit: 32M
max_execution_time: 30
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: No check because open basedir active
session_use_cookies: On (True)
xml_function: On (True)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.0.51a
----------------------------------------------
Last edited by arr28 on Thu Aug 26, 2010 1:51 pm, edited 1 time in total.
Re: Can't replay captured content
Could you post the template part, where the {content} blocks are used?
Ronny
Ronny
Re: Can't replay captured content
Ronny,
Here's the complete template. Capture is 14 lines from the top. Failed replay is 13 lines from the bottom.
Andrew
{process_pagedata}
{sitename} - {title}
{metadata}
{stylesheet}
{* If there's no content in the (right) sidebar, override the 3-column *}
{* layout with a 2-column layout. *}
{if $page != '15'}
{content block='Sidebar' assign='sidebar_content'}
{if $sidebar_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
{/if}
{if $page == 'test-page'}
{stylesheet name="Layout: CBCTest"}
{/if}
{ga_head}
{literal}
.col1
{
width:100%;
}
{/literal}
{if $page == "15"}
{literal}
body
{
width: 980px;
margin-left: auto;
margin-right: auto;
background: #333333;
}
{/literal}
{/if}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{if $page == "15"}
{slideshow_head}
{/if}
{cms_module module=FrontEndUsers form="silent"}
{cms_module module=CustomContent}
{if $page != "15"}
{cms_selflink page='home' text="Home" title="Home"} |
{else}
Home |
{/if}
{if $page != "contact"}
{cms_selflink page='contact' text="Contact" title="Contact us"} |
{else}
Contact |
{/if}
{if $page != "site-map"}
{cms_selflink page='site-map' text="Site map" title="Site map"} |
{else}
Site map |
{/if}
{resizer} |
{if $ccuser->loggedin() && $ccuser->memberof('members')}
Welcome {username cmsid=$ccuser->property('cmsid')} (Log out)
{else}
{if $page != "login"}
{cms_selflink page='login' text="Members" title="Members"}
{else}
Members
{/if}
{/if}
{search submit="Search" inline="false" resultpage="search-results" search_method="post" submit="Go" searchtext="Search..."}
Charlotte Chapel
{if $page != "15"}
{else}
{/if}
{if $page != "15"}
{breadcrumbs starttext='You are here' root='Home' delimiter='»'}
{* End Breadcrumbs *}
{/if}
{if $page != "15" && $page_alias != "search-results"}
{title}
{/if}
{content}
{if $ccuser->loggedin() && $ccuser->memberof('members')}
{menu template='CBC' collapse='1'}
{else}
{menu template='CBC' collapse='1' excludeprefix="members"}
{/if}
{content block='Sidebar'}
{* Putting {$sidebar_content} here doesn't work *}
{ga_track}
Here's the complete template. Capture is 14 lines from the top. Failed replay is 13 lines from the bottom.
Andrew
{process_pagedata}
{sitename} - {title}
{metadata}
{stylesheet}
{* If there's no content in the (right) sidebar, override the 3-column *}
{* layout with a 2-column layout. *}
{if $page != '15'}
{content block='Sidebar' assign='sidebar_content'}
{if $sidebar_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
{/if}
{if $page == 'test-page'}
{stylesheet name="Layout: CBCTest"}
{/if}
{ga_head}
{literal}
.col1
{
width:100%;
}
{/literal}
{if $page == "15"}
{literal}
body
{
width: 980px;
margin-left: auto;
margin-right: auto;
background: #333333;
}
{/literal}
{/if}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{if $page == "15"}
{slideshow_head}
{/if}
{cms_module module=FrontEndUsers form="silent"}
{cms_module module=CustomContent}
{if $page != "15"}
{cms_selflink page='home' text="Home" title="Home"} |
{else}
Home |
{/if}
{if $page != "contact"}
{cms_selflink page='contact' text="Contact" title="Contact us"} |
{else}
Contact |
{/if}
{if $page != "site-map"}
{cms_selflink page='site-map' text="Site map" title="Site map"} |
{else}
Site map |
{/if}
{resizer} |
{if $ccuser->loggedin() && $ccuser->memberof('members')}
Welcome {username cmsid=$ccuser->property('cmsid')} (Log out)
{else}
{if $page != "login"}
{cms_selflink page='login' text="Members" title="Members"}
{else}
Members
{/if}
{/if}
{search submit="Search" inline="false" resultpage="search-results" search_method="post" submit="Go" searchtext="Search..."}
Charlotte Chapel
{if $page != "15"}
{else}
{/if}
{if $page != "15"}
{breadcrumbs starttext='You are here' root='Home' delimiter='»'}
{* End Breadcrumbs *}
{/if}
{if $page != "15" && $page_alias != "search-results"}
{title}
{/if}
{content}
{if $ccuser->loggedin() && $ccuser->memberof('members')}
{menu template='CBC' collapse='1'}
{else}
{menu template='CBC' collapse='1' excludeprefix="members"}
{/if}
{content block='Sidebar'}
{* Putting {$sidebar_content} here doesn't work *}
{ga_track}
Re: Can't replay captured content
In case it helps, this didn't work for me when I was using the 1.6.x stream either. But it didn't matter then because the admin interface wasn't picky about having multiple instances of the same content block in the template.
Re: Can't replay captured content
Why dont you change the first part...
{if $page != '15'}
{content block='Sidebar' assign='sidebar_content'}
{if $sidebar_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
{/if}
With
{if $page != '15'}
{stylesheet name="Layout: CBC2Col"}
{/if}
as you assign the variable, but dont use it further downward.
Ronny
{if $page != '15'}
{content block='Sidebar' assign='sidebar_content'}
{if $sidebar_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
{/if}
With
{if $page != '15'}
{stylesheet name="Layout: CBC2Col"}
{/if}
as you assign the variable, but dont use it further downward.
Ronny
Re: Can't replay captured content
And one other thing...
If all is related to doing something differently for page 15, why dont you make a specific template for that page then, and attach the proper stylesheet.
Only for that page, you could attach the specific template then, and all others the current one.
Ronny
If all is related to doing something differently for page 15, why dont you make a specific template for that page then, and attach the proper stylesheet.
Only for that page, you could attach the specific template then, and all others the current one.
Ronny
Re: Can't replay captured content
Ronny,
I use the variable immediately (3rd line of the snippet).
{if $page != '15'}
{content block='Sidebar' assign='sidebar_content'}
{if ***HERE*** $sidebar_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
{/if}
If I used the code you suggested, all pages would get the 2-column layout. I only want those pages without any content in the sidebar to get the 2-column layout.
I use the variable immediately (3rd line of the snippet).
{if $page != '15'}
{content block='Sidebar' assign='sidebar_content'}
{if ***HERE*** $sidebar_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
{/if}
If I used the code you suggested, all pages would get the 2-column layout. I only want those pages without any content in the sidebar to get the 2-column layout.
Re: Can't replay captured content
Ronny,
I could use a different template for page 15 (and might well do that), but it wouldn't solve the problem here. The code we're looking at is all about every page except page 15. So, ignoring page 15 for the moment, some pages are a 2 column layout and some are a 3 column layout. To keep it simple for the content editors, pages automatically get a 3 column layout if they write anything in the Sidebar content block and otherwise they get a 2 column layout.
This much works perfectly. The correct stylesheet(s) are included depending on whether it's a 2- or 3-column layout.
However, when it comes to actually placing content into the sidebar, {$sidebar_content} doesn't output the sidebar content. It's always blank. I need to use {content block='Sidebar'} again. Which causes the admin interface to break in 1.8.2.
I could use a different template for page 15 (and might well do that), but it wouldn't solve the problem here. The code we're looking at is all about every page except page 15. So, ignoring page 15 for the moment, some pages are a 2 column layout and some are a 3 column layout. To keep it simple for the content editors, pages automatically get a 3 column layout if they write anything in the Sidebar content block and otherwise they get a 2 column layout.
This much works perfectly. The correct stylesheet(s) are included depending on whether it's a 2- or 3-column layout.
However, when it comes to actually placing content into the sidebar, {$sidebar_content} doesn't output the sidebar content. It's always blank. I need to use {content block='Sidebar'} again. Which causes the admin interface to break in 1.8.2.
Re: Can't replay captured content
Could you try with $page_alias and then the alias of page 15
Ronny
Ronny
Re: Can't replay captured content
Ronny,
Many thanks for you help with this. I've tried what you suggested. It doesn't make things worse, but sadly it doesn't make them better either. I'm pretty sure that the whole page 15 thing is a red-herring here. We're inside a block that deals with every page *except* page 15 (home page). Updated template, including your changes, below.
Andrew
{process_pagedata}
{sitename} - {title}
{metadata}
{stylesheet}
{* If there's no content in the (right) sidebar, override the 3-column *}
{* layout with a 2-column layout. *}
{* {content assign='dummy'} *}
{if $page_alias != 'home'}
{content block='Sidebar' assign='sidebar_content'}
{if $sidebar_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
{/if}
{if $page == 'test-page'}
{stylesheet name="Layout: CBCTest"}
{/if}
{ga_head}
{literal}
.col1
{
width:100%;
}
{/literal}
{if $page_alias == 'home'}
{literal}
body
{
width: 980px;
margin-left: auto;
margin-right: auto;
background: #333333;
}
{/literal}
{/if}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{if $page_alias == 'home'}
{slideshow_head}
{/if}
{cms_module module=FrontEndUsers form="silent"}
{cms_module module=CustomContent}
{if $page_alias != 'home'}
{cms_selflink page='home' text="Home" title="Home"} |
{else}
Home |
{/if}
{if $page != "contact"}
{cms_selflink page='contact' text="Contact" title="Contact us"} |
{else}
Contact |
{/if}
{if $page != "site-map"}
{cms_selflink page='site-map' text="Site map" title="Site map"} |
{else}
Site map |
{/if}
{resizer} |
{if $ccuser->loggedin() && $ccuser->memberof('members')}
Welcome {username cmsid=$ccuser->property('cmsid')} (Log out)
{else}
{if $page != "login"}
{cms_selflink page='login' text="Members" title="Members"}
{else}
Members
{/if}
{/if}
{search submit="Search" inline="false" resultpage="search-results" search_method="post" submit="Go" searchtext="Search..."}
Charlotte Chapel
{if $page_alias != 'home'}
{else}
{/if}
{if $page_alias != 'home'}
{breadcrumbs starttext='You are here' root='Home' delimiter='»'}
{* End Breadcrumbs *}
{/if}
{if $page_alias != 'home' && $page_alias != "search-results"}
{title}
{/if}
{content}
{if $ccuser->loggedin() && $ccuser->memberof('members')}
{menu template='CBC' collapse='1'}
{else}
{menu template='CBC' collapse='1' excludeprefix="members"}
{/if}
{content block='Sidebar'}
{* This still doesn't work {$sidebar_content} *}
{ga_track}
Many thanks for you help with this. I've tried what you suggested. It doesn't make things worse, but sadly it doesn't make them better either. I'm pretty sure that the whole page 15 thing is a red-herring here. We're inside a block that deals with every page *except* page 15 (home page). Updated template, including your changes, below.
Andrew
{process_pagedata}
{sitename} - {title}
{metadata}
{stylesheet}
{* If there's no content in the (right) sidebar, override the 3-column *}
{* layout with a 2-column layout. *}
{* {content assign='dummy'} *}
{if $page_alias != 'home'}
{content block='Sidebar' assign='sidebar_content'}
{if $sidebar_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
{/if}
{if $page == 'test-page'}
{stylesheet name="Layout: CBCTest"}
{/if}
{ga_head}
{literal}
.col1
{
width:100%;
}
{/literal}
{if $page_alias == 'home'}
{literal}
body
{
width: 980px;
margin-left: auto;
margin-right: auto;
background: #333333;
}
{/literal}
{/if}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{if $page_alias == 'home'}
{slideshow_head}
{/if}
{cms_module module=FrontEndUsers form="silent"}
{cms_module module=CustomContent}
{if $page_alias != 'home'}
{cms_selflink page='home' text="Home" title="Home"} |
{else}
Home |
{/if}
{if $page != "contact"}
{cms_selflink page='contact' text="Contact" title="Contact us"} |
{else}
Contact |
{/if}
{if $page != "site-map"}
{cms_selflink page='site-map' text="Site map" title="Site map"} |
{else}
Site map |
{/if}
{resizer} |
{if $ccuser->loggedin() && $ccuser->memberof('members')}
Welcome {username cmsid=$ccuser->property('cmsid')} (Log out)
{else}
{if $page != "login"}
{cms_selflink page='login' text="Members" title="Members"}
{else}
Members
{/if}
{/if}
{search submit="Search" inline="false" resultpage="search-results" search_method="post" submit="Go" searchtext="Search..."}
Charlotte Chapel
{if $page_alias != 'home'}
{else}
{/if}
{if $page_alias != 'home'}
{breadcrumbs starttext='You are here' root='Home' delimiter='»'}
{* End Breadcrumbs *}
{/if}
{if $page_alias != 'home' && $page_alias != "search-results"}
{title}
{/if}
{content}
{if $ccuser->loggedin() && $ccuser->memberof('members')}
{menu template='CBC' collapse='1'}
{else}
{menu template='CBC' collapse='1' excludeprefix="members"}
{/if}
{content block='Sidebar'}
{* This still doesn't work {$sidebar_content} *}
{ga_track}
Re: Can't replay captured content
And it isnt working at all, or not on HOME page?
Ronny
Ronny
Re: Can't replay captured content
It isn't working on any page.
Re: Can't replay captured content
Ronny,
I've just got a lot closer to figuring out what this is. Here are a couple of minimal templates. The first shows the problem. The second doesn't. The only difference is where I place the capture line.
Andrew
{process_pagedata}
Test
{metadata}
{stylesheet}
{content block='Sidebar' assign='sidebar_content'}
Here's copy 1
{$sidebar_content}
Here's copy 2
{$sidebar_content}
And the main content
{content}
...vs...
{process_pagedata}
Test
{metadata}
{stylesheet}
{content block='Sidebar' assign='sidebar_content'}
Here's copy 1
{$sidebar_content}
Here's copy 2
{$sidebar_content}
And the main content
{content}
I've just got a lot closer to figuring out what this is. Here are a couple of minimal templates. The first shows the problem. The second doesn't. The only difference is where I place the capture line.
Andrew
{process_pagedata}
Test
{metadata}
{stylesheet}
{content block='Sidebar' assign='sidebar_content'}
Here's copy 1
{$sidebar_content}
Here's copy 2
{$sidebar_content}
And the main content
{content}
...vs...
{process_pagedata}
Test
{metadata}
{stylesheet}
{content block='Sidebar' assign='sidebar_content'}
Here's copy 1
{$sidebar_content}
Here's copy 2
{$sidebar_content}
And the main content
{content}
Re: Can't replay captured content
Then I would use the second onearr28 wrote: I've just got a lot closer to figuring out what this is. Here are a couple of minimal templates. The first shows the problem. The second doesn't.

Try to use $content_id instead of $page.{if $page != '15'}
grtz. Rolf

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Can't replay captured content
Okay. I've got there.
It seems that smarty variables drop out of scope when you hit a closing HTML tag. So, smarty variables set up in the are only available in the and not in the .
The solution is to set up the smarty variable at the same HTML scope (or higher) than the scope it will be used at. In my case, this means setting up the smarty variable at the top level () scope.
Final template shown for reference.
Thanks for your help Ronny.
Andrew
--
{process_pagedata}
{content block='Sidebar' assign='sidebar_content'}
{sitename} - {title}
{metadata}
{stylesheet}
{* If there's no content in the (right) sidebar, override the 3-column *}
{* layout with a 2-column layout (except home page which is special). *}
{if $page_alias != 'home'}
{if $sidebar_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
{/if}
{if $page == 'test-page'}
{stylesheet name="Layout: CBCTest"}
{/if}
{ga_head}
{literal}
.col1
{
width:100%;
}
{/literal}
{if $page_alias == 'home'}
{literal}
body
{
width: 980px;
margin-left: auto;
margin-right: auto;
background: #333333;
}
{/literal}
{/if}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{if $page_alias == 'home'}
{slideshow_head}
{/if}
{cms_module module=FrontEndUsers form="silent"}
{cms_module module=CustomContent}
{if $page_alias != 'home'}
{cms_selflink page='home' text="Home" title="Home"} |
{else}
Home |
{/if}
{if $page != "contact"}
{cms_selflink page='contact' text="Contact" title="Contact us"} |
{else}
Contact |
{/if}
{if $page != "site-map"}
{cms_selflink page='site-map' text="Site map" title="Site map"} |
{else}
Site map |
{/if}
{resizer} |
{if $ccuser->loggedin() && $ccuser->memberof('members')}
Welcome {username cmsid=$ccuser->property('cmsid')} (Log out)
{else}
{if $page != "login"}
{cms_selflink page='login' text="Members" title="Members"}
{else}
Members
{/if}
{/if}
{search submit="Search" inline="false" resultpage="search-results" search_method="post" submit="Go" searchtext="Search..."}
Charlotte Chapel
{if $page_alias != 'home'}
{else}
{/if}
{if $page_alias != 'home'}
{breadcrumbs starttext='You are here' root='Home' delimiter='»'}
{* End Breadcrumbs *}
{/if}
{if $page_alias != 'home' && $page_alias != "search-results"}
{title}
{/if}
{content}
{if $ccuser->loggedin() && $ccuser->memberof('members')}
{menu template='CBC' collapse='1'}
{else}
{menu template='CBC' collapse='1' excludeprefix="members"}
{/if}
{$sidebar_content}
{ga_track}
It seems that smarty variables drop out of scope when you hit a closing HTML tag. So, smarty variables set up in the are only available in the and not in the .
The solution is to set up the smarty variable at the same HTML scope (or higher) than the scope it will be used at. In my case, this means setting up the smarty variable at the top level () scope.
Final template shown for reference.
Thanks for your help Ronny.
Andrew
--
{process_pagedata}
{content block='Sidebar' assign='sidebar_content'}
{sitename} - {title}
{metadata}
{stylesheet}
{* If there's no content in the (right) sidebar, override the 3-column *}
{* layout with a 2-column layout (except home page which is special). *}
{if $page_alias != 'home'}
{if $sidebar_content == ''}
{stylesheet name="Layout: CBC2Col"}
{/if}
{/if}
{if $page == 'test-page'}
{stylesheet name="Layout: CBCTest"}
{/if}
{ga_head}
{literal}
.col1
{
width:100%;
}
{/literal}
{if $page_alias == 'home'}
{literal}
body
{
width: 980px;
margin-left: auto;
margin-right: auto;
background: #333333;
}
{/literal}
{/if}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{if $page_alias == 'home'}
{slideshow_head}
{/if}
{cms_module module=FrontEndUsers form="silent"}
{cms_module module=CustomContent}
{if $page_alias != 'home'}
{cms_selflink page='home' text="Home" title="Home"} |
{else}
Home |
{/if}
{if $page != "contact"}
{cms_selflink page='contact' text="Contact" title="Contact us"} |
{else}
Contact |
{/if}
{if $page != "site-map"}
{cms_selflink page='site-map' text="Site map" title="Site map"} |
{else}
Site map |
{/if}
{resizer} |
{if $ccuser->loggedin() && $ccuser->memberof('members')}
Welcome {username cmsid=$ccuser->property('cmsid')} (Log out)
{else}
{if $page != "login"}
{cms_selflink page='login' text="Members" title="Members"}
{else}
Members
{/if}
{/if}
{search submit="Search" inline="false" resultpage="search-results" search_method="post" submit="Go" searchtext="Search..."}
Charlotte Chapel
{if $page_alias != 'home'}
{else}
{/if}
{if $page_alias != 'home'}
{breadcrumbs starttext='You are here' root='Home' delimiter='»'}
{* End Breadcrumbs *}
{/if}
{if $page_alias != 'home' && $page_alias != "search-results"}
{title}
{/if}
{content}
{if $ccuser->loggedin() && $ccuser->memberof('members')}
{menu template='CBC' collapse='1'}
{else}
{menu template='CBC' collapse='1' excludeprefix="members"}
{/if}
{$sidebar_content}
{ga_track}
Last edited by arr28 on Thu Aug 26, 2010 1:53 pm, edited 1 time in total.