Hello Folks,
I’m really new to the kirby-game. So installed a copy at my webspace and modified the standard theme for my page.
Now I have created a little blog, but for some reason, not all teasers are rendered in the same way.
I wanted them to look like this:
headline
excerpt
link
and they are. sometimes, as you can see here: www.emzudemo.de
For some reason, when i want to add a new project, the excerpt and link aren’t displayed anymore.
This is my projects.php snippet:
<h2>.lib</h2>
<ul class="teaser cf">
<?php foreach(page('txt')->children()->visible()->limit(12) as $project): ?>
<li>
<h3><a href="<?php echo $project->url() ?>"><?php echo $project->title()->html() ?></a></h3>
<?php if($image = $project->images()->sortBy('sort', 'asc')->first()): ?>
<p style="margin-top: 5px;"><?php echo $project->text()->excerpt(163) ?>
<br><a href="<?php echo $project->url() ?>">Jetzt lesen →</a></p>
<?php endif ?>
</li>
<?php endforeach ?>
</ul>
But as you can see, when I add new articles now (via FTP or via Panel), only the headline is displayed. When I duplicate a folder of an content which shows the excerpt and the link, it works and I can edit the content. But that’s not how it is supposed to be.
Has anybody any idea, what is wrong here?
I hope to get some answers here.
Greetings,
Maurice