Solved

Reverse cfhtmlhead?

Posted on 2004-10-12
5
268 Views
Last Modified: 2013-12-24
In a page I have I am setting:

<cfhtmlhead text="<title>The Page Title</title><meta name='description' content='This is The Meta Description Tag'>">

But later on, I'm in need of getting the actual meta description of the page that is currently being displayed.  Due to the fact that thse are in hundreds of pre-parsed pages, I'm wondering is there a way to reverse the cfhtmlhead tag and read the current contents being printed out to the meta description tag?

Ideally, I would think I could pull #cfhtmlhead.metadescription# out or something like that.

Any ideas?  And no, I can't set this to a variable at the top of the page and read it later.

Thanks for any help.

Andrew
0
Comment
Question by:rebies
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:Tacobell777
ID: 12292709
I think what you would need to do is read the file and parse this data out.
Or .... If your page was XHTML, you could simply parse the file and get the content of

html.head.title etc...
0
 
LVL 1

Author Comment

by:rebies
ID: 12292727
Yes, I thought of that.  Unfortuntately this is a dynamic page, so every pageview is different and the header only applys to the *current* page being parsed.  Perplexing, isn't it.  I'm wondering if I'm barking up the wrong tree here where there will be no good answer.
0
 
LVL 17

Accepted Solution

by:
Tacobell777 earned 500 total points
ID: 12293058
You could save everything in a cfsavecontent tag and then parse it out, and later output the saved content...
0
 
LVL 1

Author Comment

by:rebies
ID: 12570080
Although this was not the exact solution I was looking for it seems it did not exist.  Tacobell777's comment was the best alternative out there.

Thanks.  Sorry for being so delinquent on answering this question.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
What You Need to Know when Searching for a Webhost Provider
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question