Inserting a page break using the 'Insert Page Break' button (last button in last row of advanced editor) results in the text
<!-- pagebreak -->
being displayed in my output.

The html looks like: <p><!-- pagebreak --></p>

No teaser is created, no page break is actually created. Am I missing something really obvious here?

Comments

endiku’s picture

I had two sites with paging. One worked and one didn't. After some frustration I realized I simply forgot to check off the checkbox in admin/settings/paging for the specific content type. Doh! Very easy mistake since you are focused on making sure the pagebreak settings for that content type are all correct. Double check that you have Page or Story or whatever you are paging, actually checked off.

If that doesn't work try out this thread http://drupal.org/node/334490

JonoB’s picture

Thanks for the reply endiku, but I dont have the paging module installed.

endiku’s picture

Ah well there is your problem. I'm guessing one of two things.

1. Are you trying to setup the "break" where your node's teaser is separated from, for instance on a news page that links to the full node with a "read more.."
OR
2. Are you trying to break the node into pages "read page 2,3, ect"

I believe #1 is built into drupal core. To affect teaser placement you need to use <!--break-->.

However issue #2 you need the Paging module http://drupal.org/project/paging which defaults to using <!--pagebreak-->.

Without the paging module there is nothing to parse your <!--pagebreak--> that you are inserting via TineMCE.

The <!--pagebreak--> insertion via TineMCE is totally separate from the pagebreak functionality provided in the Paging module. TinyMCE simply adapted the button in order to make it easier for people using the Paging module.

JonoB’s picture

Status: Active » Closed (fixed)

Ahh, ok. That works perfectly. Thanks for the great explaination.

I wonder why the Rich Text Editor says "(Use the Page Break button to insert a Drupal teaser break)" ...?

dalehgeist’s picture

Status: Closed (fixed) » Active

This is definitely a problem. I need my content creators to be able to define a teaser, and I don't want them to have to type in <!--break-->. Right next to the Rich Text Editor link it says "(Use the Page Break button to insert a Drupal teaser break)" - but as has been noted, it actually inserts <!-- pagebreak -->, which has unpredictable results.

I'm reopening this. I'm open to any kind of workaround.

dalehgeist’s picture

Operator error - my bad.

Install.txt says:
"3) Copy or move the contents of the folder tinymce-jscripts-tiny_mce-plugins-pagebreak into tinymce/jscripts/tiny_mce/plugins/pagebreak. This will overwrite part of TinyMCE's code. TinyMCE's pagebreak plugin has been modified to insert a Drupal Teaser break <--break-->."

This works.

dalehgeist’s picture

Status: Active » Closed (fixed)

Closing this again.