Solved

Reverse cfhtmlhead?

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

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Website being blocked? 3 122
how can I temporarily cancel my monthly membership with Hostgator.com? 11 132
SCCM vs Windows server 5 75
.dwt files not viewable in browser - why? 2 72
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

919 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

14 Experts available now in Live!

Get 1:1 Help Now