osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Creating Meta Tags for Undefined Pages

This is a discussion on Creating Meta Tags for Undefined Pages within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; So I added another meta tag to my pages by editing meta_tags.php and adding the following to main_page.tpl.php in the ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-11-2008, 09:19 PM
Member
 
Join Date: May 2008
Posts: 57
Thanks: 15
Thanked 3 Times in 3 Posts
Rep Power: 3
Marotta1 is on a distinguished road
Default Creating Meta Tags for Undefined Pages

So I added another meta tag to my pages by editing meta_tags.php and adding the following to main_page.tpl.php in the template folders.
Code:
<meta name="my new meta tag" content="<?php echo META_TAG_NEW; ?>" />
It works great, but I am trying to add a another new specific meta tag to some pages of the site that are not defined in the meta_tags.php file without doing a global add under the default section neat the end of the file.

I tried this which I think should work:
Code:
//  catalog products with images
	case CONTENT_CATALOG_PRODUCTS_WITH_IMAGES:
    define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
	define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
	define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
	define('META_TAG_NEW', MY_NEW_META_TAG);
	break;
For some reason it is not taking when I add new sections to the file for these individual pages. It's always pulling the default one. Any tips as to what I'm missing or doing wrong?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-15-2009, 06:42 PM
Member
 
Join Date: May 2008
Posts: 57
Thanks: 15
Thanked 3 Times in 3 Posts
Rep Power: 3
Marotta1 is on a distinguished road
Default Re: Creating Meta Tags for Undefined Pages

To anyone interested, this actually does work. It was apparently a browser cache issue. Just never updated this thread way back. I hope it helps someone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to Marotta1 For This Useful Post:
michael_s (01-15-2009)
Closed Thread

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Easy Meta Tags - CUSTOM Product Tags for STS v4 michael_s New osCommerce Contributions 0 11-26-2007 04:14 PM
Meta Tags On The Fly michael_s New osCommerce Contributions 0 04-21-2007 09:12 AM
Meta Tags On The Fly michael_s New osCommerce Contributions 0 04-15-2007 09:01 AM
Meta Tags On The Fly michael_s New osCommerce Contributions 0 03-13-2007 05:00 PM
Meta Tags auntie22 osCMax v1.7 Discussion 1 09-03-2004 12:08 AM


All times are GMT -8. The time now is 12:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2010 osCmax
Inactive Reminders By Icora Web Design