Hi. I have configured a private wiki in which the reigstration is
disabled so that only an admin user can register new users.
How can I configure xwiki to automatically send an email with
connection details, username and password to the new registered user's
email address?
--
Fita Adrian
Hi,
I am having difficulty locating the source of an error where the
contents of a TextArea property for a custom class object on a page
ends up rendering in a WYSIWYG box as wiki syntax (as in, displaying
the actual code in one long paragraph). "Corrupt" is probably not the
right word for this, as I'm sure it's something I'm doing wrong...
Simple explanation:
1) User clicks a button to add a new instance of a class to the page,
which also enters the Inline Editing mode. User pastes content into a
WYSIWYG editor and saves the page. After save, the TextArea property
shows up correctly in view mode with $doc.display(), with headings,
formatting, etc...
2) Something happens - I cannot yet reproduce it, but I'm sure the
user is doing something.
3) The object starts displaying the property as a single block of text
with embedded wiki syntax, mostly what looks like custom parameters
containing the formatting info, such as:
(% class="MsoNoSpacing" %) (% class="tagChar" style="font-size: 12pt;" %)
etc...
Even in inline edit mode, the contents of the WYSIWYG box have been
replaced with this block of code, which does not appear with the
actual formatting - just the raw code.
Looking into the page history, there is a version of the page saved
right before the property becomes "corrupt." So something must be
happening to trigger the conversion of the TextArea content into wiki
syntax, which then gets saved over the original data.
The pages the user is using have multiple objects of the same class,
all displaying their TextArea properties in a table. The majority of
the time, it displays perfectly. This only applies to some objects on
the page - though sometimes all objects on a page will simultaneously
exhibit this behavior.
The pages also contain buttons to create a new object, as well as a
button to delete each object individually.
I have one reliable method of producing this error. I used to have the
"delete this object" button display while in Inline Edit mode -
clicking it while in that mode would cause to entry to "convert." I
suppressed the button from displaying unless in view mode, which
removed this cause of the error - but there is still some other
mechanism for generating the same behavior.
Here's an example of the delete button code which I can use to cause
similar behavior:
#set($delurl = "/xwiki/wiki/$doc.getWiki()/objectremove/$doc.getSpace()/$doc.getName()?classname=Sandbox.TestClass&classid=$obj.getNumber()&xredirect=$doc.getURL()")
<input
type="image"
onclick="location.href='$delurl'"
value="Delete"
title="Delete"
style="float:right;"
src="/xwiki/resources/icons/silk/cross.gif" />
Any ideas on what's happening?
Thanks much,
aaron
Hi,
I'm trying hard to update from XE 3.1M2 to stable 3.2 without success. I get
the very same error from http://jira.xwiki.org/browse/XE-1037:
Wrapped Exception: Error number 3201 in 3: Exception while saving document
xwiki:XWiki.XWikiUsers
Wrapped Exception: Error number 3211 in 3: Exception while updating archive
XWiki.XWikiUsers
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: could not load an entity:
[com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent#component[docId,version1,version2]{docId=495778886,
version2=6, version1=1}]
...
...
root cause:
org.postgresql.util.PSQLException: Bad value for type long : <?xml
version="1.0" encoding="UTF-8"?>
<xwikidoc>
<web>XWiki</web>
<name>XWikiUsers</name>
<language></language>
<defaultLanguage>en</defaultLanguage>...
The same happens for other docs also, like:
<xwikidoc>
<web>Scheduler</web>
<name>WatchListHourlyNotifier</name>
<language></language>
<defaultLanguage></defaultLanguage>
<translation>0</translation>
<parent>XWiki.WatchListClass</parent>
I have done nothing but following the default upgrade instructions, using
the new 3.2 war, with the database schema I was running without problem with
the 3.1M2. I'm running on Jboss 4.3.2 with Postgres 8.3 on CentOS 5.6.
Do you have any idea of what's going on? Any parser problem? Every major
release since now I've updated without problems, excepting this one.
Regards,
--
Ramon Gomes Brandao
--
View this message in context: http://xwiki.475771.n2.nabble.com/ERROR-XWikiRCSNodeContent-Upgrade-to-3-2-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
I'm trying to "execute" a page from another page.
The "executed" page has some groovy and velocity, does some queries, and as
output attaches a computed file to itself (and outputs some success or error
message to page content).
"Executing" it means just showing the page, as a result the attachment gets
increased version.
Now I want to do the same but calling it from another page. This is what I
did :
xwiki.getDocument('Space.MyPageToExecute').getRenderedContent()
This returns my success message, but nothing gets attached. Is there any
chance that this could work ? I checked the rights of my user (set correct
user in context before the setAttachment()) but I could not make it work ...
Am I forced to write my page as a groovy class to achieve this ?
Thanks,
Jeremie
--
View this message in context: http://xwiki.475771.n2.nabble.com/Executing-a-page-from-another-page-tp7019…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello,
I wonder how it would be possible to add RSS link(s) to the livetable
components ?
First I though it could be great to use the Tags Rss, but in fact the ideal
solution would be to have a link with rss feed with exact same filters (tag,
filters) and ordering than the currently configured livetable component (so,
maybe re-using the LiveTableResultsMacros but with an rss parameter).
I had a look on macros.vm, but it seems most of the work is done by a
widget, so it seems difficult to customize ...
What do you think about it ?
Thanks,
Jeremie
--
View this message in context: http://xwiki.475771.n2.nabble.com/Adding-RSS-links-to-Livetables-tp7019912p…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I am struggling to import content from another wiki.
My previous wiki used markdown syntax, I converted the markdown syntax to XHTML
via pandoc. The output validates as XHTML 1.0 Transitional, but when I try to
convert it to xwiki syntax the conversion fails.
1. Does anyone have any ideas why this is failing?
2. Are there better ways to import wiki content?
Thanks, Jesse
In velocity, what is the way to get the list of tags for a given document?
I could look at the code which implements my current skin, because it shows tags,
but I don't know where that is.
I found these pages, but they didn't help:
http://www.xwiki.org/xwiki/bin/view/Main/Tagshttp://extensions.xwiki.org/xwiki/bin/view/Extension/Tag+Application
I have a livetable showing documents, and I want to show the tags for the document
as a table column.
--chris
Hi,
I'm converting a XML file into XWiki pages with a structured object, my problem is that the XML file might contain elements with problematic text
I have a XSLT that gives me a velocity script (like below)
{{velocity}}
##Creating a ATE Question and Answer document programatically
#set($ATEPrefix = "CdLSATE")
#set($ATEDocName = $ATEPrefix+'TE'+1001)
#set($newATEQA = $xwiki.getDocument("CdLSATEPublic.$ATEDocName"))
##Set a title
$newATEQA.setTitle("Teeth Exfoliation")
##Set parent of document to Public ATE Questions and Answers
$newATEQA.setParent("CdLSATEPublic.CdLSATEPublicQAs")
##This is how you can use a template
$newATEQA.setContent('{{include document="CdlsatdCode.CdLSATEPublicQATemplate"/}}')
##Create a new object on the document
#set($newATEQAObject = $newATEQA.newObject("CdlsatdCode.CdLSATEPublicQAClass"))
##Set a field to a particular value
$newATEQAObject.set("AlphabetSort","TE")
$newATEQAObject.set("subject","Teeth Exfoliation")
$newATEQAObject.set("question","Is early loss of baby teeth something to be concerned about, indicative of a bigger problem, or related to CdLS?")
$newATEQAObject.set("language","en")
$newATEQAObject.set("CountryCode","us")
$newATEQAObject.set("answer","
It is normal for children, especially girls, to lose their lower two front teeth from 4.5 years old to 5.5 years old. 4.5 years is early, but can be considered normal. There seems to be quite a variety of times when children with CdLS find themselves loosing their primary or baby teeth. Children with CdLS can have their primary teeth fall out either early or, more often, late. If the child is four years old and there are no other underlying medical complications, such as, hypothyroidism, hypophosphatsia, etc., then I would not be too concerned about losing the teeth. If there were many teeth, including molars that are getting loose, then further investigations would be indicated.
DM/ TK 7-13-10
SEE ALSO: Teeth Grinding 1 Teeth Grinding 2 Teeth Growth Teething")
$newATEQAObject.set("SACApproved",1)
$newATEQA.save()
{{velocity
$newATEQAObject.set("question","...") and $newATEQAObject.set("answer","...") give me challeges
Some text elements (not this example) will contain characters or combination of characters that will have a effect;
- on the script not being valid; the " (double bracket) character
- having a XWiki 2.0 meaning; "--" , "**" but intending something else
Help appreciated...
Gerritjan
One more tonight...
It seems that I am unable to use the built-in TOC macro for wiki
content which is generated dynamically from a Class Sheet {{include}}.
I assume this is because the TOC macro is rendered before (or
simultaneously with) the include macro which actually displays the
objects on the page, so as far as the TOC macro knows, there are no
wiki headings on the page (yet) to create an outline from.
Does anyone have any suggestions on how to parse through the final
rendered output of the wiki page to generate a table of contents for
dynamically generated wiki content? If I'm missing something with the
existing macro, that would be great...
What I am looking to do is write some code (preferably in a panel, I
think), which creates a TOC-style index of all the wiki-syntax
headings contained on the fully rendered page, after the content has
been generated from TextArea properties of a set of attached objects
to the page.
I have written custom display code that loops through every object of
a custom class attached to a page and then displays some of that
objects properties in a series of collapsible div's. Each object
contains two TextArea properties - one for WYSIWYG data, and one for
plain text, which would be formatted in wiki syntax. The result is a
list of each objects name with an expandable <div> full of the
wiki-rendered content contained in the TextArea properties. I would
like to generate a TOC which "reads through" that content and comes up
with a list of only the relevant headings under each displayed
"object"
For example, on a page with 3 objects, the custom display code in the
Class Sheet results in this (the wiki syntax appears fully rendered,
obviously):
Object 1 Name - Click to expand
******Hidden until clicked********
==Heading 2==
===Heading 3===
Normal text, etc...
Object 2 Name - Click to expand
******Hidden until clicked********
==Heading 2==
===Heading 3===
Normal text, etc...
Object 3 Name - Click to expand
******Hidden until clicked********
==Heading 2==
===Heading 3===
Normal text, etc...
I would like the TOC to return:
Object 1
Heading 2
Heading 3
Object 2
Heading 2
Heading 3
Object 3
Heading 2
Heading 3
Even when all the div's are initially collapsed/hidden. It would be
ideal if the TOC was clickable and went to the relevant anchor...
I can obviously use getValue() with each TextArea property to return a
string with that objects wiki syntax - but I don't have an easy way to
parse that string to only return the heading levels...
Any guidance would be appreciated.
Thanks,
aaron