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.
I am trying to use Velocity to dynamically create the output for my form. If
a field doesn't have any value, then I want the code to not display. So I
came up with the following:
#if ($doc.getValue('processOverview')!='')
= PROCESS OVERVIEW =
<div style="padding-left: 25px;">
$doc.display('processOverview')
</div>
#end
However, this is not working. Velocity is ALWAYS finding something in the
field even though when I go to edit it, there is nothing there. Am I
missing something?
As a work around, I have tried to find a Trim function in velocity and also
a Lenth function. I haven't been able to find either of those. Anyone have
any suggestions?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Detect-Empty-Fields-tp7589773.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi,
I'm working on "XAForum application" (
github.com/xwiki-contrib/application-forum2<https://github.com/xwiki-contrib/application-forum2m2>)
and I found some issues due to "Ratings application" (
github.com/xwiki-contrib/application-ratings) dependency, examples :
- Rating stars are displayed on every page (maybe the admin who installed
the application doesn't expect or want this behavior. It has already been
reported as an issue too :jira.xwiki.org/browse/XAFORUM-26)
- XAForum app vote and ratings app vote use the same object (same XClasse)
which may lead to a wrong result. XAForum vote expects only +1 (== means I
like) on a topic, however Rating app vote expects 1 to 5 (5 stars) on a
page, which means if a user rate a topic page +5, this means too, there are
5 other users like this topic, which is wrong !!
To avoid these issues, I think we need to remove the ratings app dependency
from XAForum app and implement a specific vote for this (XAForum) app.
WDYT ?
Thanks,
Sofiane Baloul
+0, snippets in XWiki 1.0 syntax are not good examples for our users.. How
many such snippets do we have on e.x.o.?
Thanks,
Marius
On Mar 21, 2014 9:52 AM, "vincent(a)massol.net" <vincent(a)massol.net> wrote:
>
> Hi devs,
>
> Sergiu implemented http://jira.xwiki.org/browse/XWIKI-8988 a while ago
and I didn't agree with it (see my comment there).
>
> I have 2 arguments:
> 1) Lots of code snippets on e.x.o are still in syntax 1.0 and if you need
to test them you still need to be able to create pages in 1.0 syntax
> 2) We shouldn't hardcode anything and right now we have hardcoded the
knowledge of the xwiki/1.0 syntax in DocumentInformation.xml:
>
> #foreach ($syntax in $availableParserSyntaxes)
> #if ($configuredSyntaxes.contains($syntax.toIdString())
&& !$syntax.toIdString().equalsIgnoreCase('xwiki/1.0'))
>
> The important part for me is that the xwiki/1.0 syntax is NOT enabled by
default in xwiki.cfg and thus users won't use it by mistake. Only those who
really need to use it would be able to use it.
>
> I'd like to reinstate the ability to use xwiki/1.0 syntax in XWiki 5.x by
removing the hardcoded check.
>
> WDYT?
>
> Thanks
> -Vincent
>
>
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
Hi,
One of the objectives of 6.0 is to review the existing applications on
extensions.xwiki.org, improve them and see how they would integrate in the
new Flamingo skin (while also making improvements suggestions).
This mail covers the Flamingo integration for the MoccaCalendar
application.
You can see the proposal at:
http://design.xwiki.org/xwiki/bin/view/Proposal/CalendarApplicationDesign
Any feedback is welcomed (especially from Denis and Clemens :) ).
Thanks,
Caty
+1
We have tons of if(syntax==xwiki/1.0), one less would be nice
especially when it's not that useful.
On Fri, Mar 21, 2014 at 8:52 AM, vincent(a)massol.net <vincent(a)massol.net> wrote:
> Hi devs,
>
> Sergiu implemented http://jira.xwiki.org/browse/XWIKI-8988 a while ago and I didn't agree with it (see my comment there).
>
> I have 2 arguments:
> 1) Lots of code snippets on e.x.o are still in syntax 1.0 and if you need to test them you still need to be able to create pages in 1.0 syntax
> 2) We shouldn't hardcode anything and right now we have hardcoded the knowledge of the xwiki/1.0 syntax in DocumentInformation.xml:
>
> #foreach ($syntax in $availableParserSyntaxes)
> #if ($configuredSyntaxes.contains($syntax.toIdString()) && !$syntax.toIdString().equalsIgnoreCase('xwiki/1.0'))
>
> The important part for me is that the xwiki/1.0 syntax is NOT enabled by default in xwiki.cfg and thus users won't use it by mistake. Only those who really need to use it would be able to use it.
>
> I'd like to reinstate the ability to use xwiki/1.0 syntax in XWiki 5.x by removing the hardcoded check.
>
> WDYT?
>
> Thanks
> -Vincent
>
>
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne
Hi devs,
Sergiu implemented http://jira.xwiki.org/browse/XWIKI-8988 a while ago and I didn’t agree with it (see my comment there).
I have 2 arguments:
1) Lots of code snippets on e.x.o are still in syntax 1.0 and if you need to test them you still need to be able to create pages in 1.0 syntax
2) We shouldn’t hardcode anything and right now we have hardcoded the knowledge of the xwiki/1.0 syntax in DocumentInformation.xml:
#foreach ($syntax in $availableParserSyntaxes)
#if ($configuredSyntaxes.contains($syntax.toIdString()) && !$syntax.toIdString().equalsIgnoreCase('xwiki/1.0'))
The important part for me is that the xwiki/1.0 syntax is NOT enabled by default in xwiki.cfg and thus users won’t use it by mistake. Only those who really need to use it would be able to use it.
I’d like to reinstate the ability to use xwiki/1.0 syntax in XWiki 5.x by removing the hardcoded check.
WDYT?
Thanks
-Vincent
Could anyone point me to documentation for the ForumApplication extension
located here...
http://extensions.xwiki.org/xwiki/bin/view/Extension/ForumApplication
I would like to replace the instance of BulletinBoard in my install of Xwiki
with ForumApplication. I am able to add various forums via this page...
/xwiki/bin/view/ForumCode/ForumsHomePage
However, I seem to not be able to add more than one "new topic" per forum
via
*/xwiki/bin/view/Forums_OKC/WebHome?action=addconversation
There are some other cosmetic/administrative things I would like to do as
well, but I am thinking if there is documentation I could read it may point
me in the right direction.
Thanks in advance.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Any-available-documentation-for-the-Forum…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Reviving http://markmail.org/message/hlnqke3igkbec332 for as an official vote.
We have waited way too long and I think we really need to find a
solution even if none of the committers use Windows since a long time.
Every time a Windows dev even think of contributing he is very quickly
discouraged...
As a reminder the issue is that working on XWiki source code is a pain
for MS Windows developers because of the (impossible to understand I
agree) limitation on path size.
So the idea is to find a new logical rule to drastically shorten our
paths and Sergiu proposed the following: remove duplicated information
from our paths to maven modules.
Here is an example:
xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-transformations/xwiki-platform-rendering-transformation-macro
(131 chars)
would become
core/rendering/transformations/macro (36 chars)
So WDYT ?
Here is my +1
I also find it nicer when navigating using cd and tab in a unix shell anyway.
Planning to do it in 5.1 if everyone agree.
--
Thomas Mortagne
Hi devs,
Today let’s try to do a Code Coverage Day. It’s our first one and I didn’t get the time to prepare it so I propose something simple:
- The goal is to increase the jacoco TPC threshold in pom.xml files
- Everyone notes down the TPC increase they’ve brought to a module so that when we prepare the day’s report we can add them there
Reminder: to check the current TPC, run “mvn clean install -Pquality -Dxwiki.jacoco.instructionRatio=1.00”
WDYT?
Thanks
-Vincent
Hi,
I'm working on XAForum application and I have to release 1.1 version.
Can someone create an account on nexus.xwiki.org for me please ?
Thanks in advance.
Sofiane Baloul
Hi Marius,
I added some params like autostart and repeat to your macro-jwplayer, if you
like I would add this to the project and document it.
My github-id is jhaimerl.
Regards,
Josef
--
View this message in context: http://xwiki.475771.n2.nabble.com/Access-for-macro-jwplayer-on-github-tp758…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi devs,
While building the new signed script solution with Thomas, we have the need
to create a new kind of entity references for macros. This will allow us to
keep reference to signed macros.
Those references will have entityReference as parent, since macros may be
contained in document, but also in object properties. Currently we do not
need a syntax for those references, since these will only exists as
objects. So, no string serializer is planned.
So, we need to agree on creating macroReference that will have at this
point a unique identifier (to be discussed later) and a parent that could
be either a documentReference or an objectPropertyReference.
Here is my +1,
--
Denis Gervalle
SOFTEC sa - CEO
eGuilde sarl - CTO
Hi,
I'd like to propose inclusion of an exciting new Realtime Collaborative Editor
backend algorithm in xwiki-contrib. The Algorithm which we are calling ChainPad
is based on the Nakamoto BlockChain of Bitcoin fame and uniquely exists entirely
on the client side, without the server having any knowlege of the document
content. This means collaborative textareas, WYSIWYG editors and even
collaborative drawing/whiteboarding could be possible without any modification
to the server side code. It could potentially even run entirely peer-to-peer,
although this avenue has not been explored.
The code as it stands today is in: https://github.com/cjdelisle/cjdrt
but I'd like to move it to xwiki-contrib/chainpad.
WDYT?
Caleb
I am working on a Contacts application that will allow people to keep contact
information on
* Companies
* Departments
* People
These can contain multiple:
* Addresses
* E-mail Addresses
* Phone Numbers.
First question: Is there already a ID field on each instance of an object?
If not, I will want to generate one. If I do that, can I hide this ID field
from the search engine?
Second question: If I do a traditional many-to-many relationship where you
would have a middle document that connects the many on both sides, (see
document below)
<http://xwiki.475771.n2.nabble.com/file/n7589555/many-to-many.png> Is it
possible to query this type of relationship?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Hide-a-field-or-Unique-ID-tp7589555.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.