by
KK » Tue Mar 10, 2015 8:43 pm
I had a look, diverso.
Might I suggest one thing?
I think you'll find the going much easier if you could first try out our tutorial site (
http://www.couchcms.com/docs/tutorials/portfolio-site/).
Please take the time to actually work through the sample site and, I'm sure, it'll make the core concepts much clearer to you.
I'll tell you here what exactly is the problem with your current page but, honestly, it is a very basic concept of Couch that you are missing -
You have several 'articles' (<article class="post">..</article>) in the static design of your template. To make it dynamic, isolate just one article -
- Code: Select all
<article class="post">
<header class="news-header">
<a href="strategy/15-digital-marketing-trends-predictions-for-20151.1.html">
<img class="listing" <img class="thumb" src="img.jpg" alt=""/>
</a>
</header>
<h1><a href="strategy/15-digital-marketing-trends-predictions-for-20151.1.html">15 Digital Marketing Trends & Predictions for 2015</a></h1>
blah blah
<p><a href="strategy/15-digital-marketing-trends-predictions-for-20151.1.html" class="btn black">Read Article</a></p>
</article>
and then wrap it around with a cms:pages tag and substitute variables for the static content as follows
- Code: Select all
<cms:pages masterpage='thoughts.php'>
<article class="post">
<header class="news-header">
<a href="<cms:show k_page_link />">
<img class="listing" <img class="thumb" src="<cms:show thoughts_image />" alt=""/>
</a>
</header>
<h1><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></h1>
<cms:show blog_content />
<p><a href="<cms:show k_page_link />" class="btn black">Read Article</a></p>
</article>
</cms:pages>
Now when you visit thoughts.php, you'll see a listing of all the cloned pages you've created in the admin panel.
When you click on 'Read article', you won't see a single post though as that would require handling 'views'. This is all amply covered in the tutorial so please consult that for details.
Hope it helps.