Re: [xwiki-users] $util.clearName filters spaces

2012-07-11 Thread Moritz Hesse (EA GmbH)
Well this leads to a question on my side: isn't there still a problem with 
certain characters in page names that cause the watchlist feature to get buggy? 
I remember that (iirc) apostrophs in page names causes problems when trying to 
show all watched pages on the profile - the list simply stays empty. Is this 
bug solved yet?

Am 11.07.2012 um 20:21 schrieb Vincent Massol :

> Hi Joris,
> 
> On Jul 11, 2012, at 12:16 PM, Joris Dirks wrote:
> 
>> Hi,
>> 
>> The function $util.clearName "Cleans up the passed text by removing
>> all accents and special characters to make it a valid page name." It
>> removes spaces from names, as demonstrated in the FAQ tutorial [1].
>> Removing spaces is a bit too much for my taste; I've resorted to using
>> $util.clearAccents to filter page names (also replacing periods with
>> commas!). I hope the users of my wiki won't find illicit uses/breaking
>> page names. Are there better alternatives?
>> 
>> I agree using spaces can make it difficult to access URLs, but the
>> page names become far clearer.
> 
> We had this because in the past we were not supporting special characters in 
> page names. This is no longer the case and we're moving away from any 
> restriction for page names.
> 
> If you're on a recent version (say 3.5 or later for example) you should have 
> no problem with special chars in page names.
> 
> Try it and let us know how it goes!
> 
> Thanks
> -Vincent
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Macro not not working after upgrade

2012-06-07 Thread Moritz Hesse (EA GmbH)
Hi Thomas,

thanks for your respond.

>> we were upgrading from XWiki 3.5 to Version 4. After upgrading
successfully
>> a self coded macro does not work anymore whereas all relevant files and
>> contents are at its right place but it simply does not output anything (I
>> don't know if the macro code runs through but does not output anything or
if
>> macro is not even executed).
>
> Hard to tell you exactly what is the issue without more informations.
> First thing what kind of macro are you referring to (Wiki macro, java
> macro, velocity macro, etc.) ?

This is a regular velocity macro to display subpages as if you click on the
information tab below the wiki page:

{{velocity}}
#if($doc.name=="WebHome")
  #set($tree = $xwiki.doctree.getSpaceDocumentTree($doc.web))
#else
  #set($tree = $xwiki.doctree.getDocumentTree($doc))
#end
#set($depths=["", "*", "**", "***", "", "*", "**", "***",
""])

#foreach($leaf in $tree)
  #if($leaf.depth <= 8 && ($leaf.depth != 0 || $doc.name=="WebHome"))
$depths.get($leaf.depth)
[[$xwiki.getDocument($leaf.fullName).getDisplayTitle()>>$leaf.fullName]]
  #end
#end
{{/velocity}}

Worked beatifully in 3.5, but does not work anymore with 4.0.

>> Furthermore, the title of our appw/minutes look extremely disturbing and
-
>> to be honest - ugly:
>> "platform.appwithinminutes.appHomePageDescriptionHeading" instead of
>> "Projects". What went wrong?
>
> This looks like missing translations. Did you overwritten
> XWiki.XWikiPreferences page ?

What you mean by overwritten? We have taken all 4.0 files to replace 3.5
files. But we have not manually changed them.

Thanks and bests,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Macro not not working after upgrade

2012-06-06 Thread Moritz Hesse (EA GmbH)
Hello,

 

we were upgrading from XWiki 3.5 to Version 4. After upgrading successfully
a self coded macro does not work anymore whereas all relevant files and
contents are at its right place but it simply does not output anything (I
don't know if the macro code runs through but does not output anything or if
macro is not even executed).

 

Furthermore, the title of our appw/minutes look extremely disturbing and -
to be honest - ugly:
"platform.appwithinminutes.appHomePageDescriptionHeading" instead of
"Projects". What went wrong?

 

Thx and bests,

Moritz

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Filter a livetable

2012-06-06 Thread Moritz Hesse (EA GmbH)
Hello,

> Thank you, it's only the character "&" that was missing ^^ Sometimes, it
> seems too easy when you have the answer :D
>
> And if I want to have all the line where the name is "Stephanie" or
> "Marie". I don't know if I can filter my livetable like that, but if
> someone has a solution, I'm in !

and in addition: How can I filter all results for the current logged in
user?

Thanks,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Watchlist feature not working

2012-05-30 Thread Moritz Hesse (EA GmbH)
Hi,

to sum it up:
* The problem was due to commata in page titles (c.f. 
http://jira.xwiki.org/browse/XE-1149).
* I had this feature 
(http://extensions.xwiki.org/xwiki/bin/view/Extension/Watchlist+Application#HAutoWatch)
 activated, which lead to the problem (but does not directly cause it).
* I could solve it by the workaround of going to my profile page, accessing the 
objects and remove all content from the field "Document list" in my 
XWiki.WatchListClass.
* Problem will reoccur when adding commata-titled-pages to my watchlist.

Bests,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Watchlist feature not working

2012-05-24 Thread Moritz Hesse (EA GmbH)
Hi,

> Maybe it`s the comma this time?   
> 
> If there is only one Document in your watchlist which has a comma in title,
> then the whole watchlist doesn´t show up!

no, that's not it: I went through all documents(!) and assured that I don't 
have any docs on my watchlist, then added single pages or single spaces, but 
nothing shows up.

I created a test account on which everything works normally.

Bad, I really need this feature :( Any1 any other idea?

Thanks anyway! Bests,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Check for edit mode to exclude velocity macro?

2012-05-24 Thread Moritz Hesse (EA GmbH)
Hi mohit,

> i dont want to show a specific velocity macro when in edit mode. How
should
> i check for edit mode on page?

try the following sniplet.

#if($context.action == 'edit')
  {{velocity_macro/}} ## do something only when in edit mode  
#else
  ## do something only when not in edit mode
#end

More information on
http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module#HActionshe
ets

Bests,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Watchlist feature not working

2012-05-23 Thread Moritz Hesse (EA GmbH)
Hi,

> Could it be the auto-watch feature?
>
http://extensions.xwiki.org/xwiki/bin/view/Extension/Watchlist+Application#H
AutoWatch

yes, that actually seems to be the problem: Only documents I created or
edited are marked with the yellow star (which was not quite easy to evaluate
as I am the most active user in this xwiki... :-)

But there is one problem remaining: My watchlist
/xwiki/bin/view/XWiki/User?category=watchlist is empty. Nothing listed. Is
this because there are too many documents in it?

Thanks, best regards,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Watchlist feature not working

2012-05-23 Thread Moritz Hesse (EA GmbH)
Hi,

> maybe its because of commaas in titles of Documents?
> I created this Jira-Issue some time ago:
> http://jira.xwiki.org/browse/XE-1149

no, there are no commas in the doctitles. This problem (watch activated)
occurs on -every- page.

Bests,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Watchlist feature not working

2012-05-23 Thread Moritz Hesse (EA GmbH)
Hi,

 

there is something wrong in the state of Denmark...: On each page I visit in
our XWiki the watch feature is already activated (yellow star). And if I
manually deactivate it and reactivate then it does not appear in my
watchlist. So I am not at all able to add pages or spaces into my watchlist.
Is this a common bug, or a misconfiguration? I would really appreciate your
help as I urgently need this feature.

 

Thanks and bests,

Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Fetch application fields from other applications

2012-05-21 Thread Moritz Hesse (EA GmbH)
Hi,

 

I have created two applications, let's say one for managing clients and one
for managing projects. How can I fetch the clients name and use it in my
list of projects?

 

To speak in database terms I want my project's table to have a foreign key
which refers to the client primary key so that I can access all client's
attributes.

 

Would be thankful for inspiration or helpful links to existing(?) tutorials.

 

Thanks and bests,

Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Multidimensional arrays

2012-05-15 Thread Moritz Hesse (EA GmbH)
Amazingly easy. Thanks a lot!

> $maintopic is a List here and not a Map so $maintopic.subtopic1 does
> not mean anything.
> 
> try with
> 
> #set( $subtopic1 = ["one", "two", "three"] )
> #set( $subtopic2 = ["one", "two", "three"] )
> #set( $maintopic = {"subtopic1" : $subtopic1, "subtopic2" : $subtopic2} )

Bests,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Multidimensional arrays

2012-05-15 Thread Moritz Hesse (EA GmbH)
What is an appropriate way to structure multidimensional arrays in velocity?

Let's say I want to have a main topic with two subtopics with three elements
each:

1 maintopic
  1.1 subtopic1
  1.1.1 one
  1.1.2 two
  1.1.3 three
  1.2 subtopic2
  1.2.1 one
  1.2.2 two
  1.2.3 three

My approach would be:
{{velocity}}
#set( $maintopic = ["subtopic1", "subtopic2"] )
#set( $maintopic.subtopic1 = ["one", "two", "three"] )
#set( $maintopic.subtopic2 = ["one", "two", "three"] )
{{/velocity}}

But I cannot access the one-two-threes in each subtopic. What am I doing
wrong?

Thanks and best regards,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Antw: Re: symbol after external links

2012-05-11 Thread Moritz Hesse (EA GmbH)
> thanks a lot for your answer, but where do i have to put this code so
> that it affects all my wiki pages? Is there a central style sheet for
> all pages? I'm sorry, but i'm new to the xwiki system and not that
familiar
> with programming.

This tutorial will help you to get closer into this topic:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial#HMi
nimalStyleSheeteXtension

Bests,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Doctree disappeared?

2012-05-11 Thread Moritz Hesse (EA GmbH)
Please excuse, I recall my request. I changed the top margin of list
elements, that's why they disappeared.

> when I call my the page Main/AllDocs I used to have a tab to view my
> documents in a tree. All tabs disappeard (also the "deleted pages",
"deleted
> attachments" etc.). Is this a commonly known bug? How can I redisplay this
> (as the tree is a necessary tool to keep an overview of the wiki's
structure
> and contents)?

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] symbol after external links

2012-05-11 Thread Moritz Hesse (EA GmbH)
This is not XWiki specific, but a CSS feature. In your stated example, the
CSS code is:


.wikiexternallink {
  background: url("[...]/externallinkicon.gif") no-repeat scroll right
center transparent;
  padding-right: 12px;
}


C.f. http://en.wikipedia.org/wiki/Cascading_Style_Sheets for more
information about CSS.

> i want to mark external links in my wiki like it's done here:
> http://www.xwiki.org/xwiki/bin/view/Main/ExternalLinks with a symbol after
the link.
> How can i do that?

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Doctree disappeared?

2012-05-11 Thread Moritz Hesse (EA GmbH)
Hi,

when I call my the page Main/AllDocs I used to have a tab to view my
documents in a tree. All tabs disappeard (also the "deleted pages", "deleted
attachments" etc.). Is this a commonly known bug? How can I redisplay this
(as the tree is a necessary tool to keep an overview of the wiki's structure
and contents)?

Thanks and bests,
Moritz


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Passing parameters in URI

2012-05-10 Thread Moritz Hesse (EA GmbH)
> Did you tried $request.getParameter("myparaleter") or $request.myparameter
?

Not until now. Works beautifully. Thanks a lot!

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Passing parameters in URI

2012-05-10 Thread Moritz Hesse (EA GmbH)
Hi,

> You can access the
>
http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi
ki/web/XWikiServletRequest.html
> object using $request in Velocity (or "request" mapping in general in
> all other languages).

I don't get any wanted results, everything just looks like this:
com.xpn.xwiki.web.XWikiServletRequest@76536fbc, that
java.util.Collections$2@2953fef or this one
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter$Save
dRequestWrapper@1498653c.

Is there any helpful method (like var_dump() in PHP) that enables me to
debug all existing values of an object?

Bests,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Filter items in live table

2012-05-10 Thread Moritz Hesse (EA GmbH)
Thanks Brett and Marius, I really appreciate your help. For the first it was
enough to bookmark the filter settings. But in the future I wont be able to
bypass the problem without creating (and coding) my own list. So this was
very helpful to get an approach to this issue.

Best regards,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Passing parameters in URI

2012-05-10 Thread Moritz Hesse (EA GmbH)
Hello,

how is it possible (I presume it is) to access parameters in a URI? The
xwiki API describes methods to encode and decode URIs (namely encodeURI and
decodeURI). I suppose I can access it via the Request object (XWikiRequest;
http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi
ki/web/XWikiRequest.html), but got no clue how.

E.g. I would like to pass a boolean param by calling the URI
http:///xwiki/bin/view/Main/WebHome?bool=true and access it in
velocity code.

Anyone has an idea how to proceed or a link to an example?

Thx and bests,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Filter items in live table

2012-05-07 Thread Moritz Hesse (EA GmbH)
Hi,

 

I have created an app w/ minutes to manage some issue tickets. I am using a
field to track the status (open, pending, closed). How can I blind out items
which are not closed?

 

Kind regards,

Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Automatic subpage creation for application items

2012-04-23 Thread Moritz Hesse (EA GmbH)
Hi,

as I am new to XWiki I am trying to gain some inspiration and ideas how to
successfully use it for our business purposes.

I have created an app (application within a minute) to organize and manage
our projects. We have designed a structure of fix sub-wikipages, which we
want to attach to every application item.

Example: let's say we have a project #123 and some metainformation like
project leader etc. which is all organized in the application fields. And
now we want some subpages like 1. project-todos, project-documentation,
project-log etc.

What possible ways do exist to automatize the creation of the subpages, so
that each time I create a project item in that app, all the predefined
subpages will be created by the system.

I don't expect you to write me the complete solution. But I would really
appreciate if you could just drop some buzzwords or some links, that point
me the proper direction.

Thanks in advance,
best regards,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Renaming items in applications within a minute

2012-04-18 Thread Moritz Hesse (EA GmbH)
> you can use the "rename" feature to change the page name.
> 
> Right now, to change the page title you have to switch to "advanced" mode
> in your user profile and edit the page in wiki mode.

Funny thing: the title field is empty in wiki editing mode. This is what
wonders me a little. And furthermore: Can I separately change name and title
(what would be extremely helpful in my case...).

Bests,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Renaming items in applications within a minute

2012-04-17 Thread Moritz Hesse (EA GmbH)
> * page name is the page name used in the URL to the page
> * title is how the page is displayed in the UI.

That makes sense. But anyway: How do I change them?

Bests,
Moritz

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Renaming items in applications within a minute

2012-04-17 Thread Moritz Hesse (EA GmbH)
How can I rename items in my applications? I can only modify all the values
of my specified fields but not the name or title of the items.

Thx + kind regards,
Moritz

By the way: What is the difference between the page title and the page name?
They appear to be the same in my applications.


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Migration fails

2012-04-17 Thread Moritz Hesse (EA GmbH)
Hi,

I am running XWiki 3.5 (jetty container) on an Ubuntu system (let's call it
system U) and now installed the debian package on a linuxmint (system L)
with a postgre db. Now I wanted to migrate my XWiki from 

I have exported a XAR-file from U and wanted to import it into L. But
instead of properly importing it returns an exception:


--::START:EXCEPTION::---

Detailed information:
Error number 0 in 11: Uncaught exception
Wrapped Exception: Java heap space
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
Wrapped Exception: Java heap space
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:254)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.j
ava:144)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFi
lter(SavedRequestRestorerFilter.java:217)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFi
lter(SetCharacterEncodingFilter.java:109)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:300)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:588)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.OutOfMemoryError: Java heap space
at
java.lang.StringCoding$StringDecoder.decode(StringCoding.java:133)
at java.lang.StringCoding.decode(StringCoding.java:173)
at java.lang.String.(String.java:443)
at java.lang.String.(String.java:515)
at
com.xpn.xwiki.doc.XWikiAttachment.toStringXML(XWikiAttachment.java:351)
at
com.xpn.xwiki.doc.XWikiAttachmentArchive.updateArchive(XWikiAttachmentArchiv
e.java:185)
at
com.xpn.xwiki.doc.XWikiAttachment.updateContentArchive(XWikiAttachment.java:
724)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveAttachment(XWikiHibernateStore.j
ava:1561)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveAttachmentList(XWikiHibernateSto
re.java:1529)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.jav
a:473)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:174)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheSto