Skip to main content
Inspiring
October 5, 2008
Answered

Dynamic Meta Tags with CF

  • October 5, 2008
  • 2 replies
  • 527 views
Hi and thanks in advance for any help you can offer.

I want to store meta tags in a mysql table and have them dynamically added to my .cfm pages. I tried using the <cfinclude> tag in the head of the page. But this did not work and pasted my cfinclude line in the top of my pages.

Is there a way to dynamically insert meta tags in cfm pages? I see dynamic meta tags used in open source programs like Wordpress and Joomla. But I'm stuck on doing the same for cfm pages.
    This topic has been closed for replies.
    Correct answer mnscott
    Thanks. That worked great!

    2 replies

    Inspiring
    October 6, 2008
    Why don't you just select them and use cfoutput to put them into your page?
    Inspiring
    October 6, 2008
    Hello Day3,

    I have actually added keywords into meta tags using CF, and it appears to
    be working just fine. I just query the db on each page, get the tags I want,
    and insert them into the <meta> tag. Works like a champ.

    Steve

    > Hi and thanks in advance for any help you can offer.
    >
    > I want to store meta tags in a mysql table and have them dynamically
    > added to my .cfm pages. I tried using the <cfinclude> tag in the head
    > of the page. But this did not work and pasted my cfinclude line in
    > the top of my pages.
    >
    > Is there a way to dynamically insert meta tags in cfm pages? I see
    > dynamic meta tags used in open source programs like Wordpress and
    > Joomla. But I'm stuck on doing the same for cfm pages.
    >


    mnscottAuthorCorrect answer
    Inspiring
    October 7, 2008
    Thanks. That worked great!