Does anyone know how to do this for the toucan skin?
Sam
~~~~~~~~~~~~~~
In fact, I did it in the "Informations Meta HTTP" of the preferences
and it worked.
Thank you for the answers
2007/12/6, Sergiu Dumitriu <sergiu at xwiki.com>:
Sylvain Desbureaux wrote:
Hi, I don't manage to put a favicon for xwiki. Any clues ?
Well, a favicon is usually placed in the root of the URL, like www.myserver.com/favicon.ico
Doing that in a java webapp container usually involves adding that
file not to the xwiki webapp, but to the ROOT webapp. In tomcat, there
is a ROOT directory inside webapps.
Another solution is to put something like this in webapps/xwiki/skins/
albatross/htmlheader.vm:
<link rel="icon" href="$xwiki.getSkinFile("favicon.png")" type="image/
png"/> <link rel="shortcut icon"
href="$xwiki.getSkinFile("favicon.png")" type="image/png"/>
and put a favicon.png (you can change the name, if you want) in
webapps/xwiki/skins/albatross
If you're not using the albatross skin, change the path accordingly.
Sergiu
-------------- next part -------------- An HTML attachment was
scrubbed... URL:
http://lists.xwiki.org/pipermail/users/attachments/20071206/27bb23b8/attach…
Hello,
after upgrading to xWiki v1.7.2 the WatchListMessages sent by xWiki are
faulty. Any ideas how to solve this problem?
Thanks!
Bye,
Jan
Error number 4001 in 4: Error while parsing velocity page
XWiki.WatchListMessage Wrapped Exception: Failed to evaluate content with
id [XWiki.WatchListMessage]
Error number 4001 in 4: Error while parsing velocity page
XWiki.WatchListMessage
Wrapped Exception: Failed to evaluate content with id
[XWiki.WatchListMessage]
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing
velocity page XWiki.WatchListMessage
Wrapped Exception: Failed to evaluate content with id
[XWiki.WatchListMessage]
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)
at
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMailFromTemplate(MailSenderPlugin.java:662)
at
com.xpn.xwiki.plugin.watchlist.WatchListJob.sendNotificationMessage(WatchListJob.java:430)
at
com.xpn.xwiki.plugin.watchlist.WatchListJob.execute(WatchListJob.java:181)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'getExternalURL' in class com.xpn.xwiki.api.Document threw
exception java.lang.NullPointerException @ XWiki.WatchListMessage[33,138]
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at
com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMailFromTemplate(MailSenderPlugin.java:662)
at
com.xpn.xwiki.plugin.watchlist.WatchListJob.sendNotificationMessage(WatchListJob.java:430)
at
com.xpn.xwiki.plugin.watchlist.WatchListJob.execute(WatchListJob.java:181)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.NullPointerException
at com.xpn.xwiki.XWiki.getServletPath(XWiki.java:4317)
at
com.xpn.xwiki.web.XWikiServletURLFactory.addServletPath(XWikiServletURLFactory.java:208)
at
com.xpn.xwiki.web.XWikiServletURLFactory.createURL(XWikiServletURLFactory.java:178)
at
com.xpn.xwiki.web.XWikiServletURLFactory.createExternalURL(XWikiServletURLFactory.java:273)
at
com.xpn.xwiki.doc.XWikiDocument.getExternalURL(XWikiDocument.java:925)
at
com.xpn.xwiki.api.Document.getExternalURL(Document.java:502)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
... 14 more
Euler Hermes is the world's premier credit insurer, offering solutions
for the management of trade receivables, from credit insurance and
financing of trade receivables to bonding and guarantees. Euler
Hermes is a subsidiary of AGF and a member of Allianz.
www.eulerhermes.com
-------------------------------------
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient or have received this e-mail in error,
notify the sender immediately and destroy this e-mail. Any unauthorised
use, copying, disclosure or distribution of the contents of this e-mail
is strictly forbidden and may be unlawful.
Read our full e-mail disclaimer statement and monitoring policy
(http://www.eulerhermes.com/group/en/disclaim/index.html) before
taking any action based on the contents of this e-mail.
Hi xwiki-users,
I've been playing with the new XWiki Syntax 2.0, but there are still some
things possible with the old 1.0 syntax which are impossible in the new 2.0
syntax. One thing that I still cannot figure out is something like the
following:
{{html wiki=true}}
<table id="serverList" class="grid sortable filterable doOddEven">
<tr class="sortHeader">
<th class="selectFilter">Space</th>
<th>Class</th>
<th>Server Name</th>
<th class="unsortable noFilter">Link</th>
</tr>
{{velocity}}
#foreach($serverDocument in $serverDocuments)
<tr>
<td>$serverDocument.Space</td>
<td>$serverDocument.Name</td>
<td>
#foreach($serverObject in $serverDocument.getObjects($serverClass))
* $serverObject.HostName
#end
</td>
<td>[[$serverDocument]]</td>
</tr>
#end
{{/velocity}}
</table>
{{/html}}
This gives me a lot of <br /> tags (the number of $server in $serverList),
and ends up displaying 1 row with the literal string $server.Space,
$server.Class, etc. It works if I use the normal table syntax:
|=Space|=Class|=Server Name|=Link
{{velocity}}
#foreach($serverDocument in $serverDocuments)
|$serverDocument.Space|$serverDocument.Name|???|[[$serverDocument]]
#end
{{/velocity}}
but I'm not sure how I'd iterate over each object associated with the
document in the tag marked '???'.
Also, whenever I have a {{velocity}} tag, I end up with a lot of empty <p>
elements:
* Line 1
{{velocity}}
#set($foo = "bar")
{{/velocity}}
* Line 2
This ends up with a <p> tag between "Line 1" and "Line 2", which seems very
strange when rendered (since there's no content when "viewing").
Just my 2 cents on the new syntax. But other than that, creating macros now
is a breeze (XWiki + Plexus is just purely amazing!), and I think the new
syntax is only inches away from surpassing the old 1.0 syntax :-D Thanks
again for the great work!
Hello,
Yesterday we tried to install a 1.8 RC1 on a serv to test some new
features but we had some blocker issues : no users listed in the admin
page, no groups listed in the admin page, not any document listed in the
WhatsNew etc.
We first thought that it was a JS issue, but a :
#set ($sql = "where 1=1")
#set ($list = $xwiki.searchDocuments($sql))
{pre}
$list
{/pre}
returned an empty list.
Here is the description of the install :
- We used a Debian Lenny 5.0 template (with Tomcat 6.0.18 & Java
1.6.0_12 pre-packaged)
- We downloaded the .war file on
http://maven.xwiki.org/releases/com/xpn/xwiki/products/xwiki-enterprise-web…
- We installed Mysql with the debian package (5.0.51a-24 version)
- We installed & configured the XE in UTF-8
- We used the standard hibernate conf (just added UTF-8 conf)
- We kept the standard xwiki.cfg (+UTF8 elements)
- We imported the xwiki-enterprise-wiki-1.8-rc-1 xar (found on XWiki.org)
- We tested with different mysql-java-connector (current version : 5.0.7)
The install is available here (if you want to check it)
http://testapplis.xwiki.com/
The Whats New page here :
http://testapplis.xwiki.com/xwiki/bin/view/Main/WhatsNew
Have you got any idea of the problem ?
Thanks,
Thomas
On Tue, 2009-02-24 at 12:00 +0100, users-request(a)xwiki.org wrote:
> I didn't check long enough, but I've seen that the guest right is set
> right from the first version. I don't know how does your site works,
> but could it be caused by the fact that a new pattern has the "owner"
> (wrongly) set to XWikiGuest, and you have a script that grants view
> and edit rights to the owner right after the document was created?
I was using the script below. the idea is:
- object should have "owner" and "contributors"
- "owner" and "contributors" have edit rights
- initially, "owner" is set to the document creator
There where a few problems with this. $ownr = $doc.getCreator() would
fail, so I reverted to $ownr = $context.user. also, save() failed, so I
rely on the user saving the document.
---------- code -----------------------
#if ((!$ownr || $ownr == "") && !$doc.getURL.endWith("ClassSheet"))
#set ($ownr = $doc.getCreator())
#if (!$ownr || $ownr == "")
#set ($ownr = $context.user)
#end
$doc.set("Owner",$ownr,$obj)
#end
#if (!$obj.Contributors)
#set ($contributors = "")
#else
#set ($contributors = $obj.Contributors+",")
#end
##if ($context.user == $ownr)
#set($editors = $contributors+$ownr)
#macro(allowEdit $users)
#if($users && $xwiki.checkAccess($doc.getFullName(),"edit"))
#set ($rights = $doc.getObject("XWiki.XWikiRights", true))
#set ($result = $rights.set("levels", "edit"))
#set ($result = $rights.set("users", $users))
#set ($result = $rights.set("allow", 1))
## $doc.save()
#end
#end
#end
---------- /code -----------------------
I think the problem was that either the classsheet had XWikiGuest set as
owner, and that was copied, or that the property was set when an
unauthorised viewer visited the document. I now added:
#if ((!$ownr || $ownr == "" || $ownr == "XWiki.XWikiGuest") && !
$doc.getURL.endWith("ClassSheet"))
but I still think something here is a strange.
> One more thing, is there a reason why Patterns.PatternClassSheet uses
> #includeInContext("scripts.DesObjClassSheet") instead of
> #includeMacros("scripts.DesObjClassSheet")?
I'm not sure, I think I wanted to pass on some global variables, and so
I thought I needed to include the whole page in context rather than the
macros. I've changed this now, we'll see what happens.
thanks!!
Hello,
I have been searching for a compatibility matrix of Xwiki, and I hadn't found if it is compatible with theses infrastructure:
DB: Oracle 10g
AppServer: Oracle Weblogic 9.2
Does anybody know if they are compatible?
Thanks a lot,
Francisco
**********************************************************************************************
IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y está dirigido únicamente
para el destinatario/s.
Si Ud recibe este correo por error, por favor póngase en contacto con su administrador de correo o con el
emisor immediatamente y no difunda su contenido a nadie ni haga copias.
*** Este correo ha sido escaneado de virus y contenido malicioso ***
**********************************************************************************************
> I don't think this is correct since you're not saving the
> modifications... They'll be in the cache when but they go out of the
> cache you'll have lost your changes.
>
> See http://code.xwiki.org/xwiki/bin/view/Snippets/SettingRightsSnippet
>
> -Vincent
Thanks Vincent. I thought I need to save, but then when I do, I get -
Exception while saving document Patterns.ObjectsToTalkWith
Wrapped Exception: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): xpn.xwiki.objects.String Property#<?xml version="1.0" encoding="UTF-8"?>
<dead-field></dead-field&
See:
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/scripts/fixrights
Hello everybody, maybe this is a stupid question but...
in the release notes of new version 1.8 RC1 i can see "Make it easier to
disable footer information (comments, history, etc)"
Now the question is: How? Maybe it is easier, but it still remains too
difficult for me :confused:
Thank you in advance
--
View this message in context: http://n2.nabble.com/disable-footer-information-tp2377081p2377081.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
>>> This has happened a few times on
> >>> http://patternlanguagenetwork.myxwiki.org/, and I can't explain it.
> >>> I set the access rights to allow view by all, but edit is restricted.
> I'm
> >>> seeing documents rolled back to older versions by XWikiGuest. Example:
> >>>
> >>
> http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Patterns/tabletopc…
> >>
> >> On this document the guest has been granted edit rights. Look at the
> >> rights editing for it, and select Users, and you will see that
> >> Unregistered Users has set view, comment and edit.
>
> I still see edit selected... And as a guest I can indeed edit the
> document. Just to make sure we're on the same page, I'm looking at
>
> http://patternlanguagenetwork.myxwiki.org/xwiki/bin/edit/Patterns/tabletopc…
>
This is really puzzling. I don't understand how the guest user has obtained
edit rights on some objects and not on others. Just to be on the safe side,
I ran the script below:
#set ($hql = ", BaseObject as obj where obj.name=doc.fullName and
obj.className='Patterns.PatternClass' and obj.name
<>'Patterns.PatternClassTemplate'")
#set ($items= $xwiki.searchDocuments($hql))
#foreach ($item in $items)
* $item
#set ($itemDoc = $xwiki.getDocument($item))
#set ($rights = $itemDoc.getObject("XWiki.XWikiRights", true))
#set ($result = $rights.set("levels", "edit"))
#set ($result = $rights.set("users", "XWiki.XWikiGuest"))
#set ($result = $rights.set("allow", 0))
#end
___________________________
Yishay Mor, Researcher, London Knowledge Lab
http://www.lkl.ac.uk/people/mor.htmlhttp://www.google.com/calendar/embed?src=yishaym%40gmail.com
+44-20-78378888 x5737