# \[ANN\] PageMeta Extension

**URL:** <https://www.ruby-forum.com/t/ann-pagemeta-extension/124475>\
**Category:** Radiant CMS\
**Created:** [December 29, 2007, 12:45am UTC](https://www.ruby-forum.com/t/ann-pagemeta-extension/124475 "2007-12-29T00:45:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [December 29, 2007, 12:45am UTC](https://www.ruby-forum.com/t/ann-pagemeta-extension/124475/1 "2007-12-29T00:45:08Z")

</div>

Here’s a new extension to store the keyword and description meta-tag  
values for pages (they show up in the expandable, meta-extended section  
of the edit-page form). I think that there used to be something like  
this once upon a time but I haven’t seen it in a while and needed one.  
And of course this one works with the latest versions of Radiant and  
Sean’s Shards Extension.

And of course you need a way to render these things in your  
page/snippet/layout so this extension creates a \<r:meta /\> tag to render  
the values for the current page. So if meta\_keywords = “keyword1,  
keyword2, keyword3” in your page then…

\<r:meta name=“keywords” /\> produces…  
“keyword1, keyword2, keyword3”

\<r:meta name=“keywords” as\_tag=“true” /\> produces…

There’s also an \<r:meta as\_tag=“unless\_blank” /\> option to avoid  
rendering the whole tag if the field’s contents are blank.

Check it out here:  
[https://secure.svnrepository.com/s\_swanki/open/radiant/extensions/page\_meta/tags/v0.1.0](https://secure.svnrepository.com/s_swanki/open/radiant/extensions/page_meta/tags/v0.1.0)

Let me know if you have any questions…

-Chris P.

---

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [December 31, 2007, 7:06am UTC](https://www.ruby-forum.com/t/ann-pagemeta-extension/124475/2 "2007-12-31T07:06:26Z")

</div>

Made some updates over the weekend. It doesn’t need Shards now  
(actually didn’t really before) so this should work for older versions  
of Radiant too (as long as the PageController and page/edit.rhtml work  
with the @meta array which I think goes back pretty far).

Here’s the latest svn version:  
[https://secure.svnrepository.com/s\_swanki/open/radiant/extensions/page\_meta/tags/v0.1.5/](https://secure.svnrepository.com/s_swanki/open/radiant/extensions/page_meta/tags/v0.1.5/)

-Chris

---

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [December 31, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/ann-pagemeta-extension/124475/3 "2007-12-31T17:01:34Z")

</div>

It goes back to 0.6.0 so you should be safe ;).

Sean
