Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2012
    Posts
    2
    Plugin Contributions
    0

    Default Modifying Title Tags and Meta Data in Cforms

    Hi I have an issue with the meta_tags.php file.

    I want to change the title tags/meta data on some of these links that look like this:

    /index.php?main_page=cforms&task=bestsellingproducts
    /index.php?main_page=cforms&task=customquote

    But when I try to add them to the meta_tags.php file they still don't show up.
    Example:

    define('META_TAG_DESCRIPTION_CFORMS&TASK=CUSTOMQUOTE','BLAH');
    define('META_TAG_KEYWORDS_CFORMS&TASK=CUSTOMQUOTE','BLAH');
    define('META_TAG_TITLE_CFORMS&TASK=CUSTOMQUOTE', 'BLAH');

    What am I doing wrong? Or is this not possible?

    Thanks in advance!

  2. #2
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,922
    Plugin Contributions
    3

    Default Re: Modifying Title Tags and Meta Data in Cforms

    Quote Originally Posted by rocketman123 View Post
    Hi I have an issue with the meta_tags.php file.

    I want to change the title tags/meta data on some of these links that look like this:

    /index.php?main_page=cforms&task=bestsellingproducts
    /index.php?main_page=cforms&task=customquote

    But when I try to add them to the meta_tags.php file they still don't show up.
    Example:

    define('META_TAG_DESCRIPTION_CFORMS&TASK=CUSTOMQUOTE','BLAH');
    define('META_TAG_KEYWORDS_CFORMS&TASK=CUSTOMQUOTE','BLAH');
    define('META_TAG_TITLE_CFORMS&TASK=CUSTOMQUOTE', 'BLAH');

    What am I doing wrong? Or is this not possible?

    Thanks in advance!
    My understanding is that cforms are a wordpress concoction...

    What exactly are you trying to achieve?
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  3. #3
    Join Date
    Jan 2004
    Posts
    58,460
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Modifying Title Tags and Meta Data in Cforms

    cforms isn't something Zen Cart knows anything about natively.

    You CAN set specific defines for META_TAG_DESCRIPTION_CFORMS, META_TAG_KEYWORDS_CFORMS, META_TAG_TITLE_CFORMS but not for any of the other parameters such as &tasks= etc. So you'd see the same shared metatags you define for CFORMS on all your main_page=cforms pages, regardless of the &tasks value.

    Getting more specific than that will require you to write your own additional custom code to recognize those parameters and use different definitions accordingly.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Aug 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: Modifying Title Tags and Meta Data in Cforms

    Thanks for the info! Would the custom code be very complicated to make? Just wondering if it is possible to create a simple code that would make those parameters be recognized.

 

 

Similar Threads

  1. Homepage Title And Description Meta Tags
    By UrbanMaleClothing in forum General Questions
    Replies: 7
    Last Post: 9 Jun 2008, 06:05 AM
  2. Meta Tags and Title
    By kevinmc3 in forum Basic Configuration
    Replies: 12
    Last Post: 3 Feb 2008, 04:54 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
  •