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.metadescriptio n# 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
<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.metadescriptio
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
Thanks. Sorry for being so delinquent on answering this question.
Or .... If your page was XHTML, you could simply parse the file and get the content of
html.head.title etc...