Hi all,
I have a Admin user account with my wiki setup, starting some time ago,
when I login, I type Admin, then type admin password, the Admin user name
field automatically turns into admin, which has lower case "a", that means
different user account, which is not Administrator account, I have no way
to login as Administrator, I have to use firebug debugger to open the
underline html field and put Admin as the value to login.
Any way to fix this?
Thanks
Dave
Is it possible to use script variables inside PlantUML macro?
I tried:
{{velocity}}
{{plantuml}}
...
{{/plantuml}}
{{velocity}}
but this method doezn't work. Maybe existing another solution?
--
Thanks beforehand
Eugen Colesnicov
--
View this message in context: http://xwiki.475771.n2.nabble.com/script-variables-inside-PlantUML-macro-tp…
Sent from the XWiki- Users mailing list archive at Nabble.com.
On Apr 17, 2012, at 6:06 PM, Moritz Hesse (EA GmbH) wrote:
>> * page name is the page name used in the URL to the page
>> * title is how the page is displayed in the UI.
>
> That makes sense. But anyway: How do I change them?
See http://platform.xwiki.org/xwiki/bin/view/Features/PageEditing#HTitleBehavior
Thanks
-Vincent
Hi,
On Apr 17, 2012, at 4:25 PM, Moritz Hesse (EA GmbH) wrote:
> How can I rename items in my applications? I can only modify all the values
> of my specified fields but not the name or title of the items.
>
> Thx + kind regards,
> Moritz
>
> By the way: What is the difference between the page title and the page name?
> They appear to be the same in my applications.
* page name is the page name used in the URL to the page
* title is how the page is displayed in the UI.
-Vincent
How can I rename items in my applications? I can only modify all the values
of my specified fields but not the name or title of the items.
Thx + kind regards,
Moritz
By the way: What is the difference between the page title and the page name?
They appear to be the same in my applications.
On 04/17/12 10:50, Moritz Hesse (EA GmbH) wrote:
> Detailed information:
> Error number 0 in 11: Uncaught exception
> Wrapped Exception: Java heap space
> com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
> Wrapped Exception: Java heap space
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:254)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
> at
> org.apache
You have to increase amount of RAM for your JVM process.
See
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToSolveAJavaHeapMemoryError
If you have a big .xar to import, you may have to:
* export your source wiki space-by-space (see
http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+Export+By+Space+…)
* split your .xar manually (unzip/edit packages.xml/zip part of dirs -
risky if you have weird page names)
* use some BIG machine (I've used EC2 High-Memory instance)
Cheers,
R.
Hi,
after upgrading to 3.5 the Admin lost its ability to change the
WebPreferences like "showcomment".
In the "Administration: Page Elements" - Section only a Save Button is
shown, but the elements are not editable.
Any suggestions?
Thanks, Stefan.
Hi - I'm trying to add a checkbox to the account registration form (XWiki Enterprise 3.5). I can add the field so it renders on the form:
##
## The terms of service agreement, checking.
#set($field =
{'name' : 'tos_agree',
'label' : '<hr />I have read and agree to the above terms of use.',
'params': {
'type' : 'checkbox'
}
})
#set($discard = $fields.add($field))
However, I would like to validate that the checkbox has been checked before allowing the registration to take place. I do not need to store the checkbox value in the user objects. I've tried several validation variations based upon the examples in the registration code and other places, but nothing has worked, so I thought I would turn to the community for some help.
Thanks in advance!
-Andrew
City of New York
I'm playing around with dynamically extracting YouTube's captions into a
XWiki document via my macro
http://m.nielsmayer.com/bin/view/Macros/YouTubeCaptioner
Examples:
http://m.nielsmayer.com/bin/view/Sandbox/Google+Talk%3A+Mindfulness+with+Jo…http://m.nielsmayer.com/bin/view/Sandbox/XWiki+-+the+french+open+source+cou…http://m.nielsmayer.com/bin/view/Macros/YouTubeCaptioner_Test (Steve Jobs
Stanford Commencement Address)
An interesting possibility entailed by the above approach is that XWiki's
annotation system can be used to annotate the extracted deep-links to the
video. Unfortunately, in the first two examples, when annotations are
turned on, the video display disappears.
Any suggestions on having both annotations and YouTube's video player on
the same document at the same time? Seems as if the page gets redisplayed
when annotations get turned on, but the YouTube-suggested "hook" to create
the player out of JavaScript doesn't get called. I changed YouTube's code
to load the YouTube javascript out of XWiki as suggested by
http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HDOMEvents2…,
but it didn't help.
Here's my code for the macro YouTubeCaptioner:
---------------------------------
{{velocity}}
{{html}}
<div id="ytplayer"></div>
<script type="text/javascript">
// Load the IFrame Player API code asynchronously. If you load the iframe
// the normal way (
//
http://developers.google.com/youtube/player_parameters#Manual_IFrame_Embeds)
// you get cross-domain-error attempting to retrieve the YouTube player
object
// in JavaScript from parent frame that is in different domain. Some
browsers
// seem stricter than others in enforcing this potential security
exploit, but
// Chrome will definitely prevent it. Instead, must create the player in
// JavaScript (
//
http://developers.google.com/youtube/player_parameters#IFrame_Player_API )
// so that the caption links in the Groovy section below can reference the
// YouTube embedded player as 'player'
//
// NPM: augmented original YouTube suggested init with suggestion from
//
http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HDOMEvents2…
// in the hopes that annotations will display at same time as video
player.
function youtube_init() {
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/player_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
}
(XWiki && XWiki.domIsLoaded && init()) ||
document.observe("xwiki:dom:loaded", youtube_init);
// Replace the 'ytplayer' element with an <iframe> and
// YouTube player after the API code downloads.
var player;
function onYouTubePlayerAPIReady() {
player = new YT.Player('ytplayer', {
height: '390',
width: '90%',
videoId: '${xcontext.macro.params.videoId}', //pass in videoID
parameter of macro
cc: '1' //force closed
captions display
});
}
</script>
{{/html}}
##
## Make Groovy-generated HTML Table filterable and sortable in browser via
JavaScript
## http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HTables
##
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
{{/velocity}}
{{groovy}}
import org.apache.commons.lang.StringEscapeUtils;
def url = ("http://www.youtube.com/api/timedtext?v="
+ xcontext.macro.params.videoId //pass in videoID parameter
of macro
+ (xcontext.macro.params.ttOptions ?
xcontext.macro.params.ttOptions : "")
+ "&format=1&lang=en"
).toURL().text;
def root = new XmlSlurper().parseText(url);
println "(% class='grid filterable doOddEven' id='tableid' %)";
println "|=Caption|=Start Time|=Duration";
root.children().each() {
def dec = it.text().replace("\n", " ").replace(">>", "\n####");
//remove linebreaks embedded in captions
dec = StringEscapeUtils.unescapeXml(dec);
println
"|[[{{{${dec}}}}>>path:javascript:player.seekTo(${it.attributes().start},
true);]]|${it.attributes().start}|${it.attributes().dur}";
}
{{/groovy}}
---------------------------------
Also, I've noticed that when selecting items in a table for annotation, you
have to select the entire table-row, in order for the selection to be
displayed successfully. Is this a general feature of XWiki's annotations or
a specific problem caused by my examples, which annotate dynamically
generated content.
-- Niels
http://m.nielsmayer.com <-- my new http://Jelastic.com cloud-hosted XWiki