osCmax v2.5 User Manual
Results 1 to 2 of 2

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 ...

      
  1. #1
    Member
    Join Date
    May 2008
    Posts
    88
    Rep Power
    5


    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?

  2. #2
    Member
    Join Date
    May 2008
    Posts
    88
    Rep Power
    5


    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.

Similar Threads

  1. Easy Meta Tags - CUSTOM Product Tags for STS v4
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 11-26-2007, 04:14 PM
  2. Meta Tags On The Fly
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-21-2007, 09:12 AM
  3. Meta Tags On The Fly
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-15-2007, 09:01 AM
  4. Meta Tags On The Fly
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-13-2007, 05:00 PM
  5. Meta Tags
    By auntie22 in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 09-03-2004, 12:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •