$content([$lang])->exists()

Checks if the content file exists

  • $lang (string)
    Optional, language code in multi-lang installation
  • return (boolean)

Example

<?php if($page->content('en')->exists()): ?>
  //do stuff
<?php endif ?>

Is something missing or incorrect? Edit this page on Github…