From: Ludovic Dubost [ mailto:ludovic@xwiki.com
<mailto:ludovic@xwiki.com> ]
Subject: Re: [xwiki-users] {pre} tags not working
Hi Ludovic,
Is this in a normal wiki page edit or using forms (in
the blog for
example).
I've never heard anything about {table} turning to
HTML. It seems
similar. I could guess that the editing renders the content before
puting it in the form. Have you modified the "Edit" template, maybe in
your skin ?
I may have misunderstood your question. I'm still in the 'beginner'
stages with XWiki and am not the person who originally set it up at our
site, so I'm not familiar with all of the internals.
I have more information on my problem with the {pre} tags.
When we add new pages to our XWiki, we use an entry form on the left
Menu bar. The code for adding the new page is:
<div class="xwikimenulinks">
#includeTopic("XWiki.XWikiCommonJavascript")
<form action="" id="newdoc">
<input type="hidden" name="parent" value="Main.WebHome"
/>
<input type="hidden" name="template"
value="XWiki.ArticleClassTemplate"
/>
<input type="hidden" name="sheet" value="1" />
<input type="hidden" name="webname" value="Main"/>
<input type="hidden" name="name" value=""/>
<input type="text" name="title" value=""
size="18"/>
<input type="button" value="Add this item" onclick='if
(updateName(this.form.title,this.form.name)) { action="../../inline/" +
this.form.webname.value + "/" + this.form.name.value;
this.form.submit(); }' />
</form>
</div>
What I learned on Friday, 1/13, is that I can get {pre} to work on new
non-existent pages by doing these steps:
1. create a new XWiki entry using the form above
2. on the new page, place a link to a non-existent XWiki page such as:
[My New Page>Main.MyNewPage]
3. save the new page
4. click on the blue question mark next to "My New Page" to edit the
referenced page
I will get a different edit page, the one with "Basic Syntax" (XWiki
syntax) along the right column. If I enter {pre} tags in this editor,
they seem to work?! I think this may be the difference in the forms
used, and I think this may be the question you originally asked?
John