Any way to get Title and Subtitle in Radiant Page?

0 views
Skip to first unread message

Charlie Robbins

unread,
Sep 8, 2008, 10:15:50 PM9/8/08
to radiant...@googlegroups.com
Hey all,
     My last spam for a few days I promise. I had been meaning to convert Scribbish from a typo/mephisto/wordpress theme to a Radiant theme for a while (why should they have all the fun?) and Seans post galvanized me into action. I'm mostly done but I can't seem to find any good way to include the title / subtitle in a page. Ideally for a blog-centric site the Title / Subtitle show in the admin interface:

"RadiantCMS"
"Publishing for Small Teams"

would read:

"MyAwesomeBlog"
"My More Awesome and Witty Subtitle"

And then this same content would be reflected in the Layout through some sort of Radius tag. I have found a great extension for changing those settings over on GitHub (Radiant Settings Extension), but I can't seem to find a good way to get them out of the db. I don't have much experience writing tags, but writing something like <r:setting name="foo" /> seems like a good place to start! Any feedback is appreciated. Regards

Charlie

Jim Gay

unread,
Sep 8, 2008, 10:26:49 PM9/8/08
to radiant...@googlegroups.com

The settings extension includes the tag that you need.
http://github.com/Squeegy/radiant-settings/tree/master/lib/settings_tags.rb

Just do <r:config:setting key="admin.title" />

Added courtesy of Tim Gossett.

-Jim

Charlie Robbins

unread,
Sep 8, 2008, 10:37:49 PM9/8/08
to radiant...@googlegroups.com
Thanks Jim! I'm so used to looking in app/models/ for extension tags that I simply forgot to check the /lib *doh*. I'll be sure to post the scribbish post later when it's done :). Regards

Charlie

Jim Gay

unread,
Sep 8, 2008, 10:57:41 PM9/8/08
to radiant...@googlegroups.com
It generates a list of all available tags on your system (and the page types where they may be used). Just install it and go to yoursite.com/admin/role_help/developer
No need to sort through lib and model directories to find all the tags.
Reply all
Reply to author
Forward
0 new messages