This question about Using an extension: Answered

Including BlogPost doesn't display properly with EditChapterPlugin

Hi Arthur and others.

ALERT! Updated: this is not to do with FF or IE. It's an interaction between the BlogAddOn and EditChapterPlugin, which only visible when you log in.

I am having trouble getting the BlogAddOn to correctly display a summary of posts with and INCLUDE when EditChapterPlugin is enabled. The BlogPost topic itself renders perfectly, but when I INCLUDE it on an empty page, the span tag is corrupted, so no posts are displayed. The generated HTML for the post summaries is incorrect, looking like this:

<div class="blogPostAddOnOverview">
<div class="blogPostAddOnItem">
<h3><a name="span_class"></a> &lt;span class= </h3>
<div class="blogPostAddOnItem">
<h3><a name="span_class_AN1"></a> &lt;span class= </h3>
</div> </div>

Wheras with the non-INCLUDED BlogPost page, the HTML renders correctly, like this:

<div class="blogPostAddOnOverview">
<div class="blogPostAddOnItem">
<h3><a name="Blog_post_example"></a>  <a href="/foswiki/bin/view/Main/BlogPostExample">Blog post example</a> </h3>

If I disable EditChapterPlugin on this page, then the text is rendered correctly.

Could you help me to understand this interaction between BlogPostAddOn and EditChapterPlugin when INCLUDE is used? I am also concerned that this could affect other INCLUDED pages so I would like to understand the source. Server is RH4, apache 2.x, client is XP, FF3.6.

Thanks for any advice, I am availanble if you need more info.

Steve.


OK, now I found the source of this, and it's actually documented in the limitations of EditChapterPlugin. The issue is that EditChapterPlugin will not understand parameterised INCLUDEs, which are used in the BlogPost page. Apologies for raising, then answering my own question.

I'll leave the answer here, in case it trips anyone else up, by feel free to delete at any appropriate point.

Steve.

QuestionForm edit

Subject Using an extension
Extension EditChapterPlugin
Version Foswiki 1.0.9
Status Answered
Topic revision: r2 - 29 Jan 2010, SteveJones
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy