View Single Post
  #7  
Old 05-01-2009, 06:00 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,018
 

Default Re: Page Title in 4.2

...... from the previous thread

6. FOR MANUFACTURER PAGE TITLE
open modules/Manufacturers/manufacturers.php and find
Code:
$query_data = array( "url" => $url, "descr" => $descr, "meta_keywords" => $meta_keywords, "meta_description" => $meta_description );
and replace with
Code:
$query_data = array( "url" => $url, "descr" => $descr, "meta_keywords" => $meta_keywords, "meta_description" => $meta_description, "manufacturer_page_title" => $manufacturer_page_title #Added by CFL Systems for manufacturer page title );
in the same file find
Code:
$query_data = array( "manufacturer" => $manufacturer, "provider" => $login, "descr" => $descr, "url" => $url, "meta_keywords" => $meta_keywords, "meta_description" => $meta_description );
and replace with
Code:
$query_data = array( "manufacturer" => $manufacturer, "provider" => $login, "descr" => $descr, "url" => $url, "meta_keywords" => $meta_keywords, "meta_description" => $meta_description, "manufacturer_page_title" => manufacturer_page_title # Added by CFL Systems for manufacturer page title );

open skin1/modules/Manufacturers/manufacturers.tpl, find
Code:
<tr> <td width="20%" class="FormButton">{$lng.lbl_manufacturer}:</td> <td><font class="Star">*</font></td> <td width="80%"><input type="text" name="manufacturer" id="manufacturer" size="50" value="{$manufacturer.manufacturer|escape}" style="width:80%"{$disabled} {if $config.SEO.clean_urls_enabled eq "Y" && $administrate}onchange="javascript: if (this.form.clean_url.value == '') copy_clean_url(this, this.form.clean_url)"{/if} /></td> </tr>
and after it insert
Code:
{* Added by CFL Systems for manufacturer page title *} <tr> <td width="20%" class="FormButton">{$lng.lbl_manufacturer_page_title}:</td> <td>&nbsp;</td> <td width="80%"><input type="text" name="manufacturer_page_title" id="manufacturer_page_title" maxlength="64" size="100" value="{$manufacturer.manufacturer_page_title|escape}" style="width:80%"{$disabled} /> <a href="javascript:void(0);" class="NeedHelpLink" onmouseover="javascript: viewHelp('help_what_is_page_title', this);">{$lng.lbl_page_title_what_is}</a> <div id="help_what_is_page_title" class="NeedHelpBox" style="display:none">{$lng.txt_page_title_descr}</div></td> </tr> {* Added by CFL Systems for manufacturer page title *}

7. FOR STATIC PAGE TITLE
open admin/pages.php, find
Code:
$page_modified = array( "pagetitle" => $pagetitle, "pagecontent" => $pagecontent, "meta_keywords" => $meta_keywords, "meta_description" => $meta_description, "clean_url" => $clean_url );
and replace with
Code:
$page_modified = array( "pagetitle" => $pagetitle, "pagecontent" => $pagecontent, "meta_keywords" => $meta_keywords, "meta_description" => $meta_description, "clean_url" => $clean_url, "pages_page_title" => $pages_page_title # Added by CFL Systems for static page title );
in the same file find
Code:
$query_data = array( 'filename' => $filename, 'title' => $pagetitle, 'level' => $level, 'orderby' => intval($orderby), 'active' => $active, 'language' => $current_language, "show_in_menu" => $show_in_menu, "meta_keywords" => $meta_keywords, "meta_description" => $meta_description );
and replace with
Code:
$query_data = array( 'filename' => $filename, 'title' => $pagetitle, 'level' => $level, 'orderby' => intval($orderby), 'active' => $active, 'language' => $current_language, "show_in_menu" => $show_in_menu, "meta_keywords" => $meta_keywords, "meta_description" => $meta_description, "pages_page_title" => $pages_page_title # Added by CFL Systems for static page title );
in the same file find
Code:
$query_data = array( 'title' => $pagetitle, 'orderby' => intval($orderby), 'active' => $active, "show_in_menu" => $show_in_menu, "meta_keywords" => $meta_keywords, "meta_description" => $meta_description );
and replace with
Code:
$query_data = array( 'title' => $pagetitle, 'orderby' => intval($orderby), 'active' => $active, "show_in_menu" => $show_in_menu, "meta_keywords" => $meta_keywords, "meta_description" => $meta_description, "pages_page_title" => $pages_page_title # Added by CFL Systems for static page title );
in the same file find
Code:
$page_query = "SELECT pageid, filename, title, level, orderby, active, language, show_in_menu, meta_keywords, meta_description, $sql_tbl[clean_urls].clean_url, $sql_tbl[clean_urls].mtime FROM $sql_tbl[pages] LEFT JOIN $sql_tbl[clean_urls] ON $sql_tbl[clean_urls].resource_type = 'S' AND $sql_tbl[clean_urls].resource_id = '".@$clean_url_pageid."' ";
and replace with
Code:
$page_query = "SELECT pageid, filename, title, level, orderby, active, language, show_in_menu, meta_keywords, meta_description, pages_page_title, $sql_tbl[clean_urls].clean_url, $sql_tbl[clean_urls].mtime FROM $sql_tbl[pages] LEFT JOIN $sql_tbl[clean_urls] ON $sql_tbl[clean_urls].resource_type = 'S' AND $sql_tbl[clean_urls].resource_id = '".@$clean_url_pageid."' "; # Modified by CFL Systems for static page title
in the same file find
Code:
$smarty->assign("default_meta_description", $page_modified['meta_description']);
and after it insert
Code:
$smarty->assign("default_pages_page_title", $page_modifier['pages_page_title']); # Added by CFL Systems for static page title

open skin1/admin/main/page_edit.tpl, find
Code:
<tr> <td height="10" class="FormButton" nowrap="nowrap" valign="top">{$lng.lbl_page_name}:</td> <td><font class="Star">*</font></td> <td><input type="text" name="pagetitle" value="{$page_data.title|default:"$default_page_title"}" size="45" {if $config.SEO.clean_urls_enabled eq "Y"}onchange="javascript: if (this.form.clean_url.value == '') copy_clean_url(this, this.form.clean_url)"{/if} /></td> </tr>
and after it insert
Code:
{* Added by CFL Systems for static page title *} <tr> <td height="10" class="FormButton" nowrap="nowrap" valign="top">{$lng.lbl_pages_page_title}:</td> <td>&nbsp;</td> <td><input type="text" name="pages_page_title" maxlength="64" size="100" value="{$page_data.pages_page_title|default:"$default_pages_page_title"}" /> <a href="javascript:void(0);" class="NeedHelpLink" onmouseover="javascript: viewHelp('help_what_is_page_title', this);">{$lng.lbl_page_title_what_is}</a> <div id="help_what_is_page_title" class="NeedHelpBox" style="display:none">{$lng.txt_page_title_descr}</div></td> </tr> {* Added by CFL Systems for static page title *}

Continue in the next thread
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote