RE: dynamicdata getitems function
Paul Thomann <[email protected]> Mon, 8 Sep 2003 13:59:42 -0400
| Newsgroups | gmane.comp.cms.xaraya.knowledge-base |
|---|---|
| Message-ID | <3A352CF455E0D311B50D00105ACEB91E10097D@thomannasphalt1.thomannoffice.com> |
Not a problem. In reality I have been trying to duplicate the functionality of the top items and featured items block from the articles in the dyn_example module when I noticed that calls to this function were not working when the hook field was added. Blocks seemed to be the only thing lacking in this module and I wanted to prove to myself that dynamicdata could do everything the articles module could do. I was successful in duplicating the simple block from the "example" module and merging the functionality and BL(xarTplBlock) like the article's blocks. For the most part everything has gone fine until the getitems function wouldn't perform by returning the "counter" field as part of the array. Everything else works though. I need to get those pesky hook fields though. Any suggestions? Paul > -----Original Message----- > From: [email protected] [mailto:[email protected]] > Sent: Monday, September 08, 2003 1:26 PM > To: [email protected] > Subject: Re: [Xaraya_knowledge-base] dynamicdata getitems function > > > In article > <mailman.251.1063040175.9998.xaraya_knowledge-base-n5IRV0TL0hwVsWiLuWBW6Q@public.gmane.org > a.com>, Xaraya Knowledge Base > <[email protected]> wrote: > >I am not sure anyone else is experiencing this problem but I > just cloned the > >latest bk and I am still experiencing this problem. From > dynamicdata view > >the following error is generated after adding a hook field > to the sample > >module. > >"Fatal error: Call to undefined function: getitems() in > >/home/frontierman/public_html/x1/modules/dynamicdata/class/ob > jects.php on > >line 1085". The display function for dynamicdata does not > have the same > >problem. It will show the new "hook" field. It appears the "getitem" > >function is working with hooks while the "getitem(s)" > function appears to be > >experiencing a problem with hooks. Any thoughts. > > > >Paul > > Ah - you're trying to use the "hook module" data source ? That would > explain it - that data store doesn't have a getItems() > function, or a create-, > update- or deleteItem function either. In short, that data > store is still very > experimental and should not be used for anything other than tests. > > I do intend to continue working on linking "hooked content" > via DD, but > the exact mechanism and format is still under investigation > I'm afraid. > > The only fully functional data sources are dynamic_data and the table > fields - the rest only works in a very limited way. > > And the same applies for the property types that correspond to a > particular hook (categories, hitcount, ratings, comments) - those will > not work outside a limited test environment yet. The other > property types > -and the one for the Upload hook- should work fine though... > > Sorry for the confusion, > > Mike. > _______________________________________________ > Xaraya_knowledge-base mailing list > [email protected] > http://lists.xaraya.com/mailman/listinfo/xaraya_knowledge-base > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003