Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Set post url explicitly to override other rules

givanzf83dbe53c07c
diff --git a/app/template/components/posts.tpl b/app/template/components/posts.tpl
index f5acbfd..2641d47 100755
--- a/app/template/components/posts.tpl
+++ b/app/template/components/posts.tpl
@@ -29,7 +29,6 @@
@post|before = <?php
//if no posts available and page is loaded in editor then set an empty post to show post content for the editor
$_default = (isset($vvveb_is_page_edit) && $vvveb_is_page_edit ) ? [0 => []] : [];
-$_default = [0 => []];
$_posts = empty($posts['post']) ? $_default : $posts['post'];
//$pagination = $this->posts[$_posts_idx]['pagination'];
$count = 0;
@@ -57,6 +56,7 @@ foreach ($_posts as $index => $post) {?>
@post [data-v-post-url-text] = $post['url']
@post a[data-v-post-*]|href = $post['@@__data-v-post-(*)__@@']
+ @post a[data-v-post-url]|href = $post['url']
@post [data-v-post-url]|title = $post['name']
@post [data-v-post-content] = <?php if (isset($post['content'])) echo($post['content']);?>
@@ -120,4 +120,4 @@ $tags = count($_tags);
@post [data-v-taxonomy] [data-v-taxonomy-tax] a[data-v-taxonomy-tax-*]|href = $tax['@@__data-v-taxonomy-tax-(*)__@@']
@post [data-v-taxonomy] [data-v-taxonomy-tax] [data-v-taxonomy-tax-*]|innerText = $tax['@@__data-v-taxonomy-tax-(*)__@@']
-@post [data-v-taxonomy] [data-v-taxonomy-tax]|after = <?php } } ?>
\ No newline at end of file
+@post [data-v-taxonomy] [data-v-taxonomy-tax]|after = <?php } } ?>