星期四, 11月 27, 2008

Windows Live Writer 部落格樣式標題欄誤判問題

http://rhinohornsblog.blogspot.com/2008/11/windows-live-writer.html
·

描述前先註記一下,新的 Windows Live Writer 搶鮮版 ( 版號 14.x.xxxx.xxx Beta ) 不會發生這個問題,此問題是發生在 Windows Live Writer 2008 ( 版號 12.x.xxxx.xxx ) 中。

WLW Windows Live Writer ( 後文以 WLW 縮寫代替 ) 一直以來就是我愛用的離線 Blog 編輯程式,介面直覺與使用 .NET 平台方便自己寫 Plugin 這兩點則為主因。

不過在這次「犀角空想院_第二家」重新編輯 Blog 的顯示樣板,於 WLW 中使用「檢視 > 更新部落格樣式」後,卻有標題抓錯位址的問題,導致使用「檢視 > 版面配置」製文時完全無法直接輸入標題文字。

於 Application Data\Windows Live Writer\blogtemplates\ 中找來 WLW 抓到的樣式範本,一觀發現關鍵段落如下,

<DIV class="post hentry uncustomized-post-template"><br /><H3 class="post-title entry-title"><br /><DIV class="funp">{post-title}</DIV></H3><br /><DIV class="post-body entry-content"><br /><DIV>{post-body}</DIV></DIV></DIV>

其中「{post-title}」部分抓到顯示 funP 按鈕的位址,無怪乎在製文時無法顯示標題並輸入,嘗試了幾種更改,有效的方式就是必須在樣板的 XML 檔中將非標題相關的標籤,此例就是指顯示 funP 按鈕的部分整個移出 class 為「post-title entry-title」的標籤之外,之後就能正確的抓到樣式如下,

<DIV class="post hentry uncustomized-post-template"><br /><H3 class="post-title entry-title"><A href="http://rhinohornsblog.blogspot.com/">{post-title}</A></H3><br /><DIV class="post-body entry-content">{post-body}</DIV></DIV>

0 意見:

張貼留言

請勿使用火星來的文字或是注音文,感謝配合,另有礙觀瞻的留言院主將予以消音處理。

About this blog

這可以稱得上是「犀角空想院」的重生體 ,上個 Blog 停文太久了,藉由更換 gmail 位址的時刻另起爐灶再度啟動發文之旅。

Creative Commons

Recent Posts

Plurk

Google Friend Connect

hotbox (不穩停用中)

Site Sponsors