2 sam2kb Jan 02, 2008 21:45

Man -- I looked for 30 minutes. Yikes. I am a dope.
RTFM (if you can find it). :)
Thanks!!!
Mark
OK -- so I was expecting to find $Item->BlogID or somesuch. I think the issue is that items don't belong to blogs...
How can I find the blog ID for a post?
Thanks,
Mark
The searchable API doc is [url=http://doc.b2evolution.net/]here[/url], though it is not updated for 2.x yet.
I find it easier to browse teh files than the docs ;)
inc/items/model/_item.class.php ( approx 2711 )
/**
* Get the Blog object for the Item.
*
* @return Blog
*/
function & get_Blog()
{
if( is_null($this->Blog) )
{
$this->load_Blog();
}
return $this->Blog;
}
So, you should be able to do :
<?php
$items_blog = $Item->get_Blog();
$items_blog_ID = $items_blog->ID;
?>
¥
that worked perfectly. Thanks!
Hi
Here it is http://manual.b2evolution.net/TemplateTags
Good luck