rubyonrailsin

A Ruby and Rails talk

Wednesday, March 31, 2010


Re: [Radiant-Dev] [ANN] PageFactory extension

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

This is simple and addictive, I'm loving it.

Glad you like it!

if we don't have any PageFactories defined is it necessary to pop up the dialog box?

Nope. I'll fix this before it goes up on the extension registry. 


On Mar 31, 2010, at 1:37 PM, [Square Talent] Dirk Kelly wrote:

This is wonderful Josh :)

I just had a quick play around and this seems to solve every problem I've had with special content pages. This is simple and addictive, I'm loving it.

Just a thought, if we don't have any PageFactories defined is it necessary to pop up the dialog box?

Thanks,
Dirk

On Thu, Apr 1, 2010 at 12:42 AM, Josh French <josh@digitalpulp.com> wrote:
New extension on the loose: PageFactory. This is another take on content types/page templates (defining structure for your pages.)

There are a few existing extensions which have tackled this, including a few in-house implementations here at Digital Pulp. But all of these have at least one of the following limitations:

* Content types are stored in the database. I have to dump content types to YAML to keep them in source control.
* Content types are just lists of parts. I want real objects that I can inherit and extend.
* The implementation limits my flexibility. I want to set up new pages easily, not restrict what I can do with them later.

So PageFactory takes a new approach: it's a small DSL for easily and intelligently defining content types. Each content type is a plain old Ruby class that you can keep in app/models.

Once your pages are created, PageFactory doesn't care what you do with your content. There's a set of rake tasks for keeping your pages in sync with their factory definitions, but it's completely up to you how to manage your pages and parts.

PageFactory only works on edge. There are some internals I'd like to refactor before I put it on the extension registry, but I think the interface is mostly stable. In the meantime I'd love to hear people's thoughts -- PageFactory spawned some lengthy discussion/debate when I demo'd it to my coworkers :)

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


- - - - - - - - - - - - - - - - - - - - - - -
Josh French
Senior Engineer, Digital Pulp
josh@digitalpulp.com // 212.679.0676 x291




--
Radiant CMS Dev Mailing List
Post:        radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site:  http://groups.google.com/group/radiantcms-dev/

To unsubscribe, reply using "remove me" as the subject.


--
Radiant CMS Dev Mailing List
Post: radiantcms-dev@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscribe@googlegroups.com
Group Site: http://groups.google.com/group/radiantcms-dev/

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive