[development] Making your data act like a field

andrew morton drewish at katherinehouse.com
Wed Sep 16 14:19:34 UTC 2009


On Wed, Sep 16, 2009 at 10:03 AM, Nancy Wichmann <nan_wich at bellsouth.net> wrote:
> After reading Eaton's well-written article
> http://www.lullabot.com/articles/great-pretender-making-your-data-act-field,
> I tried this in a module I work on. The fields are definitely showing on
> "Manage fields" in CCK.
>
> However, those added fields do not seem to be available to Views. One of the
> reasons why I am really interested in making this change is so that
> something like Node Export can see these fields automatically. What more
> needs to be done to the suggested code to have CCK reflect these fields to
> other modules?

All that hook_content_extra_fields() really does is tell CCK about
other node data so that they can be reweighted using the UI. Views
support is a whole different animal that's done through
hook_views_data()... and thorough documentation would make a great
book.

andrew


More information about the development mailing list