X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   4.3.0 - <title> for admin is a fixed language entry? (https://forum.x-cart.com/showthread.php?t=50901)

carpeperdiem 11-22-2009 08:25 AM

4.3.0 - <title> for admin is a fixed language entry?
 
In 4.3.0 (GOLD or PRO), it appears that the <title> for the admin is a fixed language entry.

/skin1/admin/home.tpl

Code:

<head>
<title>{$lng.txt_site_title|wm_remove}</title>


1. what is wm_remove? Search did not revel what this operator does.
2. $lng.txt_site_title = X-CART. Powerful PHP shopping cart software

WHY would this be coded into the database? Shouldn't this pull from the site name in the general settings?

Wouldn't it make more sense for the <title> tag for the admin to be:

/skin1/admin/home.tpl

Code:

<title>{if $config.SEO.site_title ne ""}{$config.SEO.site_title}
{else}{$lng.txt_site_title|wm_remove}{/if}</title>


This assumes that SEO settings are enabled?

Hiding something like this in the database does not make any sense. Or does it? Please explain?

hooter 11-22-2009 11:57 AM

Re: 4.3.0 - <title> for admin is a fixed language entry?
 
wm_remove is an xcart custom smarty modifier. Look in your /include/templater/plugins folder - it is for webmaster mode hence the "wm"
Code:

#
# $Id: modifier.wm_remove.php,v 1.1.2.1 2009/04/02 06:51:20 ferz Exp $
#
# Templater plugin
# -------------------------------------------------------------
# Type:    modifier
# Name:    wm_remove
# Purpose:  remove Webmaster mode environment
# -------------------------------------------------------------
#

Quote:

2. $lng.txt_site_title = X-CART. Powerful PHP shopping cart software
The language variable for site title usage began some incremental releases ago.

PhilJ 11-29-2009 05:11 PM

Re: 4.3.0 - <title> for admin is a fixed language entry?
 
Does anyone know where the customer <title> tag is ?!

Firstly I want to take out the :: characters and I want to put a {capture} around it, but I can't find the damn thing !

I've tried service_head.tpl and meta.tpl

cflsystems 11-29-2009 05:40 PM

Re: 4.3.0 - <title> for admin is a fixed language entry?
 
Not sure about 4.3 but in 4.2 is in include/func/func.core.php
Code:

# Page title
 $html_page_title = '';
 if ($current_area == 'C' && $templater->_tpl_vars['location']) {
  $charset = isset($templater->_tpl_vars['default_charset']) ? $templater->_tpl_vars['default_charset'] : 'ISO-8859-1';
  $tmp = array();
  $location = $templater->_tpl_vars['location'];
  if ($config['SEO']['page_title_format'] != 'A')
  $location = array_reverse($location);
  foreach ($location as $v) {
  $tmp[] = strip_tags($v[0]);
  }
  $html_page_title = implode(' - ', $tmp);
 }

which I have replaced with "-"

PhilJ 11-29-2009 06:52 PM

Re: 4.3.0 - <title> for admin is a fixed language entry?
 
Thanks for that, for v4.3.0 it's in the same file...
Code:

$title = str_replace(array("\n", "\r"), array("", ""), trim(implode(' :: ', $tmp)));
Now I just need to know how I can use the <title> tag in smarty.
{$title} and {$location] doesn't work.


All times are GMT -8. The time now is 01:32 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.