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

I'm at the tutorial part where you put blog_list.html in the snippets folder and am currently having issues getting the blog titles to post and actually show.

Do I have to re-name the blog_list.html to php for it to work?
The good thing is, is that I know it's pulling the code from blog_list.html because it's showing up on the blog.php link.

So do I have to re-name blog_list from .html to .php to get it to recgonize the

Code: Select all
<cms:pages masterpage='blog.php' >


??
The embedded snippets files do not need to be renamed with '.php' extension.

You said that the the code from blog_list.html is being executed but this loop
Code: Select all
<cms:pages masterpage='blog.php' >

</cms:php>

is not fetching the cloned pages of 'blog.php'.

Please go back to the edit screen of the cloned pages and see if their publish date is not in the future (it is a bug with 1.1. Has been fixed with version 1.2). If it is so, please set the dates right and see if the posts now appear.

Do let me know. Thanks.
So I went in and re-set the dates and it's still not showing up. :(
Hi,

I logged into your site and this is what the problem was -

You are using 'blog.php' from within a subfolder 'pages' which makes its template name 'pages/blog.php' (When in doubt you can always check a template's name from the admin-panel. The entries in sidebar usually show the names of the templates. If overridden by 'title' attribute, hovering over them will show the name in a tooltip).

Your 'blog_list.html' was using this code -
Code: Select all
<cms:pages masterpage='blog.php' > 

which of course is pointing to a non-existent template 'blog.php'.

It was simple fix to change it to -
Code: Select all
<cms:pages masterpage='pages/blog.php' >

and everything is working now.

Please check.
Thanks
Oh my gosh such a simple overlooked issue. Thanks for the fix. Doh.
That is perfectly alright.
Happens to all of us :)
7 posts Page 1 of 1