e.g, in news template (or cgblog) detail template (same problem with summary templates though)
Code: Select all
{assign var='news_id' value=$entry->id scope=global}
Code: Select all
{if !empty($actionparams['category_id']) && !empty($actionparams['junk'])}
{$canonical = "{root_url}/xxxxxx/category/{$actionparams['category_id']}/{$actionparams['junk']}.html" scope=global}{/if}
Code: Select all
{extends file='template:2015_base'}
{block name="title"}
{if $page_alias == 'archive'}{title} | {if isset($news_id)}Issue #{$news_id}{else}{description|escape:'html'}{/if}
{elseif $page_alias == 'links'}{linksTitle id=$news_id} | {title}
{elseif $page_alias == 'news-blog'}{$cgblogtitle}
{elseif (isset($pageTitle) && $pageTitle == 'nodescription') || $page_alias == 'error404' || {description} eq ''}
{title}
{else}
{title} | {description|escape:'html'}{/if}
{/block}
Code: Select all
...
{process_pagedata}
...
<title>{block name="title"}
{if {description} eq ''}
{title}
{else}
{title} | {description|escape:'html'}
{/if}
{/block}
</title>
{if isset($canonical)}<link rel="canonical" href="{$canonical}">{elseif isset($content_obj)}<link rel="canonical" href="{$content_obj->GetURL()}">{/if}
----------------------------------------------
Cms Version: 2.0
Installed Modules:
CMSMailer: 5.2.4
FileManager: 1.5
MenuManager: 1.50
ModuleManager: 2.0
News: 2.50
CGSmartImage: 1.20.2
Search: 1.50
TinyMCE: 2.9.12
CGSimpleSmarty: 2.0
CGExtensions: 1.49.7
CGBlog: 1.13.1
CGFeedback: 1.7.2
Captcha: 0.5.2
FormBuilder: 0.8.1.1
AdminSearch: 1.0
MicroTiny: 2.0
JQueryTools: 1.3.6
CMSContentManager: 1.0
DesignManager: 1.0
Navigator: 1.0
Config Information:
php_memory_limit:
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Sydney
permissive_smarty: false
Php Information:
phpversion: 5.4.44-1~dotdeb+7.1
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 8192
test_file_timedifference:
test_db_timedifference:
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /var/lib/php5 (1733)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 0
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.6.19
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No file system time difference found
----------------------------------------------