Concrete5 Single Page <title> Tag
Permalink
Hey everyone,
I'm using Concrete5's single pages to develop a custom member profile page. I'd like to be able to adjust the page's title so it includes a PHP variable containing the user's member name in the title but am unsure of how to do this.
Any help would be appreciated!
I'm using Concrete5's single pages to develop a custom member profile page. I'd like to be able to adjust the page's title so it includes a PHP variable containing the user's member name in the title but am unsure of how to do this.
Any help would be appreciated!
Hey Mnkras, thanks for the reply!
This didn't work for me. I got the following PHP error:
IF anyone has any thoughts I'd be happy to try it out :)
This didn't work for me. I got the following PHP error:
Fatal error: Call to undefined method View::set()
IF anyone has any thoughts I'd be happy to try it out :)
In the controller?
On Oct 3, 2011 10:30 AM, "Concrete5 Community" <discussions@concretecms.com>
wrote:
On Oct 3, 2011 10:30 AM, "Concrete5 Community" <discussions@concretecms.com>
wrote:
Hey thanks again for the help. I didn't have it in a controller file, but now I do. I don't receive an error, but it doesn't appear to do anything. My controller code is below.. I've verified the function is being called, so I'm wondering if set->('pageTitle', '') doesn't do anything?
class MyClass extends Controller { public function on_start() { $this->set('pageTitle', 'Something'); } } $MyClass = new MyClass; $MyClass->on_start();
where $username is the title you want.