I like this too. It sort of reminds me of the templates extension
http://github.com/seancribbs/radiant-templates-extension, except
you've provided some helpful automation and defaults.

I think this might be a hint that a CMS could benefit from having a
way to quickly generate Admin UI for content objects:

class EmployeePageFactory < PageFactory
  layout "Employee"

  string 'first name'
  string 'last name'

  text 'biography', :content => 'Test', :description => 'A Biography'

  video 'video clip', :description => 'Upload your video'
  image 'bio picture', :description => 'Upload your picture'
  document 'resume', :description => 'Upload your resume'

  image_collection 'gallery', :description => 'Upload multiple images'

end


On Wed, Mar 31, 2010 at 6:08 PM, Josh French <[email protected]> wrote:
>> This is really awesome stuff. you made my day :-)
>
> Great! I'm still tinkering, so let me know if you have any feedback.
>
>> On 31.03.2010, at 18:42, Josh French wrote:
>>
>> > New extension on the loose: PageFactory. This is another take on
>> > content types/page templates (defining structure for your pages.)
>> >
>> [ .. snipped .. ]
>> >
>> > See the readme for more on the goals and reasoning behind
>> PageFactory.
>> > There's a detailed walkthrough in examples.md.
>> >
>> > http://github.com/jfrench/radiant-page_factory-extension
>>
>> This is really awesome stuff. you made my day :-)
>>
>> cu edi
>>
>> --
>> DI Edmund Haselwanter, edmund at haselwanter.com, 
>> http://edmund.haselwanter.com/
>
> _______________________________________________
> Radiant mailing list
> Post: [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org
>
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org

Reply via email to