Forum Moderators: open

Message Too Old, No Replies

Global Header Meta Data in CFM Alternative

Looking for work around in placing unique meta data in Cold Fusion

         

mrbongos

6:44 pm on Apr 11, 2006 (gmt 0)

10+ Year Member



I'm looking for a work around on a site that uses a global header and is written in cfm. Hand coding each individual page is not an option and of course one title/meta tag for the entire site is not an option. I've had success pulling data into meta tags from a db in sites using asp & php but I have very limited exposure to cfm. Any suggestions?

LifeinAsia

6:55 pm on Apr 11, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Same concept. Have a variable in the header file (well, a variable for each meta tag you want to populate), then pass in values for it from the calling templates.

Use CFPARAM in the header file with default values in case you have a template that doesn't pass any variables.

mrbongos

3:02 am on Apr 12, 2006 (gmt 0)

10+ Year Member



Thanks LifeInAsia, I know the theory works just didn't know what code might be appropriate.