Skip to content

Commit 0a0b72f

Browse files
committed
Added tags output in read blog
1 parent 72c21f5 commit 0a0b72f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

easyblog/components/com_easyblog/helpers/simpleschema.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ public function mapPost($row, $strip_tags='', $text_length=0, $skip=array()) {
6666
$item->category->title = $category->title;
6767

6868
$item->url = JURI::root() . trim(EasyBlogRouter::_('index.php?option=com_easyblog&view=entry&id=' . $blog->id ), '/');
69+
70+
// Tags
71+
$modelPT = EasyBlogHelper::getModel( 'PostTag' );
72+
$item->tags = $modelPT->getBlogTags($blog->id);
6973

7074
foreach ($skip as $v) {
7175
unset($item->$v);

easyblog/easyblog.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension version="2.5.0" type="plugin" group="api" method="upgrade">
33
<name>Api - Easyblog</name>
4-
<version>1.1</version>
4+
<version>1.2</version>
55
<creationDate>July 2014</creationDate>
66
<author>techjoomla</author>
77
<authorEmail>[email protected]</authorEmail>

0 commit comments

Comments
 (0)