Daniel Sheppard wrote:
> Maybe that 'separate url lookup' table that has been rattling round a little 
> could come into play here. Pages and Assets and
> Redirects are all 'mappable' things - they can handle a url.
> 
> 
> class UrlMapping
>   belongs_to :handler, :polymorphic => true
> end
> 
> module UrlHandler
>   def self.included(base)
[...]
>     #do whatever
>   end
> end
> 

This would perfectly address the problem of unifying URLs for all
content, but an abstract content model can go even further and provide
standard interfaces for searching/indexing, backup, tagging,
commenting etc. Maybe the OO thinking of mine is old-fashioned and
acts_as_searchable, acts_as_backupable, acts_as_taggable and
acts_as_commentable are the hip things to these days.

Oliver

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to