Hi guys,
I'm trying to write some groovy that uses an image thats in the current skin in a link. In this case its a delete page image, that links to a delete page URL:
[[image:${xwiki.getSkinFile('icons/silk/page_delete.gif')}>>${doc.getExternalURL('delete')}]]
The issue is that the getSkinFile call returns a relative URL, which ends up getting rendered in the final HTML as
<img alt="/xwiki/resources/icons/silk/page_delete.gif" class="wikimodel-freestanding" src="/xwiki/bin/download/Storyboard/fcg9aYKeaI6AVIjxpocO/%2Fxwiki%2Fresources%2Ficons%2Fsilk%2Fpage_delete.gif"></img>
Do you have any suggestions for how I can get access to one of the icons for use as an image for a URL?
Thanks,
Nigel
Hi guys,
In order to finish convert extensions.xwiki.org into a valid XWiki
Repository server (supported by Extension Manager) I need to put a
upgrade xwiki.org and add a jar file (mostly about REST interface).
Thing is I need to put the latest 3.3 snapshot version of this REST
module so I can see two solutions:
* upgrade to 3.2 and patch it with several new API needed by the module
* upgrade to latest 3.3 SNAPSHOT
pros 3.3
* more simple for me
* we can probably quickly come back to the current 3.1.1 if a blocking
issue is found until it's fixed
* I'm going to quickly update xwiki.org any time we find and fix a blocker issue
cons 3.3
* snapshot version on production
There is some things I'm not 100% sure:
* is there any modification of to the DB introduced in 3.3 not
compatible with 3.1.1 and not introduced in 3.2 ? I know id change has
not been committed yet
+1 for 3.3 SNAPSHOT (ok the pros/cons is a bit oriented ;)) if there
is not incompatible DB change
--
Thomas Mortagne
Hi there
I've got two different groovy classes in two different pages (lets say Widget and WidgetFactory), and in a third page I'm trying to call an instance of the WidgetFactory, getting it to create a Widget.
I've included the groovy code for both classes in the third page using the "wiki.parseGroovyFromPage(…" call, which works as I can successfully call methods on the widget factory.
However, calling the createWidget method on the factory produces an error, in that the WidgetFactory code doesn't know anything about Widgets (i.e. it doesn't know about the Widget class). Am I doing something wrong?
I would like to be able to modularise the code in some way. It doesn't matter if there are many different classes declared in the one page, or just one; as long as I can instantiate them, and they know about each other. This would be great as it will mean I can reuse these classes around a few different pages.
I've tried including the code using the include macro (outside the groovy block) , and using the xwiki.includeForm call (inside the groovy block), with no success.
Thanks,
Nigel
Hi devs,
Is there a documentation and a tool to clean XWiki XML files for commit.
I used to use the SVN Application to clean the XML and commit in the
sandbox for the contributed apps.
But the SVN app does not work with git (even with the SVN bridge as it
seems svnkit is not compatible), so I'm left to export to commit.
How do developers usually do that ?
Ludovic
--
Ludovic Dubost
Founder and CEO
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
We need a way for subservient stores such as FS attachments to get transactions from the main store so that it can know to rollback if there is an error in the main store.
In order to Cloud/DataNucleus store plug in seamlessly and function with FS attachments, FS attachments needs to be able to get transactions from the main store without knowing or caring what that main store is.
I propose this:
Add a new storage submodule: xwiki-platform-store-transactionprovider which provides this interface which extends javax.inject.Provider:
@ComponentRole
public interface XWikiTransactionProvider
extends Provider<StartableTransactionRunnable<? extends XWikiTransaction>>
{
// No additional functions, just the get() from Provider.
}
The default implementation for now will be a wrapper which picks out the real TransactionProvider based on what the main store is, as defined in xwiki.cfg.
This will allow code to get a transaction from the main store then get TransactionRunnables from the main store and use them with this transaction and be assured
that you won't be using a Hibernate TransactionRunnable with a Cassandra Transaction.
WDYT?
Caleb
Hi,
I had no luck on the users group, so I thought I would try my luck on the
devs group.
I would like to add the javascript below to my xwiki page.
Is this something that can easily be done?
If so please can you show me an example.
Thanks
Riaz
google.load('visualization', '1', {'packages':['table']});
function changeData(scorer) {
var whereClause = "";
if(scorer) {
whereClause = " WHERE 'Scoring Team' = '" + scorer + "'";
}
var queryText = encodeURIComponent("SELECT 'Scoring Team', 'Receiving
Team', 'Minute of goal' FROM 197026" + whereClause);
var query = new
google.visualization.Query('http://www.google.com/fusiontables/gvizdata?tq='
+ queryText);
query.send(getData);
}
function getData(response) {
var table = new
google.visualization.Table(document.getElementById('visualization'));
table.draw(response.getDataTable(), {showRowNumber: true});
See this for more info:
http://gmaps-samples.googlecode.com/svn/trunk/fusiontables/gviz_datatable.ht
ml
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of
Riaz
Sent: 28 October 2011 10:35
To: users(a)xwiki.org
Subject: [xwiki-users] JavaScript example
Hi,
I'm new to XWiki, and I would like some help on how to add JavaScript to my
pages.
I have looked at the example SkinExtensionsTutorial and can now do basic
JavaScript for example:
alert ("HelloWorld"); via the JavaScriptExtension.
I would like to add Google fusion tables to my Xwiki page an example of what
I am after is below with the JavaScript:
http://gmaps-samples.googlecode.com/svn/trunk/fusiontables/gviz_datatable.ht
ml
The JavaScript is shown below:
google.load('visualization', '1', {'packages':['table']});
function changeData(scorer) {
var whereClause = "";
if(scorer) {
whereClause = " WHERE 'Scoring Team' = '" + scorer + "'";
}
var queryText = encodeURIComponent("SELECT 'Scoring Team', 'Receiving
Team', 'Minute of goal' FROM 197026" + whereClause);
var query = new
google.visualization.Query('http://www.google.com/fusiontables/gvizdata?tq='
+ queryText);
query.send(getData);
}
function getData(response) {
var table = new
google.visualization.Table(document.getElementById('visualization'));
table.draw(response.getDataTable(), {showRowNumber: true});
How can I add this information to my Xwiki page.
Your help is much appreciated.
Best Regards,
Riaz
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Hi devs,
I'd like to create the following modules in xwiki-platform to add a UI for the linkchecker feature:
xwiki-platform-linkchecker/
|_ xwiki-platform-linkchecker-ui/
|_ xwiki-platform-linkchecker-refresher/
where:
* xwiki-platform-linkchecker-ui/ will add a Tab in Main.AllDocs to list broken external links. It'll contain the livetable that you can see on http://www.xwiki.org/xwiki/bin/view/Admin/ExternalLinkStatus
* xwiki-platform-linkchecker-refresher/ will contain an EventListener listening to DocumentUpdatingEvent and remove all link states from the link state cache for the modified pages received as Events. This module will depend on the LinkChecker Transformation module located in xwiki-rendering.
Here's my +1
Thanks
-Vincent
Hello Devs,
As a XWiki admin, I installed the AdminTools extension
(http://extensions.xwiki.org/xwiki/bin/view/Extension/AdminTools). The
configuration check pages are very useful to verify a fresh install,
the export pages are priceless (especially the Admin.Export one)...
Of course, these pages are not very polished but they do the job.
Fortunately, this extension is maintained as a contribution in Github.
In the extension wiki, it would be fine to clearly mention that
"Import Export Application", "Monitoring Application", "XAR Diff
Application" are now included in the AdminTools (as it is for the
"Check Config And Indexes Application"). Maybe I miss one or two.
If you agree, I can do it.
By the way, I submitted a few days ago a pull request to add a new
ShrinkTrashBin page in AdminTools. Don't forget it.
Maxime