Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

4.3.0 - <title> for admin is a fixed language entry?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-22-2009, 08:25 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #2  
Old 11-22-2009, 11:57 AM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default 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.
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #3  
Old 11-29-2009, 05:11 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default 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
__________________
xcartmods.co.uk
Reply With Quote
  #4  
Old 11-29-2009, 05:40 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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 "-"
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 11-29-2009, 06:52 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default 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.
__________________
xcartmods.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:29 PM.

   

 
X-Cart forums © 2001-2020