Hi,
I'd like to attach an image to the current document but the image is
attached to another document. I couldn't find the answer in the FAQ.
It would be great if the {image:} radeox macro allowed for this.
Right now the only solution I'v found (which is a bit ugly) is to use an
HTML <img> tag as in:
<img src="/xwiki/bin/download/XWiki/Toolbar/image.gif" />
Any other solution I would have missed?
Thanks
-Vincent
___________________________________________________________________________
D�couvrez une nouvelle fa�on d'obtenir des r�ponses � toutes vos questions !
Profitez des connaissances, des opinions et des exp�riences des internautes sur Yahoo! Questions/R�ponses
http://fr.answers.yahoo.com
Hi, devs.
Here is tentative roadmap for new JCRStore + QueryPlugin:
I'll write a proposals about everything important things to do.
Millstone1, jcrstore renew:
store system refactoring:
make stores as components (but they still be in xwiki-core)
introduce new query manager in store
(low-level, support of HQL | XPath,JCRSQL depending of store)
remove duplications in Hibernate & Jcr stores
move jcrstore out of xwiki-core (~ xp-core/xwiki-jcr)
support of recent Jackrabbit & eXoJCR
write functional test suite for store system.
final proposal of new QueryPlugin
result: jcrstore runs in functional test suite for store system.
deadline = June 20 = XE 1.5M2 (feature freeze for XE1.5)
Millstone2, queryplugin renew:
implement new QueryPlugin for both Hibernate&Jcr stores.
rewrite hql queries in XE with QueryPlugin.
implement remained things in JCRStore
result: XE fully works on JCR.
deadline = ~10 July
So XE on JCR will fully works since 1.6M1 at least.
WDYT?
--
Artem Melentyev
Hello XWiki-Dev's
I'm trying to figure out how to create a list blog authors but I want the
authors to be listed only once so I'm trying to figure out how to create a
"where" clause for searchDocument. I thought if I found all of the
Documents with XWiki.ArticleClass as a BaseObject and then used distict I
could create a list of Blog authors. One problem is that it looks like
searchDocuments doesn't allow me to specify distinct. I'm unclear how to
refer to doc.author in the query would that be: StringProperty as prop ?
First Try
#set ($sql = ", BaseObject as obj where doc.fullName = obj.name and
obj.className = 'XWiki.ArticleClass'")
#set ($start = 0)
#set ($nb = 50)
#set ($collect = $xwiki.searchDocuments($sql , $nb , $start))
Is there a better way to do this?
Glenn Everitt
--
View this message in context: http://www.nabble.com/distict-blog-authors-tp17367672p17367672.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
THANK YOU SERGIU.
About my question on passing values back from .vm file to the wiki page
where I call the .vm file:
The reason I am using a template is that there is a select box on that wiki
page and some information needs to be fetched based on the value user
selects.
To be able to use the value selected by the user, I need to do an HTML Post
first.
so, I submit the form and the values are processed by a template and now I
need to display the value calculated in the template, on my xwiki page.
I tried some stuff but did not work. So, now I am actually creating an
object on that page and set its properties with the value calculated in the
template.
any other better way of doing this?
Is it possible to access the selected value on the wiki page without doing
a post?
what does $!{value} provide...I do not understand the ! before the variable
name.
On another note:
In the object solution for this problem, I try to set the object property
(of type Number) with a velocity variable which also has a numeric value.
when I save the document after setting the object values, it gives me an
exception on the "save" method.
Error number 3201 in 3
Wrapped Exception: java.lang.Integer
I checked the type of Number for that property and changed it from long to
Integer in the class editor but, it still gives this error.
I am also setting a boolean value in the object. I noticed that the boolean
fields take values 0 or 1 but display them as No or Yes.
So, when we "get" we get Yes/No and when we "set" we have to set 0 or 1.
could that be causing the exception?
I ma not sure what is causing this exception. but when I hit the back
button, I see the values of the object properties set appropriately and
displayed. Only when I do the $response.sendRedirect with "save", it throws
the exception.
Do I need to use Util.parseInteger or Util.toNumber in any of these cases
(before setting the Object property value to a number)
Please advice.
Thanks a lot
Kamna
Hello Devs,
Sachin, thnaks for your response to that mail. I will try that idea.
I have questions regarding a few miscellaneous topics:
1) Watch List - Is there anything we need to add/modify in order for the
Watch list notifications to work?
-> I have the email ids in the user profile
-> have 2 pages being watched
-> the xwiki.cfg has the watchlistplugin and the mailsender plugin included
-> I came across a watch.vm and watchlistrss.vm in the templates folder..but
nothing for mail...
-> also, in the menuview.vm, just where the Watch menu begins, there is a
comment:
We're disabling the Watchlist menu for now since the Watchlist doesn't work
yet in multiwiki
## mode. Remove when http://jira.xwiki.org/jira/browse/XPWATCHLIST-4 is
fixed.
What is this for?
Please advice on how to get it to work.
2) We have noticed that every time a person logout of Xwiki and logs back
in, Xwiki redirects the ser to the page where he hit the logout!
This becomes an issue when a different user logs in on the same PC and he
would expect to be redirected to the home page, but instead he is taken to
some othe rpage.
I am looking at the login.vm - the first few llines:
#if($context.user!="XWiki.XWikiGuest")
#if($request.xredirect)
$response.sendRedirect($request.xredirect)
#else
$response.sendRedirect($xwiki.getURL("Main.WebHome"))
#end
#elseif($doc.fullName != "XWiki.XWikiLogin")
#set($qs = "")
#set($qs = $request.queryString)
#if(!$request.getParameter("xredirect"))
#set($qs = "xredirect=$util.encodeURI($doc.getURL('view'))&${qs}")
#end
$response.sendRedirect($xwiki.getURL("XWiki.XWikiLogin", "login", $qs))
#else
###
### Login page
###
###
-> Do I need to change anything here. What does $request.xredirect return?
Please indicate which lines need to be altered/commented, so that users are
always directed to home page when they log in.
Kindly help. Waiting for your responses.
Thanks
Hi devs,
I'd like to commit my big threadlocal patch. What it does is the
following:
* introduce a new VelocityManager component with 2 methods:
getVelocityContext() and getVelocityEngine() that have to be used from
now one whenever code needs to get the velocity context or evaluate
some velocity templates. Note that these methods are called in the
XWikiVelocityRenderer for now so nothing to change elsewhere for now.
* initialize the new Container objects (request, response, session)
in places where threads are created. This is required because request,
response and session are saved in ThreadLocal variables so that we
don't have to pass them to all methods.
* All this is required for me to implement the new VelocityMacro in
the new rendering mechanism since that component needs access to the
VelocityContext and VelocityEngine but without using the old code...
Since this is a complex patch it's very likely it'll break things.
I've tested several cases and it seems to be ok but I'm pretty sure
there'll be edge cases that may not work. I'd still like to commit
since it's getting big and I'd rather we commit it now rather than
later since we're still in 1.5M1 stage. I also need to progress on the
new rendering mechanism and this is prerequisite code.
Let me know if you're ok.
Thanks
-Vincent
Hi,
I am using these ldap settings in my xwiki.conf (version 1.3.1
Enterprise) to connect to an Active directory.
xwiki.authentication.ldap=1
xwiki.authentication.ldap.authclass=com.xpn.xwiki.user.impl.LDAP.LDAPAuthServiceImpl
xwiki.authentication.ldap.server=myservername
xwiki.authentication.ldap.check_level=1
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.base_DN=dc=mydomain,dc=com
xwiki.authentication.ldap.bind_DN=mydomain\\{0}
xwiki.authentication.ldap.bind_pass={1}
xwiki.authentication.ldap.UID_attr=sAMAccountName
xwiki.authentication.ldap.fields_mapping=name=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,mail=mail,ldap_dn=dn
xwiki.authentication.ldap.validate_password=0
xwiki.authentication.ldap.update_user=1
xwiki.authentication.ldap.trylocal=1
(all other ldap setting are commented out)
Now most users can login without a problem, but one user gets the
following error in the log and cannot login:
2008-05-22 09:49:12,681
[http://wiki/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [P1-15] ERROR
LDAP.LDAPAuthServiceImpl - LDAP Bind failed with Exception
Invalid Credentials
Yet I am sure I use the correct password (since it is the same as his
windows password), and tried changing my windows domain password to
verify that xwiki correctly checks it (which it does, I needed to
enter my new password in xwiki). When I change the user password of
the user whch can not login, the problem stays the same. The ldap bind
message does not appear for all other users, so I do not think that
xwiki falls back to a local user database.
Does anyone have an idea what might be causing this?
Regards,
Leen Toelen
Hi,
How to call a java script file in XWIKI page.
I want to validate a form in XWIKI page, and i am having a script file,
don't know how to call the file.
For example in HTML we call the js file using this tag <script
language="javascript" src="login.js?randomJsVer=84" ></script>, like this is
there anyother way to call the js file in XWIKI.
--
Thanks,
Prathap Pandian M
Hi, devs.
I'm working on JCRStore and QueryPlugin and I want to get some feedback
about
http://dev.xwiki.org/xwiki/bin/view/Design/XWiki+Query+Language+Specificati…
1. Why our QueryPlugin's xpath isn't sufficient? (except it doesn't work
now and some features are unimplemented :))
2. Are we sure to use sql-like query language?
I think sql isn't user friendly language.
Also many features of sql (such as joins) is impossible for JCR.
3. What user query language would you prefer for xwiki?
--
Artem Melentyev