Skip to content

Is it possible to have more than one "blog-start.html" file? #849

Discussion options

You must be logged in to vote

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:

---
Title: News
Layout: blog-start
LayoutNew: blog
ShowCustomType: 1
---

Change the following in your layout file system/layouts/blog-start.html:

<?php if ($this->yellow->page->get("showCustomType")): ?>
...
<?php else: ?>
...
<?php endif ?>

As an alternative use a different extension. See also #417.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@PetersOtto
Comment options

@PetersOtto
Comment options

@PetersOtto
Comment options

Comment options

You must be logged in to vote
2 replies
@PetersOtto
Comment options

@IngoBelka
Comment options

Answer selected by PetersOtto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants