addColumn('no', 'no'); $this->addColumn('date', 'date', ['orderBy' => 'date']); $this->addColumn('text', 'author', ['orderBy' => 'author']); $this->addColumn('text', 'title', ['orderBy' => 'title']); $url = \Qs_SiteMap::findFirst(null, ['type' => 'Blog\\Category\\Admin\\'], null, 'url'); $this->addColumn('category', 'category', ['orderBy' => 'categoryTitle', 'categoryUrl' => $url]); $this->addColumn( 'link_enum', 'featured', [ 'orderBy' => 'featured', 'values' => ['y' => 'Yes', 'n' => 'No'], ] ); $url = \Qs_SiteMap::findFirst(null, ['type' => 'Blog\\Tag\\Admin\\'], null, 'url'); $this->addColumn('linkTags', 'tags', ['baseUrl' => $url]); $url = \Qs_SiteMap::findFirst(null, ['type' => 'Blog\\Comment\\Admin\\'], null, 'url'); $this->addColumn('linkComments', 'comments', ['baseUrl' => $url]); $this->addColumn('link_enum', 'enabled', ['title' => 'Show', 'orderBy' => 'enabled']); $this->addColumn('options', 'options'); return $this; } }