Hi Vincent
I did upgrade BlogPostTemplate and YES I get the XWiki 2.0 Editor up
and running. That said the display of a post is messed up:
<div class="hentry single-article">
<div class="blog-entry-toolbox">
<a href="/xwiki/bin/view/Blog/Publisher?
entryName=Blog.Test&xredirect=%2Fxwiki%2Fbin%2Fview%2FBlog%2FTest"
title="<!--startmacro:html|-|clean="false"|-|This blog post is not
published yet. Publish it.-->This blog post is not published yet.
Publish it.<!--stopmacro-->"> <img class="icon-manage"
src="/xwiki/
bin/download/Blog/BlogStyle/publish.png" alt="publish "/>
</a> <a href="/xwiki/bin/inline/Blog/
Test" title="<!--startmacro:html|-|clean="false"|-|Edit this blog
post-->Edit this blog post<!--stopmacro-->"> <img
class="icon-manage"
src="/xwiki/bin/download/Blog/BlogStyle/edit.png" alt="edit "/>
</a> <a href="/xwiki/bin/delete/Blog/Test"
title="<!--
startmacro:html|-|clean="false"|-|Delete this blog post-->Delete this
blog post<!--stopmacro-->"> <img class="icon-manage"
src="/xwiki/bin/
download/Blog/BlogStyle/delete.png" alt="delete "/>
</a> </div>
The issue above I know is created when the Velocity Template is
upgraded because it adds superfluous {{html}} tags.
as well as the Blog does not display the entry correctly as text in
the web page:
<p>Test <strong>Bold</strong> and
<em>Italic</em>.</p><p>-Andy</p>
I don't know why that happens but the old entry (BlogIntroduction)
still looks fine.
Comparing the an export before and after the upgrade the only thing
that has changed is the import statement in the BlogPostTemplate.
Therefore I assume that xwiki will convert the rest on the fly
creating the troubles in the Post display.
From my point of view there is not other way than converting all the
pages to 2.0 (but I could be wrong) but that leads to problems with
SQL syntax as described in another post.
Thanks - Andy
On Jun 30, 2009, at 12:30 AM, Vincent Massol wrote:
Hi Andreas,
On Jun 30, 2009, at 4:43 AM, Andreas Schaefer wrote:
Using the XWiki blog quite often I am sometimes
frustrated by the
fact that still in 2.0 M1 the syntax based on 1.0.
Beside the fact that nobody found time and/or urge to attack that is
there any other reason why this cannot be done ?
No reason other than time and priority (we're fixing bugs in
priority). But yes I'd also like that we convert the full default XAR
to 2.0 syntax (right now all pages are in 1.0 syntax).
In case it is possible and someone could tell me
where to start
looking into it I would try to accomplish that.
Actually all you need would be to translate the blog template page to
2.0 syntax so that all new blog are created in 2.0 syntax
automatically.
You can go to
http://localhost:8080/xwiki/bin/edit/Blog/
BlogPostTemplate and convert it to 2.0 syntax use the right panel.
Then when you create blog posts they'll be in 2.0 syntax.
Note that converting only BlogPostTemplate means that the include
macro used in that page will use the automatic converter to convert
1.0 BlogPostSheet page to 2.0 syntax and the converter can only do its
best so there'll probably be small issues. To make it perfect you'll
thus also need to convert BlogPostSheet and any possible page it
depends on.
If you want to share you work with others, you'll need to convert all
pages in the Blog space, export the pages as XAR, create a jira issue
and attach the converted XAR to it.
For now I cannot promise anything because my time
is very limited
and free time is quite unpredictable.
Thanks
-Vincent
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs