Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Dynamic Meta Tags with CF

Explorer ,
Oct 05, 2008 Oct 05, 2008
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.
486
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Oct 06, 2008 Oct 06, 2008
Thanks. That worked great!
Translate
LEGEND ,
Oct 05, 2008 Oct 05, 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.
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 06, 2008 Oct 06, 2008
LATEST
Thanks. That worked great!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 06, 2008 Oct 06, 2008
Why don't you just select them and use cfoutput to put them into your page?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources