Hi!
Caleb and I have been chatting this afternoon about a solution to pass
the value of a variable to a query string. Thanks Caleb!
Something like this...
##$species is defined simply by...
#set($species = '%babo%')
##and the query string is constructed by using + to concatenate stubs
including the value of that variable...
#set($query = ", BaseObject as obj, StringProperty as prop where
doc.fullName = obj.name and obj.className='Users.PdrUserClass' and
obj.id=prop.id.id and prop.id.name='Species' and prop.value like '" +
$species + "' order by doc.fullName asc")
This works great with com.xpn.xwiki.objects.StringProperty properties,
but not with com.xpn.xwiki.objects.StringProperty ones.
Please, do you know why and what is required to filter by properties of
that type? Thanks!
Ricardo
--
Ricardo RodrÃguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems
On Sat, Sep 25, 2010 at 14:50, Thomas Mortagne
<thomas.mortagne(a)xwiki.com> wrote:
> On Sat, Sep 25, 2010 at 14:44, sdumitriu
> <enterprise-notifications(a)xwiki.org> wrote:
>> Author: sdumitriu
>> Date: 2010-09-25 14:44:23 +0200 (Sat, 25 Sep 2010)
>> New Revision: 31359
>>
>> Modified:
>> Â enterprise/trunk/wiki/src/main/resources/Main/Spaces.xml
>> Log:
>> XE-542: Apache proxy breaks icons on the Dashboard.
>> Fixed.
>>
>> Modified: enterprise/trunk/wiki/src/main/resources/Main/Spaces.xml
>> ===================================================================
>> --- enterprise/trunk/wiki/src/main/resources/Main/Spaces.xml   2010-09-25 09:59:48 UTC (rev 31358)
>> +++ enterprise/trunk/wiki/src/main/resources/Main/Spaces.xml   2010-09-25 12:44:23 UTC (rev 31359)
>> @@ -191,16 +191,16 @@
>> Â Â Â Â Â <div class="spSpaceName">[[${space}>>${space}.WebHome]]</div>
>> Â Â Â Â Â <div class="xshowonhover spSpaceActions">
>> Â Â Â Â Â Â ## Link to the space index.
>> - Â Â Â Â Â Â <a href="$xwiki.getURL('Main.SpaceIndex', 'view', "space=$escapetool.url($space)")" title="$msg.get('xe.spaces.action.index')">
>> - Â Â Â Â Â Â Â <img src="$xwiki.getSkinFile('icons/silk/book_open.gif')" alt="$msg.get('xe.spaces.action.index.alt')"/>
>> + Â Â Â Â Â Â <a href="{{html wiki="false"}}$xwiki.getURL('Main.SpaceIndex', 'view', "space=$escapetool.url($space)"){{/html}}" title="$msg.get('xe.spaces.action.index')">
>
> Note that wiki=false is alre
(sorry, Gmail shortcuts) Note that wiki=false is already the default
>
>> + Â Â Â Â Â Â Â <img src="{{html wiki="false"}}$xwiki.getSkinFile('icons/silk/book_open.gif'){{/html}}" alt="$msg.get('xe.spaces.action.index.alt')"/>
>> Â Â Â Â Â Â </a>
>> Â Â Â Â Â Â ## If the user has admin right on the space display links to administration and delete.
>> Â Â Â Â Â Â #if($xwiki.hasAccessLevel('admin', "${space}.XWikiPreferences"))
>> - Â Â Â Â Â Â Â <a href="$xwiki.getURL("${space}.WebPreferences", 'admin')" title="$msg.get('xe.spaces.action.admin')">
>> - Â Â Â Â Â Â Â Â <img src="$xwiki.getSkinFile('icons/silk/cog.gif')" alt="$msg.get('xe.spaces.action.admin.alt')"/>
>> + Â Â Â Â Â Â Â <a href="{{html wiki="false"}}$xwiki.getURL("${space}.WebPreferences", 'admin'){{/html}}" title="$msg.get('xe.spaces.action.admin')">
>> + Â Â Â Â Â Â Â Â <img src="{{html wiki="false"}}$xwiki.getSkinFile('icons/silk/cog.gif'){{/html}}" alt="$msg.get('xe.spaces.action.admin.alt')"/>
>> Â Â Â Â Â Â Â </a>
>> - Â Â Â Â Â Â Â ## <a href="#" onclick="confirm('ALL THE PAGES WITHIN THE SPACE &ldquo;${space}&rdquo; WILL BE DELETED, are you sure that you want to continue ?'); this.href='$spaceListDoc.getURL('view', "deleteSpace=${space}&amp;xredirect=$doc.getExternalURL()&amp;form_token=$!{services.csrf.getToken()}")'" title="$msg.get('xe.spaces.action.delete')">
>> - Â Â Â Â Â Â Â ## Â <img src="$xwiki.getSkinFile('icons/silk/cross.gif')" alt="$msg.get('xe.spaces.action.delete.alt')" />
>> + Â Â Â Â Â Â Â ## <a href="#" onclick="confirm('ALL THE PAGES WITHIN THE SPACE &ldquo;${space}&rdquo; WILL BE DELETED, are you sure that you want to continue ?'); this.href='{{html wiki="false"}}$spaceListDoc.getURL('view', "deleteSpace=${space}&amp;xredirect=$doc.getExternalURL()&amp;form_token=$!{services.csrf.getToken()}"){{/html}}'" title="$msg.get('xe.spaces.action.delete')">
>> + Â Â Â Â Â Â Â ## Â <img src="{{html wiki="false"}}$xwiki.getSkinFile('icons/silk/cross.gif'){{/html}}" alt="$msg.get('xe.spaces.action.delete.alt')" />
>> Â Â Â Â Â Â Â ## </a>
>> Â Â Â Â Â Â #end
>> Â Â Â Â Â </div>
>> @@ -215,10 +215,10 @@
>> Â #if($xwiki.hasAdminRights())
>> Â Â <li id="spSpaceCreateItem" class="xitem space">
>> Â Â Â <div class="xitemcontainer">
>> - Â Â Â Â <div id="spSpaceCreateLabel" class="spSpaceName"><a href="$xwiki.getURL('XWiki.CreatePage', 'view', 'tocreate=space')" onclick="toggleClass($('spSpaceCreateForm'), 'hidden'); return false;">$msg.get('xe.spaces.createspace')</a></div>
>> + Â Â Â Â <div id="spSpaceCreateLabel" class="spSpaceName"><a href="{{html wiki="false"}}$xwiki.getURL('XWiki.CreatePage', 'view', 'tocreate=space'){{/html}}" onclick="toggleClass($('spSpaceCreateForm'), 'hidden'); return false;">$msg.get('xe.spaces.createspace')</a></div>
>> Â Â Â Â <div class="spacer">&nbsp;</div>
>> Â Â Â Â <div id="spSpaceCreateForm" class="hidden">
>> - Â Â Â Â Â <form method="post" action="$doc.getURL('view', 'xpage=create')">
>> + Â Â Â Â Â <form method="post" action="{{html wiki="false"}}$doc.getURL('view', 'xpage=create'){{/html}}">
>> Â Â Â Â Â Â <div>
>> Â Â Â Â Â Â Â <input name="tocreate" type="hidden" value="space" />
>> Â Â Â Â Â Â Â #set($newSpaceName = $escapetool.xml($msg.get('xe.spaces.createspace.defaultname')))
>>
>> _______________________________________________
>> notifications mailing list
>> notifications(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/notifications
>>
>
>
>
> --
> Thomas Mortagne
>
--
Thomas Mortagne
The XWiki development team is pleased to announce the release of XWiki
Enterprise and XWiki Enterprise Manager 2.4.1.
This is a bug fix release for the 2.4 branch.
Important Bugs fixed:
* XWIKI-5511 - In some conditions a newly created wiki does not
have the standard classes
* XWIKI-5492 - Can't move the focus outside of the rich text area in Opera
* XWIKI-5440 - user.isUserInGroup return false if User in Master
and group in virtual
* XWIKI-5452 - "cache.path" configuration is not taken into
account by JBossCache module
* XWIKI-5414 - Keyboard shortcuts are not ignored when trying to
navigate with keys in a select input
* XWIKI-5391 - MediaWikiScanner#docElements() raises unexpected
ParseException when encountering <D_TABLE_CAPTION> tokens
* XWIKI-5515 - NPE when accessing an not existing wiki and autowww = 0
* XWIKI-5363 - PeriodFactory#createSinceMonthsPeriod creates a
"since weeks" period instead
* XWIKI-5476 - Problem with non-px image dimensions in wysiwyg
mode only with IE7
* XWIKI-5457 - Propeditor cannot work anymore with recent livetable code
* XWIKI-5243 - Reflected XSS in edit(wiki|wysiwyg|wysiwygnew).vm
* XWIKI-5450 - SQL injection in suggest.vm
* XWIKI-5428 - Save and Continue doesn't validate the mandatory
document title
* XWIKI-5434 - Saved request parameters are not restored on relogin
* XWIKI-5244 - Stored XSS via user/group name
* XWIKI-5510 - Text and background color don't match the color themev
* XWIKI-5417 - xwiki/2.0 renderer should escape any (% it can find
* XWIKI-5453 - includeMacro() no longer works in XE 2.4
* XASEARCH-10 - Escaping issue in Main.DatabaseSearch
* XAADMINISTRATION-156 - Cannot add "global" user in groups
* XAADMINISTRATION-155 - Improper search icon position in
Administration Application
* XAADMINISTRATION-168 - Small inconsistency in DOM of some
elements that use ConfigurationClass Class
For more information see the Releases notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise241
and http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM241
Thanks
-The XWiki dev team
Hi devs,
Currently the image plugin [1] allows us to create image thumbnails by
specifying the image width and/or height in the query string of the
image attachment download URL:
/xwiki/bin/download/Spage/Page/image.jpg?width=100
I propose that we:
(A) Use the image width and/or height (when they are specified in the
image syntax using pixel unit) to resize the image on the server side.
For instance:
[[image:logo.jpg||width="100px"]]
will be linked to
/xwiki/bin/download/Spage/Page/logo.jpg?width=100
and
[[image:logo.jpg||style="height: 50px; width: 70px"]]
will be linked to
/xwiki/bin/download/Spage/Page/logo.jpg?width=70&height=50
The image plugin also accepts a quality parameter that controls the
compression quality when encoding jpeg images. The default value of this
parameter (i.e. when not specified in the URL) is configurable. I
propose we use 0.3 by default, 1 representing the best quality.
(B) Add the ability to limit the image dimensions (preserving aspect
ratio) when the image width and/or height are not specified in the image
syntax (or when they are not using pixel unit). The width and height
limit will be configurable and -1 by default (i.e. no limitation). For
instance:
image:logo.jpg
will be linked to
/xwiki/bin/download/Spage/Page/logo.jpg?width=1024
when width limit is 1024, and to
/xwiki/bin/download/Spage/Page/logo.jpg?width=1024&height=768&keepAspectRatio=true
when width limit is 1024 and height limit is 768. Note that in this case
the image aspect ratio is preserved. The image is resized to best fit
the limits. If the user want to bypass the limit he has to specify the
image width/height in the image syntax.
I'm +1 for both (A) and (B). WDYT?
Thanks,
Marius
[1]
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/…
Hi,
I have started creating the classes for representing forms, form fields and form field validation
constraints. I now have:
FormTextAreaFieldClass
FormSelectFieldClass
FormTextFieldClass
FormFieldConstraintClass
and I plan to add:
FormClass
and
FormGenerator
Since there seem to be a lot of documents associated with this project, I am proposing to make it a
top level application and put the documents in a new space called Forms.
WDYT?