Solved

Reverse cfhtmlhead?

Posted on 2004-10-12
5
252 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Firewall Speed Issue 6 69
Web Site Hosting 10 91
How to stress test an ASP.NET https website 3 81
exchange 2010 turning off 3des ciphers 2 313
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

830 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