# Changing page title

**URL:** <https://www.ruby-forum.com/t/changing-page-title/114862>\
**Category:** Radiant CMS\
**Created:** [September 18, 2007, 10:48am UTC](https://www.ruby-forum.com/t/changing-page-title/114862 "2007-09-18T10:48:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![glenngore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/439d5e/32.png) [@glenngore](https://www.ruby-forum.com/u/glenngore)\
**Post date:** [September 18, 2007, 10:48am UTC](https://www.ruby-forum.com/t/changing-page-title/114862/1 "2007-09-18T10:48:19Z")

</div>

Hey guys,

I’m trying to put the final touches on those extensions I promised  
last weekend, one last thing that is frustrating me is how to create  
my own PageType and have it dynamically alter the page title. Much  
like ArchivePage changes the title to be “Archives for August 2007”.  
I’ve tried defining all manner of instance local variables in the  
render method of my Page, without success.

Ideas?

Glenn

---

<div class="post-metadata">

**Author:** ![glenngore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/439d5e/32.png) [@glenngore](https://www.ruby-forum.com/u/glenngore)\
**Post date:** [September 18, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/changing-page-title/114862/2 "2007-09-18T15:16:11Z")

</div>

Glenn G. wrote:

> I’m trying to put the final touches on those extensions I promised  
> last weekend, one last thing that is frustrating me is how to create  
> my own PageType and have it dynamically alter the page title. Much  
> like ArchivePage changes the title to be “Archives for August 2007”.  
> I’ve tried defining all manner of instance local variables in the  
> render method of my Page, without success.
> 
> Ideas?

On the Archive Index pages it’s done by reimplementing the “title” tag:

[http://dev.radiantcms.org/radiant/browser/trunk/radiant/lib/archive\_index\_tags\_and\_methods.rb](http://dev.radiantcms.org/radiant/browser/trunk/radiant/lib/archive_index_tags_and_methods.rb)

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![glenngore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/439d5e/32.png) [@glenngore](https://www.ruby-forum.com/u/glenngore)\
**Post date:** [September 18, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/changing-page-title/114862/3 "2007-09-18T16:23:26Z")

</div>

> tag:
> 
> [http://dev.radiantcms.org/radiant/browser/trunk/radiant/lib/](http://dev.radiantcms.org/radiant/browser/trunk/radiant/lib/)  
> archive\_index\_tags\_and\_methods.rb

So it is, thanks!
