Update Readme Documentation for API changes
droopy - February 2, 2009 - 12:14
| Project: | Nodequeue |
| Version: | 6.x-2.x-dev |
| Component: | Documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Is there any reason why the following code in a block works with nodequeue-6.x-2.0-rc3 but crashes the page with 6.x-2.0?
<?php
print nodequeue_fetch_random(1, $teasers = true, $links = false);
?>
#1
Yes, there was a minor api change which is mentioned in the release notes for the 6.x-2.0 version. Please see the release notes and doxygen function descriptions for clarification and re-open this issue if it is still unclear.
#2
Sorry, I can't find anything in the release notes and I've no idea where the function descriptions are. The documentation still has:
<?phpnodequeue_fetch_random($qid, $teasers = TRUE, $links = TRUE)
?>
What am I missing?
#3
Sorry, forgot to reopen.
#4
I updated the code examples to reflect the new api changes. see "To render the first or last node from a queue" in the documentation.
The available function list still needs to be updated at the bottom of that page.
For future reference, the function descriptions are commented lines directly above the function definition inside the module.
#5
My code was working fine with v1, now I've upgraded to 2.x and changed the code to say:
<?php$thenode = nodequeue_load_back(4);
print node_view($thenode);
?>
and nothing is printed... despite there being something in the queue. So something is wrong with the doco or the code I think (I'm using 2.0 release).
#6
Hmm... on second thoughts I think there's some kind of CCK error causing my problems. I've got a message "warning: Invalid argument supplied for foreach() in /usr/home/caiiorg/dev2/sites/all/modules/cck/content.module on line 1270." so I'll take it up over there.
#7
#8
I updated this information in the README