Link to home
Start Free TrialLog in
Avatar of rebies
rebies

asked on

Reverse cfhtmlhead?

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
Avatar of Tacobell777
Tacobell777

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...
Avatar of rebies

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Tacobell777
Tacobell777

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rebies

ASKER

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.