/** * Generate a link to the post in the category * * @param string base url to use * @param string glue between url params */ function get_chapter_url($blogurl = '', $glue = '&') { if (empty($blogurl)) { $this->get_Blog(); $blogurl = $this->Blog->gen_blogurl(); } $permalink = url_add_tail($blogurl, '/' . $this->main_Chapter->get_url_path()); return $permalink . '#item_' . $this->ID; }