I put the following in a XWiki.JavaScriptExtension and it doesn't work.
document.observe('xwiki:dom:saved', function() {
alert("Hello");
});
I can see it in my final document. It gets converted to the following.
document.observe("xwiki:dom:saved",function(){alert("Hello")});
But, I never see the Hello alert. This seems pretty simple. Can someone
tell me what I am missing?
--
View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-dom-saved-not-firing-tp7589872.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi guys,
When a user create a new skin, she might have to change the CSS classes
provided by some UI components. But she cannot simply override the class in
her own style.css because uicomponents css are currently called after the
skin in the HTML page.
To fix it, in Flamingo, I currently copy the uicomponents css code into my
style.css, and then modify it. Thanks to LESS, I am able to split my big
CSS file into several LESS files, so the code still looks good. Then, I
remove every calls to $xwiki.ssfx.use('uicomponents/...') in my templates.
But it might not be a good solution to have uicomponents splitted in
different locations like this.
What is your opinion about this?
Thanks,
Louis-Marie
Hi devs,
I'm trying to use an older version of the Maven XAR Plugin, but it seems like the version tag is only a minimum declaration. Since the project is not Java7 yet, the build fails. I tried to set the version in square brackets [${commons.version}] to require a hard version of the extension, but this shows no effect.
<extension>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-xar-handlers</artifactId>
<version>${commons.version}</version>
</extension>
Is there any solution or do I have to upgrade the project to Java7?
Thanks and regards,
Josef
OK, I think this one is going to be easy. I have searched but I cannot find
a solution.
I am trying to check if fields have values when the form is put in edit
mode. If they don't have values, then I want to give it a value which is
the name of the document.
#if ($doc.getValue('processName').trim().length() == 0)
#set($!processName="Bob")
$!request.setParameter('processName', "Bob")
#end
I do not get an error, but "$doc.display('processName')" input box has
nothing in it.
P.S. In this code I just hard coded "Bob". After I get this working, I will
change it to get the document name.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Set-Field-Value-in-Velocity-tp7589829.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
I have a form. I want the title to be changed to a combination of two fields
on the form whenever it is saved. Can someone point me in the right
direction to learn how to accomplish this?
Sorry if this is a newbie question.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Change-Title-On-Save-tp7589667.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
The XWiki development team is proud to announce the availability of
XWiki 6.0 Milestone 1.
This release is the first release for the 6.x cycle. It introduces the
move to Java 7 as minimum version, a new experimental skin and various
improvements on existing features.
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki60M1
Thanks
-The XWiki dev team
At my location we run a locked-down wiki for our operations manual. With the
new Menu Application when a user was unregistered, the Menu Application
would throw an error on the Login screen. I was able to fix this by editing
Menu.UIExtensionSheet in wiki mode. I changed one line for the horizontal
menu. The vertical menus don't work on any of my wiki servers so I was not
able to fix and test that. (See
http://xwiki.475771.n2.nabble.com/Looking-for-Menu-Application-Bug-Verifica…)
Here is the line I changed:
Old
#set ($menuPanel = "{{menu type=""vertical collapsible open""}}{{include
reference=""$doc.prefixedFullName"" /}}{{/menu}}")
New
#set ($menuPanel = "{{velocity}}
${escapetool.h}panelheader(""$doc.plainTitle"")
{{menu type=""vertical collapsible open""}}{{include
reference=""$doc.prefixedFullName"" /}}{{/menu}}
${escapetool.h}panelfooter()
{{/velocity}}")
I hope this helps someone. :)
--
View this message in context: http://xwiki.475771.n2.nabble.com/Menu-Application-Hide-when-user-doesn-t-h…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Today I was working on changing the Menu Application so it did not throw an
error when a user didn't have permission to the Menu share. I only use the
horizontal menu at the top of the page and that is working fine. I went to
verify functionality on the left and right menus and they didn't work. They
worked when I first installed the Menu Application Extension so, thinking I
broke something, I:
* Completely Uninstalled the 3 Menu extensions.
* Permanently deleted all documents associated with the Menu space.
* Re-installed the Menu Application (which installs 2 other Menu extensions
it uses.)
* Created a new menu by accepting the default menu and set it to the right
side of the form, which already has some widgets there.
It did not work. So then I went to a completely different wiki server that
I hadn't touched in weeks. I tried to put the menu to the right side and it
didn't work. I repeated the uninstall and install process and it still
doesn't work.
Anyone else having this issue?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Looking-for-Menu-Application-Bug-Verifica…
Sent from the XWiki- Dev mailing list archive at Nabble.com.