Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Modifying Title Tags and Meta Data in Cforms

Modifying Title Tags and Meta Data in Cforms

Started by rocketman123 on 6 Aug 2012, 6:40 AM · Views: 583

Results 1 to 4 of 4
6 Aug 2012, 6:40 AM
#1
rocketman123 avatar

rocketman123

New Zenner

Join Date:
Aug 2012
Posts:
2
Plugin Contributions:
0

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!

6 Aug 2012, 9:04 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Modifying Title Tags and Meta Data in Cforms

rocketman123:

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?

20 years a Zencart User

6 Aug 2012, 4:09 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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!
Donate to: DrByte directly or to the Zen Cart team as a whole

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.

22 Aug 2012, 7:54 AM
#4
rocketman123 avatar

rocketman123

New Zenner

Join Date:
Aug 2012
Posts:
2
Plugin Contributions:
0

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.