Is it possible to have more than one "blog-start.html" file? #849
-
Hello! I am in the process of building an events page. Now I want to create a separate I duplicate the
But this does not work. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
As far as I find in blog.php, the use of layout "blog-start" is hard coded there. So one have to make blog.php using a variable layout, or you need a copy of blog extension, which uses a different layout. If I'm understandig the source code well?! |
Beta Was this translation helpful? Give feedback.
-
No, this is currently not possible with the blog extension. The HTML output for the blog start page is generated by one layout file. If you want different HTML output on different blog start pages, you can add a page setting and handle the condition in your layout file. Here's an example page setting
Change the following in your layout file
As an alternative use a different extension. See also #417. |
Beta Was this translation helpful? Give feedback.
No, this is currently not possible with the blog extension. The HTML output for the blog start page is generated by one layout file. If you want different HTML output on different blog start pages, you can add a page setting and handle the condition in your layout file. Here's an example page setting
ShowCustomType
:Change the following in your layout file
system/layouts/blog-start.html
:As an alternative use a different extension. See also #417.