Skip to main content
November 7, 2008
Question

Retrieve current page title?

  • November 7, 2008
  • 3 replies
  • 633 views
Without having to use CFHTTP.Filecontent, is there a way to retrieve the current page's title? I'm trying to pass in a parameter to a widget that asks for the current page title, but haven't seen a way to do it without using CFHTTP to call itself...
This topic has been closed for replies.

3 replies

Inspiring
November 7, 2008
cffile action = read
November 7, 2008
quote:

Originally posted by: Dan Bracuk
cffile action = read



Not sure how this relates...
Inspiring
November 7, 2008
Azadi wrote:
> you could probably use onRequest() method of Application.cfc to parse
> the page content and get the title with some regexp... be aware though
> that just having onRequest() in your Application.cfc may break
> functionality of other parts of your application if you are using, for
> example, flash remoting or remote calls to cfc's...
>
> Azadi Saryev
> Sabai-dee.com
> http://www.sabai-dee.com/

I'm not sure, but I wonder is something like this could be done in the
onRequestEnd() method as well?

Inspiring
November 7, 2008
you could probably use onRequest() method of Application.cfc to parse
the page content and get the title with some regexp... be aware though
that just having onRequest() in your Application.cfc may break
functionality of other parts of your application if you are using, for
example, flash remoting or remote calls to cfc's...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/