Transform WLW -more- splitter into Drupal -break- splitter
CSCharabaruk - January 27, 2009 - 02:29
| Project: | Windows Live Writer BlogAPI |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | CSCharabaruk |
| Status: | needs review |
Description
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.
| Attachment | Size |
|---|---|
| wlw_blogapi.module.patch | 823 bytes |

#1
are you suggesting that this feature is not working?
#2
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.#3
Updating the patch to round-trip the transformation. Now when opening a blog post in WLW,
<!--break-->gets turned into WLW's post splitter.#4
This is working just fine with the 5.x backport, needs testing on 6.x however.
#5
Has this been tested on 6.x yet? I'm only running 5.x, so I can't test it myself right now.