Hi Moritz,
On Jun 25, 2012, at 3:31 PM, Moritz Hesse (EnergieArchitektur) wrote:
> Hello,
>
> we have tried out XEclipse but as it seems to me there is neither auto
> completion nor syntax highlighting for groovy (while there is for velocity).
> Is there any way that we can activate these features for groovy as well?
No, it needs to be coded. See also http://jira.xwiki.org/jira/browse/XECLIPSE-43
> Otherwise: Is there a plugin for Netbeans as well, instead of Eclipse?
No. However XEclipse comes in 2 flavors: standalone app and plugin. Even if you use NB you can still use the standalone app but it won't be integrated in your coding environment…
To be honest, we have not had any active committer on XEclipse for a few years now and the project is waiting for someone to take the leadership and start coding and improving it.
Thanks
-Vincent
On Mon, Jun 25, 2012 at 4:25 PM, Moritz Hesse (EnergieArchitektur)
<moritz.hesse(a)ea-gmbh.de> wrote:
>>>>> Furthermore, the title of our appw/minutes look extremely disturbing
>>>>> and - to be honest - ugly:
>>>>> "platform.appwithinminutes.appHomePageDescriptionHeading" instead of
>>>>> "Projects". What went wrong?
I don't see what
"platform.appwithinminutes.appHomePageDescriptionHeading" has to do
with the title of your application home page. This translation key was
used to display the heading preceding the application description and
has been removed in
https://github.com/xwiki/xwiki-platform/commit/5ea7f9835fa20ad253552d400320…
and the home page sheet has been updated accordingly. Are you sure you
have imported the new version of AppWithinMinutes.LiveTableViewSheet
page (from the 4.0 XAR)? You can check by editing this page and
looking for this translation key. If you can find the translation key
in its content then it means you don't have the right version.
Hope this helps,
Marius
>>>>
>>>> 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.
>>
>> The translation pages are registred in XWiki.XWikiPreferences page which
>> is one of the page you generally should never ovewrite when upgrading
>> exactly for this kind of issues. See
>>
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade#HUpgradingwikido
> cuments
>> for more details.
>
> How can I access this page to see if I can fix it there?
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
Hello community,
I'm stuck on a problem to query average ratings data from pages - I
installed the Ratings plugin, of course.
The following query works as expected, and shows the pages having average
votes, ordered by ratings then date :
#set($xwql = "select doc.fullName, ratings.averagevote from Document doc,
doc.object(XWiki.AverageRatingsClass) as ratings order by
ratings.averagevote desc, doc.date desc")
Of course, it will return only those pages for wich
XWiki.AverageRatingsClass exists.
Of course, what I would like, is this query to return ALL documents ordered
by ratings, considering no rating equals to value 0.
There are two problems that make this impossible to achieve with XWQL (or
I'd better say that I didn't find how) :
- first, to get all documents I would have to perform a LEFT JOIN. I tried
many syntaxes but could not achieve that. Even in pure JPQL I would not be
able to perform the LEFT JOIN and specify an ON clause anyway ...
- second, I planned to use COALESCE(ratings.averagevote, 0), to consider
that no ratings equal to average 0, but this keyword is not recognized by
XWQL
I realize that this is more a JPQL/Database issue than XWiki issue, but
ordering pages by average ratings is a very common and evident use-case as
long as you activate ratings, so I believe there must be a solution to find
... And sorting things in memory is really not a very attractive solution :(
(adding a XWiki.AverageRatingsClass object to all pages would also do the
trick but it seems really expensive ...)
Thanks,
Jeremie
--
View this message in context: http://xwiki.475771.n2.nabble.com/XWQL-and-ratings-tp7505249.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
On Mon, Jun 25, 2012 at 3:28 PM, Moritz Hesse (EnergieArchitektur)
<moritz.hesse(a)ea-gmbh.de> wrote:
>> > {{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}}
>>
>> Ok so that's actually a velocity script and not a macro or any kind
>> (the {{velocity}} itself is a macro that you use to write a script) :)
>>
>> Hard to tell you what's exactly wrong, you will have to debug a bit.
>> For example are you sure $xwiki.doctree plugin is still here ? Maybe
>> you forgot to put it in your new instance.
>
> I know that this as is just is a velocity sniplet, but I implemented it as a
> macro: I added a MacroClass to a specific page and I configed it that way
> that I could call it by {{childrenpagetree/}}. But as mentioned, this
> doesn't work anymore. What can I have destroyed while upgrading from 3.5 to
> 4.0?
Did you check that $xwiki.doctree return something as I suggested ?
>
> By the way: Macros in general do work. We have recently developed another
> macro (in 4.0) which also works.
>
> Thanks and best regards,
> Moritz
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
Hello,
we have tried out XEclipse but as it seems to me there is neither auto
completion nor syntax highlighting for groovy (while there is for velocity).
Is there any way that we can activate these features for groovy as well?
Otherwise: Is there a plugin for Netbeans as well, instead of Eclipse?
Thanks and bests,
Moritz
On Thu, Jun 7, 2012 at 10:38 AM, Moritz Hesse (EA GmbH)
<moritz.hesse(a)ea-gmbh.de> wrote:
> 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}}
Ok so that's actually a velocity script and not a macro or any kind
(the {{velocity}} itself is a macro that you use to write a script) :)
Hard to tell you what's exactly wrong, you will have to debug a bit.
For example are you sure $xwiki.doctree plugin is still here ? Maybe
you forgot to put it in your new instance.
>
> 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.
The translation pages are registred in XWiki.XWikiPreferences page
which is one of the page you generally should never ovewrite when
upgrading exactly for this kind of issues. See
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade#HUpgradingwikid…
for more details.
>
> Thanks and bests,
> Moritz
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
How do you test a colortheme in colibri skin (the ?... parameter in the url)
How can you change the theme programatically in velocity?
example if browser language = nl set theme to nl
Gerritjan