[development] Making your data act like a field
Seth Freach
sfreach at gmail.com
Wed Sep 16 14:33:24 UTC 2009
andrew morton wrote:
> 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
>
You can find some documentation on Views2, including hook_views_data(),
here: http://views-help.doc.logrus.com/help/views/api
<http://views-help.doc.logrus.com/help/views/api-tables>
Seth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/development/attachments/20090916/94041531/attachment-0001.htm>
More information about the development
mailing list