You can use this code:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/APIGuide#HAccessobjectsfr…
"## if you have more than one object on a page, you will have to loop over them and use "$doc.use""
Pascal BASTIEN
--------------------------------------------
En date de : Mer 13.7.16, Thomas Mortagne <thomas.mortagne(a)xwiki.com> a écrit :
Objet: Re: [xwiki-users] hql query returning objects?
À: "XWiki Users" <users(a)xwiki.org>
Date: Mercredi 13 juillet 2016, 7h56
On Tue, Jul 12, 2016 at
7:03 PM, dullfig <dan.u(a)grmcompany.com>
wrote:
> Hello:
>
> I have a problem. I created an XClass with
personal info (name, address
> etc); but
instead of attaching one XObject to many pages (1 to 1), I
have
> attached many objects of the same
class to one single page (an array of
>
xobjects if you will). Is it possible to query the xobjects
for a particular
> name, and have the
query return an xobject, instead of the name of the page?
> the name of the page does me no good,
because I still have to search through
>
the objects...
>
>
doing:
>
> #set( $hql
= "select obj.name from BaseObject obj where
obj.className =
>
'$class.name'" )
>
> returns a list containing the same page
over and over, instead of a list of
>
xobjects.
>
> Can this
be done?
You can't
directly get an XObject from a hql request but you can
get
enough information to get the object
from the document.
obj.name is indeed the
name of the page, you already know the class
name so what is missing for you is the
obj.number.
Then you can
do
$xwiki.getDocument($name).getObject($classs.name,
$number)
>
>
> Dan
>
>
>
> --
> View this message in context: http://xwiki.475771.n2.nabble.com/hql-query-returning-objects-tp7600307.html
> Sent from the XWiki- Users mailing list
archive at Nabble.com.
>
_______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hello,
We have a small problem with the attachements displayed on pages.
Let’s say we have a file named « test.xls » in attachement of a page. For
this file, we have made 3 modifications.
We can see « 1.1 », « 2.1 », « 3.1 » in the versioning tab and we can
download them without problem from that place.
But in the attachments tab, we have only the first release (with « 1.1 »
just next to it to confirm it).
Is it possible to show the last revision or version of a file in the
attachements ?
If it’s necessary, this is xwiki 8.0 and the attachments are stored in the
filesystem.
Thank you.
--
DanIel
Who has mapped the flamingo-colortheme on the skin-div's?
Or is this documented anywhere ?
what is default styled with Brand-primary, Brand-success, Brand-info, Brand-warning, Brand-danger
what is @Component-active-color and @Component-active-bg
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
Hello:
I was wondering, if a page calls itself as a JSON provider, is the context
preserved? or do I need to pass information to itself in the query string?
the way I have it call itself is that, if the query string is empty, it
assumes you want to display the page, but if the query string has
parameters, it assumes it needs to return JSON.
Dan
--
View this message in context: http://xwiki.475771.n2.nabble.com/Page-calling-itself-as-JSON-source-tp7600…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
Like described in http://jira.xwiki.org/browse/XWIKI-13348 I get a red
line on VoidAttachmentVersioningStore.
I have double-checked the configuration (those three lines in xwiki.cfg).
Could someone give a hand ? Is it safe to run the backup script like
this anyway ?
PS: I've also attached a screenshot of the error in the issue
Thanks
The site http://waihonapedia.myxwiki.org/ has had it's purpose and is obsolete now.
Waihona (Main.WebHome) - XWiki<http://waihonapedia.myxwiki.org/>
waihonapedia.myxwiki.org
WaihonaPedia. Deze website is verplaatst. Ga naar WaihonaPedia. Deze site zal na ongeveer 6 maanden worden uitgezet, dus pas uw bookmarks die nog naar deze site ...
I request to delete the site? If I can do this myself, please instruct?
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
All,
I’m having an issue, which precludes me from deploying xwiki to my company.
I create a page with the title “Getting Started”, the link to that page is now: xwiki/wiki/development/view/Getting%2BStarted/
When I follow the link, wiki states “The requested page could not be found.”
I cannot edit or delete this page.
Assistance is appreciated
--
Jason
I am using xwiki version 7.4.4, doing a war install.
I do use nginx infront of tomcat, but it is strictly for a reverse proxy and SSL.
here is my nginx config.
server {
listen 80;
server_name wiki.mydomain.com;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443;
server_name wiki.mydomain.com;
root /opt/tomcat/webapps/xwiki;
ssl on;
ssl_certificate /etc/nginx/ssl/cert.crt;
ssl_certificate_key /etc/nginx/ssl/key.key;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
ssl_prefer_server_ciphers on;
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
location / {
rewrite ^ $scheme://$server_name/xwiki$request_uri? permanent;
}
location ^~ /xwiki {
# If path starts with /xwiki - then redirect to backend: XWiki application in Tomcat
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8080/xwiki;
}
}
>
> Hi Jason,
>
>> On 07 Jul 2016, at 02:05, Jason Rasberry <jason.rasberry(a)with.me> wrote:
>>
>> All,
>>
>> I?m having an issue, which precludes me from deploying xwiki to my company.
>>
>> I create a page with the title ?Getting Started?, the link to that page is now: xwiki/wiki/development/view/Getting%2BStarted/
>> When I follow the link, wiki states ?The requested page could not be found.?
>> I cannot edit or delete this page.
>
> XWiki supports spaces in page names (unless you?re using a very very old version of XWiki). What version of XWiki are you using?
>
> In the URL you gave above I see %2B which is the encoding for ?+?. The encoding for space is%20 so that looks strange.
>
> Could you have some web server front end (apache, nginx, etc) that modifies the URL and replaces the space with a ?+??
>
> Thanks
> -Vincent
>
>> Assistance is appreciated
>> --
>> Jason
>>
>
>
Hello,
My purpose is using unsupported language in XWiki for my XWiki interface
language for Users of my site who use the unsupported language.
My first aim is Japanese language.
However, I am not sure that I can translate all of words for XWiki
interface, so I firstly just want to try to translate some interfaces words
which will be used for basic usage like editing and post an article and post
a comment for it.
I already installed XWiki enterprise 8.1 for tomcat8 and postgre sql by
Debian package install to Ubunch16 vps server.
I read the page below and I tried the steps of “Translate and test an
ApplicationResources file"
http://l10n.xwiki.org/xwiki/bin/view/L10N/AddALanguage
I copied codes of ApplicationResources.properties in the link
(https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…)
and changed some words for testing translation works or not in that way.
For example,
line 97 “preview=Preview” to “preview=aaaaaa"
line 984 “core.viewers.comments.preview.button.preview=Preview“ to
"core.viewers.comments.preview.button.preview=aaaaa”
line 2363 “xe.userdirectory.customizePreviewTitle=Preview” to
“xe.userdirectory.customizePreviewTitle=aaaaaaa”
After that, I stopped tomcat8.
Then, I made file named “ApplicationResources_jp.properties” in
“/usr/lib/xwiki/WEB-INF/classes” directory.
I started tomcat8 and accessed my xwiki site and changed SUPPORTED LANGUAGES
to jp, DEFAULT LANGUAGE to jp and saved localization setting.
However, I could not see interface language is translated.
I see Preview buttons shows “Preview” letters, not “aaaa”.
I would like to know what step I am doing wrong.
I am new to XWiki and web development, so I may be missing some steps.
Thank you for your help in advance.
--
View this message in context: http://xwiki.475771.n2.nabble.com/How-to-test-new-language-translation-for-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello
I want to add an Object to a side, but I didn't get the Dropdown menu when I
click the edit-button. So when I press the edit button the wiki routes me
directly to the Text-Editor.
Do I Need some plugin for that?
Thanks for helping.
Regards Patrick
--
View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-add-Objects-tp7600230.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I'm writing a migration script that requires to move the attachment(s) from the old-page to the new page.
Any suggestions?
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
Are there a simple (or recommanded) way to redirect user to another page (in edit mode) when he edit a page?
Thxs
...
>
--------------------------------------------
> En date de : Jeu 30.6.16, Pascal BASTIEN
<pbasnews-xwiki(a)yahoo.fr>
a écrit :
>
> Objet:
force edit inline and redirect
> À:
"XWiki Users" <users(a)xwiki.org>
> Date: Jeudi 30 juin 2016, 12h08
>
> Hi xwiki citizen,
>
> I try to redirect to
another page users when they edit a
>
page...
>
> Then I
use this velocity code in my origin page:
>
> #if
($xcontext.action=='edit')
>
>
$response.sendRedirect($xwiki.getURL('MySpace.MaTargetPage',
> 'edit'))
> #stop
>
#end
>
> Redirect (to
MyOriginPage in edit mode) working well if user
> open MyOriginPage in inline mode:
> aka
/bin/edit/MySpace/MyOriginPage?editor=inline
>
> But my users are
"simple user" then I try to force inline
> mode when they click on 'Edit'
>
> What I tested is:
add an XWiki.SheetClass object to
>
"MyOriginPage" with "Default Edit
Mode"=inline ...
> but I have a
very strange behaviour: it's working only
> for "Admin" user :-(
>
> With simple user,
when I 'Edit' my Page, I obtain target
> Page with all xwiki menu INSIDE editor
like this ugly
> things
> https://snag.gy/SrkIua.jpg
>
> If someone have an
idea...
> Thxs
>
> Pascal B
>
>
>
>
>
_______________________________________________
> users mailing list
>
users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
I am looking to have a link in an object property.
I have an object like the following
Name : string
Description : string
SupportPage : string
The SupportPage should be a link to another page with more information (in
the wiki)
Next I want a livetable that will display that with a clickable link.
For column properties the Livetable says the following
------------------
link The type of link to use for this column. Can be one of:
•auto: link to the URL provided by the <columnName>_url row property from
the JSON results; falls back on the doc_url property
------------------
My problem is I do not know how to set the <columnName>_url. so every time
it comes back blank and then defaults to the doc_url.
Hello
A new version of the Nested Pages Migrator Application extension is
available. See
http://extensions.xwiki.org/xwiki/bin/view/Extension/Nested+Pages+Migrator+…
You can install or upgrade with the Extension Manager.
The application is still a beta version that you should use carefully. But
this version brings some important bug fixes.
Enjoy!
--
Guillaume Delhumeau (guillaume.delhumeau(a)xwiki.com)
Research & Development Engineer at XWiki SAS
Committer on the XWiki.org project
Hi at all,
we are using the macro "numberedheadings" in our pages, which works
fine. But on pdf export, the numbers get lost. I tried to use css for
creating automatic numbers, but this produces an error. Is there any
other opportunity to achieve an automatic numbering?
Thanks and best regards
Alina
--
-----------------------------------
SOURCEPARK GmbH
B.Sc. Alina Kupgisch
Partner der Allianz für Cyber-Sicherheit
des Bundesamtes für Sicherheit in der
Informationstechnik (BSI)
Hohenzollerndamm 150, Gebaeude 7
14199 Berlin
Tel: +49 (0)30/398 068 30
Fax: +49 (0)30/398 068 39
e-mail: alina.kupgisch(a)sourcepark.de
WWW: www.sourcepark.de
-----------------------------------
SOURCEPARK GmbH
Sitz der Gesellschaft: Berlin
Handelsregister: Amtsgericht Berlin-Charlottenburg, HRB 80254
Geschäftsführer: Matthias Barmeier, Harald Dürr
-----------------------------------
Wichtiger Hinweis: Die vorgenannten Angaben werden jeder
E-Mail automatisch hinzugefügt und lassen keine Rückschlüsse
auf den Rechtscharakter der E-Mail zu.
Diese E-Mail kann vertrauliche und/oder rechtlich geschützte
Informationen enthalten. Wenn Sie nicht der richtige Adressat
sind oder diese E-Mail irrtümlich erhalten haben, informieren
Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe
dieser E-Mail ist nicht gestattet.
The XWiki development team is proud to announce the availability of XWiki 7.4.4.
This is a bugfix release that fixes important bugs discovered in the 7.4.3 version.
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/ReleaseNotesXWiki744
The following people have contributed code to this release (sorted alphabetically):
Alexandru Cotiuga
Clemens Robbenhaar
Denis Gervalle
Eduard Moraru
Guillaume Delhumeau
Marius Dumitru Florea
Medjdoub
Pascal Bastien
Thomas Mortagne
Vincent Massol
Thanks for your support
-The XWiki dev team
hum
$doc.getDefaultEditMode() return 'edit' even on doc edited in inline mode by default :-(
http://maven.xwiki.org/site/docs/xwiki-javadoc-4.1.x/com/xpn/xwiki/api/Docu…
(I'm on xwiki 7.0.1)
--------------------------------------------
En date de : Jeu 30.6.16, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> a écrit :
Objet: force edit inline and redirect
À: "XWiki Users" <users(a)xwiki.org>
Date: Jeudi 30 juin 2016, 12h08
Hi xwiki citizen,
I try to redirect to another page users when they edit a
page...
Then I use this velocity code in my origin page:
#if ($xcontext.action=='edit')
$response.sendRedirect($xwiki.getURL('MySpace.MaTargetPage',
'edit'))
#stop
#end
Redirect (to MyOriginPage in edit mode) working well if user
open MyOriginPage in inline mode:
aka /bin/edit/MySpace/MyOriginPage?editor=inline
But my users are "simple user" then I try to force inline
mode when they click on 'Edit'
What I tested is: add an XWiki.SheetClass object to
"MyOriginPage" with "Default Edit Mode"=inline ...
but I have a very strange behaviour: it's working only
for "Admin" user :-(
With simple user, when I 'Edit' my Page, I obtain target
Page with all xwiki menu INSIDE editor like this ugly
things
https://snag.gy/SrkIua.jpg
If someone have an idea...
Thxs
Pascal B
Hi all
I just installed XWiki 8.1 on my Windows Laptop and everything works well
just the WYSIWYG-Editor is hanging up. I tried to find some similar Problem,
but it seems like I'm the only one.
Has somebody an idea why it's happen?
Regards Patrick
--
View this message in context: http://xwiki.475771.n2.nabble.com/WYSIWYG-doesn-t-work-on-Windows-installat…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I am trying to deploy production version( .war deployment ) of XWIKI to Oracle11g and Tomcat environment. I tried every version of xwiki with different versions of Tomcat. It deploys the application succesfully but when i request http://localhost:8080/xwiki keep getting
"NullPointerException at HqlSqlWalker.lookupProperty( HqlSqlWalker.java:560)" error. As far as i see, tables are created at the database but i cant pass this error.
I also tried with tomcat and h2 database to check whether it's database related issue and same stack trace.
I also tried with Weblogic 11g application server and Oracle 11g database and same stack trace.
P.S: I could run standalone version.
Kemalettin Ocak
Uzman Mühendis
Havelsan A.Ş.
Dikkat: Bu elektronik posta mesaji kisisel ve ozeldir. Eger size gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmektedir. Mesajdaki gorusler gondericiye ait olup HAVELSAN A.S. resmi gorusu olmak zorunda degildir. Attention: This e-mail message is private and privileged.If you are not the recipient for whom this e-mail message is intended, please notify the sender immediately and delete this e-mail message from your system.All sent and received e-mail messages go through a virus scan. Any opinions presented in this e-mail message are solely those of the author and do not necessarily represent HAVELSAN A.S.`s formal and authorized views.
Hi xwiki citizen,
I try to redirect to another page users when they edit a page...
Then I use this velocity code in my origin page:
#if ($xcontext.action=='edit')
$response.sendRedirect($xwiki.getURL('MySpace.MaTargetPage', 'edit'))
#stop
#end
Redirect (to MyOriginPage in edit mode) working well if user open MyOriginPage in inline mode:
aka /bin/edit/MySpace/MyOriginPage?editor=inline
But my users are "simple user" then I try to force inline mode when they click on 'Edit'
What I tested is: add an XWiki.SheetClass object to "MyOriginPage" with "Default Edit Mode"=inline ...
but I have a very strange behaviour: it's working only for "Admin" user :-(
With simple user, when I 'Edit' my Page, I obtain target Page with all xwiki menu INSIDE editor like this ugly things
https://snag.gy/SrkIua.jpg
If someone have an idea...
Thxs
Pascal B
Hi there,
I had a question regarding the redirect that is happening in the SaveAction
class. When you have a title such as "1 & 2", hitting 'Save' will make the
AJAX call and redirect you to "www.wiki.com/bin/view/1+%26+2". The encoding
of the '&' appears to be done in the call to Util.getRedirect('view',
context) in the SaveAction class.
I want to be able to redirect to "www.wiki-name.com/bin/view/1+&+2" so that
users do not have to see the encoded URL (in case they wish to copy-paste
the url elsewhere). I was able to do this by extending the SaveAction class
into a class of my own, overriding the action() method, and doing a string
replace of all instances of "%26" with "&"; however, this is a very hacky
solution.
I was hoping to get input on any other alternative ways to provide cleaner
URLs to my users. Thank you!
--
View this message in context: http://xwiki.475771.n2.nabble.com/Redirect-to-page-on-Save-action-tp7600164…
Sent from the XWiki- Users mailing list archive at Nabble.com.