[development] image node type
Larry Garfield
larry at garfieldtech.com
Sun Dec 11 07:51:42 UTC 2005
On Saturday 10 December 2005 12:32 pm, Adrian Rossouw wrote:
> On 10 Dec 2005, at 8:19 PM, Larry Garfield wrote:
> > I think some of this needs to be pushed down into the node module
> > itself. For
> > instance, hook_view() currently has only two "modes": teaser and
> > not. If a
> > node could define additional view modes, then an image node could
> > specify
> > "fullsize", "thumbnail", "resize1", "handheld-optimized", or
> > whatnot. Then
> > it could be accessed with:
> >
> > node/123/fullsize
> > node/123/thumbnail
>
> node/123/edit
>
> the form is just a view of the object.
>
> You can create lists using any of the views.
>
> Hence the view api =)
Ah, good to know I'm not completely off base. :-) How are you handling custom
urls? It seems that could make things problematic.
--
Larry Garfield AIM: LOLG42
larry at garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
More information about the development
mailing list