<p>You could use the Redactor's pagebreak plugin. Check <a href="http://buildwithcraft.com/docs/rich-text-fields#templating">out the docs</a>.</p>

<p>If activated in your Redactor config, you will have the option to insert page breaks to your content, via a new “Insert Page Break” toolbar button.</p>

<p>Now you can get the first "page" in your template:</p>

<pre><code>{% for entry in craft.entries.section('blog') %}
    &lt;article&gt;
        &lt;h1&gt;&lt;a href="{{ entry.url }}"&gt;{{ entry.title }}&lt;/a&gt;&lt;/h1&gt;

        {{ entry.richTextFieldHandle.getPage(1) }}

        {% if entry.richTextFieldHandle.getTotalPages() &gt; 1 %}
            &lt;a href="{{ entry.url }}"&gt;Continue reading…&lt;/a&gt;
        {% endif %}
    &lt;/article&gt;
{% endfor %}
</code></pre>

CC BY-SA 3.0
2014-06-27T18:38:36.950Z
Ah, this is grand Victor, thank you. This achieves what I want on this scale, though if I were ever to have multi-page entries, it wouldn't work as well. For my current circumstances, will work great!
Ryan Shrum
CC BY-SA 3.0
2014-06-27T18:46:30.300Z
If you have multiple page articles you have three possibilities: (1) Ignore the first page and start the pagebreak at the second. (2) Write a simple redactor plugin which mimics the pagebreak functionality and call it excerpt. (3) Use a separate field for an excerpt.
Victor
CC BY-SA 3.0
2014-06-27T18:35:57.683Z
2014-06-27T18:35:57.683Z
Victor
<p>I love using the excerpt option in Wygwam (CKEditor). I've looked high and low but as of yet, have been unable to find a way to have an exceprt show short of having a whole second field. I have seen a custom Twig filter running around that would allow to show first paragraph (which I could modify to show whatever) but I like the ease of doing it straight in the WYSIWYG. Anyone have any options? (looking for a solution for a news roll page)</p>

<p>(First P Twig filter)
<a href="https://gist.github.com/james2doyle/6629712">https://gist.github.com/james2doyle/6629712</a></p>

<templating><custom-field><redactor>
"Excerpt" option in Redactor?
# "Excerpt" option in Redactor?

(Asked by: username_0 on 2014-06-27)

I love using the excerpt option in Wygwam (CKEditor). I've looked high and low but as of yet, have been unable to find a way to have an exceprt show short of having a whole second field. I have seen a custom Twig filter running around that would allow to show first paragraph (which I could modify to show whatever) but I like the ease of doing it straight in the WYSIWYG. Anyone have any options? (looking for a solution for a news roll page)

(First P Twig filter)
<https://gist.github.com/james2doyle/6629712>

**Tags:** templating, custom-field, redactor

---

## 1 answers

### Answer by username_1 on 2014-06-27. Score: 6 | Accepted answer

You could use the Redactor's pagebreak plugin. Check out the docs.
If activated in your Redactor config, you will have the option to insert page breaks to your content, via a new “Insert Page Break” toolbar button.
Now you can get the first "page" in your template:
{% for entry in craft.entries.section('blog') %}
    
        {{ entry.title }}

        {{ entry.richTextFieldHandle.getPage(1) }}

        {% if entry.richTextFieldHandle.getTotalPages() > 1 %}
            Continue reading…
        {% endif %}
    
{% endfor %}

> **Comments:**
> **username_0**: Ah, this is grand Victor, thank you. This achieves what I want on this scale, though if I were ever to have multi-page entries, it wouldn't work as well. For my current circumstances, will work great!  
> **username_1**: If you have multiple page articles you have three possibilities: (1) Ignore the first page and start the pagebreak at the second. (2) Write a simple redactor plugin which mimics the pagebreak functionality and call it excerpt. (3) Use a separate field for an excerpt.  

---

