This patch allows Windows Live Writer users to make use of the "Split post" function to separate a teaser from the rest of a post, by replacing the "more" comment it uses for the function with a "split" comment as used by Drupal.

Comments

jrglasgow’s picture

are you suggesting that this feature is not working?

CSCharabaruk’s picture

Is it making the check somewhere other than _wlw_blogapi_filter_extra_code? This isn't the slug feature, but the "Split post" toolbar button feature that this takes care of.

The button inserts a comment <!--more--> at the current cursor position when clicked (splitting paragraphs if necessary). But as Drupal uses <!--break--> for the same purpose instead, we need to map the former to the latter when saving a node. (We might want to map it back when WLW gets an already published node for editing, too.) It is to handle this situation, that this patch has been created.

CSCharabaruk’s picture

StatusFileSize
new1.32 KB

Updating the patch to round-trip the transformation. Now when opening a blog post in WLW, <!--break--> gets turned into WLW's post splitter.

CSCharabaruk’s picture

This is working just fine with the 5.x backport, needs testing on 6.x however.

CSCharabaruk’s picture

Has this been tested on 6.x yet? I'm only running 5.x, so I can't test it myself right now.

jdleonard’s picture

Assigned: CSCharabaruk » Unassigned
Status: Needs review » Fixed

This functionality appears to be present in the latest 6.x-1.x-dev release (2009-Nov-16).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.