Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "default section content" example to docs #38

Closed
reinink opened this issue Oct 20, 2014 · 1 comment
Closed

Add "default section content" example to docs #38

reinink opened this issue Oct 20, 2014 · 1 comment

Comments

@reinink
Copy link
Contributor

reinink commented Oct 20, 2014

Currently the docs don't explicitly show how to setup default section content. Add the following example to the sections and/or inheritance page.

<div id="sidebar">
    <?php if ($this->section('sidebar')): ?>
        <?=$this->section('sidebar')?>
    <?php else ?>
        <?=$this->fetch('default-sidebar')?>
    <?php endif ?>
</div>
@reinink
Copy link
Contributor Author

reinink commented Oct 20, 2014

Also make note of the new default section value, which can be helpful is certain situations:

<title><?=$this->section('pagetitle', 'Site name')?></title>

reinink added a commit that referenced this issue Oct 20, 2014
@reinink reinink closed this as completed Oct 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant