-
- 8 Posts
As per subject.
I want to get hold of another document’s introtext and to navigate there, I’d use it’s id. However, I can’t find any function in the API Quick Reference (Which sadly is the only source of reference for me and it’s a little sparse) that will do this job...
I know I can get the current doc’s stuff. What about getting another doc’s stuff via it’s id? Is that possible?
Thanks
See the function getDocument($id=0,$fields="*",$published=1, $deleted=0) in /manager/includes/document.parser.class.inc.php, which for some stupid reason, is not in the API documentation. Doh! I’ll see about getting someone to add this ASAP.
-
- 8 Posts
Thanks! That is just what I needed.
And yes, we need a proper and up to date API reference...
-
- 186 Posts
The distinction in question is knowing where you are or not knowing it (i.e. needing a doc id to access something).
But - as always - I understand your explanation and that my confusion could have be avoided.
Not by the documentation - but by me myself & I.
Sorry!
-
- 1,611 Posts
You know I only recently figured out the getDocument function as well... I knew there had to be such a thing, and I had searched and searched in the documentation for it. Finally I went through the parser code and found it in there (and life was sweet again).