Last active
September 17, 2015 02:25
-
-
Save bastianallgeier/b7187bcb42394d115154 to your computer and use it in GitHub Desktop.
In Kirby's multi-lang version it is super easy to fetch content from different languages in a template.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php snippet('header') ?> | |
<h2>English Version</h2> | |
<h3><?php echo $page->content('en')->title()->html() ?></h3> | |
<?php echo $page->content('en')->text()->kirbytext() ?> | |
<h2>German Version</h2> | |
<h3><?php echo $page->content('de')->title()->html() ?></h3> | |
<?php echo $page->content('de')->text()->kirbytext() ?> | |
<?php snippet('footer') ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment