[Radiant] Re: Subdomains and old urls
David Piehler
dave at basicsgroup.com
Thu Apr 17 10:25:02 CDT 2008
David Piehler wrote:
> Chris Barnes wrote:
>> How do you get the new page type to show as an option under page types
>> in the radiant admin?
>
> The way I've done it in the past is (example from my Schools extension):
>
> In .../schools/schools_extension.rb
>
> def activate
> admin.tabs.add "Schools", "/manage/schools", :after => "Layouts",
> :visibility => [:all]
> SchoolPage
> end
>
> In .../schools/app/models/school_page.rb
>
> class SchoolPage < Page
> ...
> ...
> ...
> end
Given Sean's example, I believe you would do...
def activate
RedirectPage
end
--
Posted via http://www.ruby-forum.com/.
More information about the Radiant
mailing list