In this case, I needed to find the id of an article that was in a blog view. To do this in blog.php, you'll find that there is already the following code:

            $this->item = &$item;

which contains an array of all the article parameters and content. As a result if you put:

            echo $this->item->id;

immediately after it, you get the id number of the article.