Solved

Reverse cfhtmlhead?

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now