Commit b5853385 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Show blog,blogpost tags on view/view page


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent fef96786
{if !$options.hidetitle}<h2>{$artefacttitle}</h2>{/if}
{$description}
{if $tags}<div class="tags">{str tag=tags}: {list_tags owner=$owner tags=$tags}</div>{/if}
{foreach from=$postdata item=post}
{$post.content.html}
......
......@@ -217,6 +217,8 @@ class ArtefactTypeBlog extends ArtefactType {
$smarty->assign('options', $options);
$smarty->assign('description', clean_html($this->get('description')));
$smarty->assign('owner', $this->get('owner'));
$smarty->assign('tags', $this->get('tags'));
// Remove unnecessary options for blog posts
unset($options['hidetitle']);
......
......@@ -8,6 +8,7 @@
<table class="cb attachments fullwidth">
<tbody>
<tr><th colspan="2">{str tag=attachedfiles section=artefact.blog}:</th></tr>
{if $artefact->get('tags')}<div class="tags">{str tag=tags}: {list_tags owner=$artefact->get('owner') tags=$artefact->get('tags')}</div>{/if}
{foreach from=$attachments item=item}
<tr class="r{cycle values=1,0}">
{if $icons}<td style="width: 22px;"><img src="{$item->iconpath|escape}" alt=""></td>{/if}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment