Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello,

I'm new to CouchCMS, I've been going through the tutorial today and so far it's been (relatively) painless. However I'm running into an issue that I don't know how to solve. I have blog_list embedded in blog.php, but when I try to run this (its on blog_list):
Code: Select all
   
<cms:pages masterpage='blog.php'>
      <h1>Hello!</h1>
   </cms:pages>

nothing shows up. However, if I run something like <cms:dump> right after the body tag that DOES show up. I've made two sample blog pages but its not displaying 'Hello!' at all.
Hi :)

Please try adding a cms:no_results block within the cms:pages block as shown below.
Code: Select all
<cms:pages masterpage='blog.php'>
    <h1>Hello!</h1>
   
    <cms:no_results>
       <h3>No pages found</h3>
    </cms:no_results>
</cms:pages>

If you see the 'no pages' message it'd mean that the cms:pages block is executing but is not able to find any suitable pages to display (e.g. all pages have a future date or are unpublished etc.). If you don't get the message, it'd mean that the cms:pages block is not being executed at all

Please let me know what you get.
Well this is kind of strange--after opening up my computer and starting up my server again, I went to blog.php and blog_list did what it was supposed to. So...I don't know what was wrong in the first place but ¯\_(ツ)_/¯
3 posts Page 1 of 1
cron