Re: [xwiki-users] Building XWiki from sources (Workin with eclipse)

2014-06-07 Thread Clemens Robbenhaar
On 06/05/2014 03:31 PM, wafid wrote:
> hello.
> 
> to build xwiki from sources ( Working with eclipse ), I followed the steps
> mentioned in the link:
> 
> "http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse";.
> 
> but in step debugging an error appears:
> 
> "2014-06-05 15:10:27,471 [XWiki initialization] ERROR
> c.x.x.i.XWikiInitializerJob- Exception thrown during job execution 
> com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while
> reading document [xwiki:XWiki.GlobalRedirect]
>   at
> com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:957)
> ~[xwiki-platform-oldcore-6.1-SNAPSHOT.jar:na]
>   at
> com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:291)
> ~[xwiki-platform-oldcore-6.1-SNAPSHOT.jar:na]
> ..
> *Caused by: org.hibernate.HibernateException: Can't find
> [/WEB-INF/hibernate.cfg.xml] for hibernate configuration*
>   at
> com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFacto..
> "
> 

Any chance you did not copy one of the 
"src/main/webapp/WEB-INF/hibernate..cfg.xml.default"
to hibernate.cfg.xml ?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Trouble with Localization

2014-06-07 Thread Clemens Robbenhaar
On 06/06/2014 08:04 AM, Hamster wrote:
> We found out that we have several pages created in a different language than
> the default language in our Wiki. Problem is that those pages are not found
> directly when we search for them.
> 
> Our default language is "nl", but we also got pages in "en" and pages which
> have no launguage at all.
> 
> I want to fix those pages, so I turned Localization back on, added "nl" and
> "en" as available languages. Now the "EN" button appears when I am looking
> at the page(s) which are created in English. But I don't see how I can
> *change* that page into "nl".
> 
> Any help is appreciated!
> 
> On a side note, how can I find ALL pages which are not written in Dutch?
> ("nl")

{{groovy}}
def query = services.query.xwql("").addFilter("language")
query.execute().each( {
 if (it[1]!='nl')
   println it[0]
})
{{/groovy}}

see
http://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Module

However this also gets you pages that as "user interface" pages for the search,
and proper translation variants, i.e. not the "main document", but a translated 
one.


For changing the language  I think what you could can do is try to change the 
document
programatically by something like:

  if (doc.getDocument().getDefaultLanguage()=='en') {
doc.getDocument().setDefaultLanguage('nl')
doc.save('changed default locale to nl')
  }

However this does maybe not work as expected. If you have a page, and the 
default language
is English, and and that page has a translation in Dutch, the above code will 
set
the locale of the "original" page to Dutch. So you you end up with two pages 
with "nl" as locale,
the "original" and the "translation" ... I have not checked what side effects 
this has,
but they might be "interesting".

 So better only do the above only if the document has no language translations 
already,
and its content is really Dutch, and it is just labled as "en".

Alternatively you could export the page as *.xar, unzip the result and edit 
 tag,
zip it up again; and then delete the existing page, and import back the xar.
That might be a bit cumbersome if there are a lot of pages like this,
but it feels a bit "safer" that a script that possibly loops over all your pages
and does something that might or might not be what you want.

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


Re: [xwiki-users] xwiki.home setup does not work for links in e-mails

2014-06-07 Thread Clemens Robbenhaar
On 06/06/2014 08:16 AM, Zimmermann, Mark wrote:
> Dear all,
> 
> we are using XWiki 6.0.1 and I have to set a different hostname because of a 
> proxy between Internet and our xwiki server.
> 
> I installed the server with a different name and it still appears unless I 
> set xwiki.home to the correct new name.
> 
> I also changed the hostname of the server and restarted it. In bash everthing 
> is fine.
> 
> The crazy thing is, in the form for sending a link there is the correct URL 
> visible, but not in the email.
> 

I think this is likely because the form is shown in the context of a web 
request,
and this it can reuse the host the browser uses to display the url
The mail on the other hand is send from a background process and does not have 
a request with an url associated
so it uses the default hostname configured for that wiki.

As the "proxy" situation is quite common, XWiki does not rely on the systems 
'hostname'
to figure out under which name it is called from the outside; instead
you are expected to put in the correct public hostname in the xwiki.home 
property.
 I just checked and setting that property works fine for me. How exactly does 
it not work for you?

(Just an idea: Maybe you need to change the Alias in the wiki descriptor
on the page /xwiki/bin/view/XWiki/XWikiServerXwiki  instead?)

Clemens

> Thank  you for answering!
> 
> Best regards,
> Mark Zimmermann
> ___
> TROX GmbH
> Heinrich-Trox-Platz, 47504 Neukirchen-Vluyn
> Amtsgericht Kleve, HRB 4997
> 
> Geschäftsführung:
> Lutz Reuter, Vorsitzender
> Torsten Jagdt
> Prof. Dr.-Ing. Dirk Müller
> 
> Aufsichtsrat:
> Heinz C. Trox, Vorsitzender
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 


-- 
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
robbenh...@espresto.com

HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Immediate Children not working

2014-04-13 Thread Clemens Robbenhaar
On 04/11/2014 03:48 PM, Belkhiria Hamza Yazid wrote:
> What about how to exclude webpreferences from results ?
> 

I thought this should happen" automatically, but then I realized the code 
snippet is quite a bit old ...
The simpler way, which also does not show hidden documents like the web 
preferences, unlike the user asks for them, is:

#set($results = $doc.getChildren(10, 0))
#foreach($docname in $results)
#set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
* [[$rdoc.getDisplayTitle()>>$rdoc.fullName]]
#end

About also having a second level I feel we are walking into "navigation tree" 
land,
and something like the js-tree might be better:

  http://extensions.xwiki.org/xwiki/bin/view/Extension/jsTree+Macro

or (shameless plug ;) maybe try the document tree panel

 http://extensions.xwiki.org/xwiki/bin/view/Extension/DocumentTreePanel

This one is more or less the same as the tree view in the document index,
just starting at the current page.


> 
> On 10 April 2014 07:43, Belkhiria Hamza Yazid wrote:
> 
>> Hey what about customizing it to get 1st and 2nd levels of children ?
>>
>>
>> On 28 May 2013 07:32, Belkhiria Hamza Yazid wrote:
>>
>>> Works Perfect,
>>>
>>> Thanks Marius,
>>>
>>>
>>> On 28 May 2013 07:25, Marius Dumitru Florea <
>>> mariusdumitru.flo...@xwiki.com> wrote:
>>>
 On Mon, May 27, 2013 at 10:44 PM, Belkhiria Hamza Yazid
  wrote:
> now it works thanks :)
>
> is it possible to customize the header of the panel to show instead of
> "Children"
> Something like " Children of (name of the page)"

 Replace

 #panelheader($msg.get("core.viewers.information.children"))

 with

 #panelheader("Children of $doc.name")

 That is Velocity code. You need to understand it if you want to do
 customizations. See
 http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting .

 Hope this helps,
 Marius

>
>
>
>
> On 27 May 2013 19:33, Marius Dumitru Florea
> wrote:
>
>> Yes. I went to Panels.WebHome, created a new panel Foo, replaced the
>> default content with the one copied from the extension page, saved,
>> went to the wiki administration, Page Elements, added Panels.Foo to
>> the list of right panels, saved, went to the home page and the
>> Children panel listed all children of the home page.
>>
>> On Mon, May 27, 2013 at 9:23 PM, Belkhiria Hamza Yazid
>>  wrote:
>>> maybe it is wiki syntax,
>>>
>>> are you on xwiki 2.1 syntax ?
>>>
>>>
>>> On 27 May 2013 19:21, Marius Dumitru Florea
>>> wrote:
>>>
 Works for me.

 On Sun, May 26, 2013 at 7:06 PM, Belkhiria Hamza Yazid
  wrote:
> Hi
>
> I just copied the code in here
>

>>
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Immediate+Children+Pages
>
> into a new navigation panel,
>
>
> it is not showing anything
> i have the same problem with the Backlinks panel
>
> any ideas ?
>
> --
> *BHY*
> ___
> 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

>>>
>>>
>>>
>>> --
>>> *BHY*
>>> ___
>>> 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
>>
>
>
>
> --
> *BHY*
> ___
> 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

>>>
>>>
>>>
>>> --
>>> *BHY*
>>>
>>
>>
>>
>> --
>> *BHY*
>>
> 
> 
> 


-- 
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
robbenh...@espresto.com

HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] special characters in group-name, bug?

2014-03-02 Thread Clemens Robbenhaar
On 03/02/2014 08:32 PM, Michiel Hobbelman wrote:
> When using group name "A & B"  it is impossible to set permissions in the
> WebPreferences.
> 
> Xwiki version 5.4.1.
> Is this a bug?
> 
> ( maybe related to http://jira.xwiki.org/browse/XWIKI-5448  ?)
> 
> Regards,
> Michiel

Yes, it is a bug, but an unrelated one.
The same problem exists in the wiki admin.
The name of the group is not properly encoded.
Can you please create a new issue in jira?

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


Re: [xwiki-users] How to add a Js library into a page from CDN?

2014-03-02 Thread Clemens Robbenhaar
On 02/26/2014 02:43 AM, Patrick Masson wrote:
> Hi Boudjelda (and Marius),
> 
> I was wondering if you ever found a solution for this? I would like to add 
> TogetherJS to XWiki (see: https://togetherjs.com/#tryitout-section) but am 
> not sure how to insert
> the JS source into the page head.
> 
> I went through the suggested steps:
> 
> 1st, created a new object for the page "myurl/Sandbox/WebHome/", "Edit" -> 
> "Objects":
> 
> Objects of type XWiki.JavaScriptExtension
> - JavaScriptExtension 0: TogetherJS
> 
> Code:
> document.observe('xwiki:dom:loaded', function() {
> https://togetherjs.com/togetherjs-min.js";>
> }
> 

I guess this way to inject the script tag does not work.
You might check your javascript error console - this should tell you it got an 
error when trying to understand the script-tag.

One working option which uses bare bone javascript is shown here:

 
http://stackoverflow.com/questions/8578617/inject-a-script-tag-with-remote-src-and-wait-for-it-to-execute

(put that code inside the document.observe listener function)

if it still does not work check the html source of the page; if the 
$xwiki.ssx.use and $xwiki.jsx.use
elements have been executed properly they should have created tags inside the 
 to include the
corresponding page.
 I remember once I had the case where the includes have been generated, but 
they have been empty.
Cause of that problem: I made a typo in the page name and included javascript 
from a page that did not exist ...


> Then in the page I added:
> 
> {{velocity}}
> $xwiki.jsx.use("XWiki.SkinExt")
> {{/velocity}}
> 
> {{velocity}}
> #set ($discard = $xwiki.ssx.use('Sandbox.WebHome'))
> #set ($discard = $xwiki.jsx.use('Sandbox.WebHome'))
> {{/velocity}}
> 
> {{html}}
> Start TogetherJS
> {{/html}}
> 
> Any ideas?
> 
> Thanks Patrick

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


Re: [xwiki-users] Menu Application access for Unregistered Users

2014-03-02 Thread Clemens Robbenhaar
On 02/28/2014 07:11 PM, DeHaynes wrote:
> I fixed it by modifying the code in Menu.MenuMacro.  I wrapped it in an
> if($isGuest) like this.
> 
> {{velocity}}
> #if ($isGuest)
> #else
> #set ($id = $xcontext.macro.params.id)
> #set ($type = $xcontext.macro.params.type)
> #set ($colorTheme = $xwiki.getUserPreference('colorTheme'))
> #if ("$!colorTheme" != '')
>   ## Make sure we use an absolute reference (see XWIKI-9672)
>   #set ($colorTheme = $services.model.resolveDocument($colorTheme,
> $doc.documentReference))
> #end
> #set ($discard = $xwiki.ssx.use("$xcontext.macro.doc.prefixedFullName",
> {'colorTheme': $colorTheme}))
> #set ($discard = $xwiki.jsx.use("$xcontext.macro.doc.prefixedFullName"))
> (% #if ("$!id" != '') id="$id"#end class="menu menu-$!type" %)(((
>   $xcontext.macro.content
> )))
> #end
> {{/velocity}}
> 
> Sorry, I don't know the scripting language well enough to do a ($isGuest) ==
> false.
> 

#if (!$isGuest)

should do the trick :)

A slightly better check might be to see if the current user (who ever this is) 
has view rights on the document to be included,
via $xwiki.hasAccessLevel('view', $xcontext.userReference, )
But this seems to be in a different place, (and I have to admit I do not know 
the menu extension good enough to know where it is).
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Theme on Subwiki Error page

2014-03-02 Thread Clemens Robbenhaar
On 02/27/2014 07:42 PM, DeHaynes wrote:
> I am working on setting up subwikis in a private Intranet wiki.  I have a
> customized theme with a custom logo.  When a member of the subwiki clicks
> around, they see the theme normally.  When a non-member ties to go to a page
> they get the normal "Error - You are not allowed to view this document or
> perform this action".  Which is good, except the theme on that page changes
> back to the original XWiki theme and logo.  The root wiki is using the same
> customized theme and it appears on the login page because I gave
> unregistered users access to view the theme.
> 
> I don't know who to give permission to in order for the theme to appear. 
> The user is no longer unregistered, because they are a member of the root
> wiki.  However they are not a member of any group in the subwiki.
> 
Unless I am very mistaken, a user who has no right on the subwiki is treated 
like the anonymous user.

To let these users see the logo of the subwiki you must make the page 
containing the logo visible to the public.
Depending on which page you added the logo, this will be either:
 - the color theme the wiki uses - go to /xwiki/bin/view/ColorThemes/ to find it
 - the current "Skin" page, most probably XWiki.DefaultSkin

As an additional safety measure XWiki allows to block anonymous users globally,
so if even after giving the anonymous user view rights on these pages
the logo still does not show up, go to the wiki admin, section "rights"
and make sure the "black checkmark" for "Prevent unregistered users from 
viewing pages,
regardless of the page or space rights" is unchecked

> 
> I using XWiki 5.4.1, with MySQL and Tomcat7.  I have a vanilla .deb install.  
> 
> 
> 
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Theme-on-Subwiki-Error-page-tp7589357.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 


-- 
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
robbenh...@espresto.com

HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] D3js not working on XWiki 5.4

2014-02-15 Thread Clemens Robbenhaar
On 02/15/2014 05:43 PM, Clemens Robbenhaar wrote:
> On 02/14/2014 04:44 PM, Hamster wrote:
>> I have a problem getting the  D3js example
>> <http://extensions.xwiki.org/xwiki/bin/view/Extension/D3+Example>   to work.
>>
>> I have a fresh XWiki 5.4 running. I have installed the D3js with the EM. I
>> then created a new Space called "D3". I created a page called "D3.Data" and
>> pasted the data from the example. I then edited the "D3.WebHome" and pasted
>> the code to display the graph.
>>
>> But when I click "Save & View", I only get a blank page. F5 (refresh) does
>> nothing. I then edit the page in the WYSIWYG editor...I can see the graph
>> being displayed! I can even use the arrow keys left and right to interact
>> with the graph. But when I hit "Save & View", the graph is NOT being
>> displayed, but part of the velocity code is. If I edit the page in XWiki
>> mode, I can see that some velocity code is now being 'escaped' by XWiki.
>>
>> What am I missing here
>>
> 
> First thing you are missing is that the extension on the page is just a demo 
> for the impatient to view something before even installing something. It 
> fetched the javascript
> stuff from the D3 website directly; no need to install the D3js extension to 
> run it ;)
> 
> Then, indeed the WYSIWYG editor does not handle the code snippet gracefully, 
> just opening the editor and saving without editing breaks the thing, there is 
> just too many
> inline 

Re: [xwiki-users] D3js not working on XWiki 5.4

2014-02-15 Thread Clemens Robbenhaar
On 02/14/2014 04:44 PM, Hamster wrote:
> I have a problem getting the  D3js example
>    to work.
> 
> I have a fresh XWiki 5.4 running. I have installed the D3js with the EM. I
> then created a new Space called "D3". I created a page called "D3.Data" and
> pasted the data from the example. I then edited the "D3.WebHome" and pasted
> the code to display the graph.
> 
> But when I click "Save & View", I only get a blank page. F5 (refresh) does
> nothing. I then edit the page in the WYSIWYG editor...I can see the graph
> being displayed! I can even use the arrow keys left and right to interact
> with the graph. But when I hit "Save & View", the graph is NOT being
> displayed, but part of the velocity code is. If I edit the page in XWiki
> mode, I can see that some velocity code is now being 'escaped' by XWiki.
> 
> What am I missing here
> 

First thing you are missing is that the extension on the page is just a demo 
for the impatient to view something before even installing something. It 
fetched the javascript
stuff from the D3 website directly; no need to install the D3js extension to 
run it ;)

Then, indeed the WYSIWYG editor does not handle the code snippet gracefully, 
just opening the editor and saving without editing breaks the thing, there is 
just too many
inline 

Re: [xwiki-users] Adding users from CSV file

2014-02-15 Thread Clemens Robbenhaar
Hi Michiel,

> Maybe you have the same problem, and want to add many user-accounts in
> bulk. Maybe this script (I wrote) can help you out.
> 
> The script can produce a XAR archive that can be uploaded using the
> import-function in the Admin panel.
> After doing so you still need to add these users to the group XWikiAllGroup
> (and additional groups if you like).
> 
> Regards,
> Michiel.

Thanks for your contribution! However I am afraid if you attached the script, 
the mailing list software has just eaten the attachment.

If you want you can upload the script at 
http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome

Strictly speaking it is not an extension, but never mind: all kind of XWiki 
related helpers are always welcome there. :)

Clemens




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


Re: [xwiki-users] Copy page with includes

2014-02-15 Thread Clemens Robbenhaar
On 01/31/2014 04:57 PM, fredb wrote:
> Hi,
> 
> I've one page (let's call it "Template page") made up of 2 included files. 
> 
> Code of "Template page" is something like this :
> {include document="PageChap1"/}
> {include document="PageChap2"/}
> 
> I'd like to copy "Template page" to a new page (in the same space) and
> renaming includes at the same time
> 
> Is it possible and is there any way (existing script or extension) to do
> that ?
> 
> Thanks in advance, 
> 

I have not heard of anything like existing like this.
I guess the problem is that one needs to:
 a) find a way to give the copies of "PageChap1" and "PageChap2" new names
 b) then update the content of the copied template to refer to the copies, not 
the original template chapters.

I am sure a custom scripted solution for this is possible, and depending on the 
UI Requirements it might not even be too difficult, but as far as I know this 
does not exist.

(Come to think of it, one does not even modify the original template in step 
b). For the new page "MyNextBook", just call the pages  MyNextBookPageChap1 and
MyNextBookPageChap2 and a template like:

{{velocity wiki="true"}}
{{include reference="${doc.name}PageChap1" /}}
{{include reference="${doc.name}PageChap2" /}}
{{/velocity}}

should "just work" ...)

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


Re: [xwiki-users] color schemes

2014-02-15 Thread Clemens Robbenhaar
On 02/05/2014 08:28 PM, Paul Pinkerton (ACLCO) wrote:
> I have several spaces that use custom color schemes.  How do I get the
> global panels to display in the color scheme of the space, not the wiki
> defaults?
> 

The way I understand your question is that panels shown in the sidebars should 
show up colored differently in each space.

If a space as its own color theme set up, this is a CSS setting affecting the 
complete page, and the way panels in that page are rendered too.
That is, normally it should be as you asked for. I just tried and set up a 
custom color theme for my sandbox, and it works "as expected".

The only thing I noticed is that panels are usually colored relatively neutral 
in the default color themes.
If you want the panel headers to be more colorful you are expected to edit the 
color theme itself. Every color there contains settings for the panel header 
text /
background color and panel text and background color.

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


Re: [xwiki-users] Problem add GadGet in dashboard

2014-02-15 Thread Clemens Robbenhaar
Hi Saulo,

> Good afternoon.
> 
> I have a problem to add new gadget in dashboard.
> 
> I click the button to add a new gadget, choose the application, configure
> and click on add. The page reloads, but does not display the application,
> someone has gone through this problem?
> 
> Currently use xwiki 5.4.1 enterprise.
> 
> thank

I am not sure why the page reloads. This looks like something triggered a 
JavaScript error.
Can you see any errors in the JavaScript console? (Ctrl-Shift-J in Firefox,
and I guess F12 in IE and Chrome ...)

Btw, I near thought I could reproduce the issue, but then I figured out the 
gadget actually got added in the lower right corner, completely scrolled out of 
view by the
activity stream ^^

Clemens



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


Re: [xwiki-users] AppWithinMinutes and more

2014-02-07 Thread Clemens Robbenhaar
On 02/07/2014 08:25 AM, Hamster wrote:
> Just thinking outside of the box...
> 
> How about using the  FullCalendar Application
> 
>  
> ?
> 

Or, as we are at it (shameless plug):
 http://extensions.xwiki.org/xwiki/bin/view/Extension/MoccaCalendar
... which however stores events as single pages, too, and has the
very problem with page names Matthias originally mentioned.
However I am currently working on a fix and hope to release that soon.

Then I can understand the wish to have the event objects attached to a page;
after all a single page can (in principle) hold as many events as one wants to,
and there is no need to give then unique names.

 I remember the original calendar app does exactly this:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Calendar+Application

Matthias: maybe this does just what you want?

Clemens

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


Re: [xwiki-users] How to avoid (x) turning into a red X image?

2013-09-28 Thread Clemens Robbenhaar
Google has the "print view" and the "history view" of that page in its index.
No idea why it did something like that.

These views of non-existing pages are empty and say the page was created just 
now by anonymous.
The views contain a correct "canonical link" header which should have told 
Google that this print view is not the "real thing".
Maybe the 404 of the actual page made Google think the print view is better 
than nothing, and keep it in its index :-/
I have not been able to figure out from where the link pointing to this page 
comes from, or by what other means Google came to the conclusion this page 
should exist.

On 09/28/2013 04:25 PM, Todd O'Bryan wrote:
> Weird. I have two versions of that page open in different tabs of my
> browser. One says you deleted it in February of 2012. The other says
> that it was created on September 27, 2013 by unknown user. (I had the
> second one still open from when I searched for it last night.) If I
> search for "xwiki smileys" on Google, that page is the third result
> and the last time Google indexed it, it said it had been modified on
> July 9, 2013.
> 
> 
> 
> On Fri, Sep 27, 2013 at 5:40 PM, Vincent Massol  wrote:
>>
>> On Sep 27, 2013, at 7:27 PM, Todd O'Bryan  wrote:
>>
>>> I was talking about this one:
>>>
>>> http://www.xwiki.org/xwiki/bin/view/XWiki/smileys
>>
>> I don't understand, there's no such page anymore. This page was an error 
>> done by someone and removed in 2010 (ie 3 years ago).
>>
>> Thanks
>> -Vincent
>>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Questions about the New Syntax help; was: Re: Link with get parameters and ID in XWiki 2.0 syntax

2013-09-22 Thread Clemens Robbenhaar
On 09/17/2013 05:18 PM, Vincent Massol wrote:
> 
> On Sep 17, 2013, at 4:52 PM, Clemens Klein-Robbenhaar 
>  wrote:
> 
>> On 09/17/2013 04:40 PM, Vincent Massol wrote:
>>>
>>> On Aug 29, 2013, at 3:15 PM, Clemens Klein-Robbenhaar 
>>>  wrote:
>> [...snip ...]
 What is actually needed to finish this, aside of a few formatting things?
>>>
>>> Fixing the code based on the comments in the jira issue (for example it has 
>>> to pass the build, WCAG compliance is a must have).
>>>
>>> That's all.
>>>
>>> Interested to finish it? :)
>>>
>>
>> Yes, definitely.
>> I will be on vacation one week in October, then at latest I should find the 
>> time to look into this.
> 
> Cool!
> 

Well, I looked into it and already have a few questions. sorry ...

WCAG Validation:

Where is the WCAG test which makes the build fail?
When I just run a  mvn install inside the xwiki-platform-help-ui itself, this 
works.
Do I have to make a full build to get the test running that would break now?

Aside of that I have problems getting WCAG validity anyway.
I tried the recommended online validation tool at 
http://www.webrichtlijnen.nl/english/testing
but that complains that the page uses , and has several  header ... 
well, they are part of the documentation showing how to type monospace and 
headers, so it is
hard to avoid them except by leaving the out, which is kinda silly for a 
documentation; also they are already in the existing syntax help page, so it 
seems there is some
way to avoid that which I do not know.

Additionally there are a lot of duplicate id="H2.0" or the like in the full 
page, but this is how the proper syntax version is extracted from the document 
containing the
relevant section.
Similar to Johannes I am a bit lost how to avoid that, except for doing odd 
things like scrapping the header after rendering, or split the documentation 
into one document
per section *and* syntax (would end up with somewhat 40 instead of 20 headers), 
or add separate "marker heading" to each and every section (the latter the 
somewhat best
option imo)

I see also some problem has been point out that the tables having width=100%
However this is also the case with the existing syntax help; but for me they do 
more harm (making the tables with the examples shift below the left navigation),
so I prefer scrap them all unless someone can tell me why they are there in the 
first place.

Translations:

There are a few new translations keys. Can I just add them to the 
ApplicationResources.properties?

Additionally there are some existing translations of the complete document:
http://l10n.xwiki.org/xwiki/bin/view/L10N/Search?application=&name=Platform.XWikiXWikiSyntax&lang=&key=content&origtext=&transtext=
How is it possible to split the content into documents and still make then show 
up on l10n?
(I hope I can do the split in the *.xml files, even though I do not understand 
most languages, as I can go by the examples, but I have no idea how to sync the 
results with
l10n.xwiki,org.)

Finally, should I discuss these issues here in the list, or in jira or on the 
devs list instead?

Any pointers would be very appreciated.

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


Re: [xwiki-users] Configuring Landing Page after login?

2013-09-22 Thread Clemens Robbenhaar
On 09/22/2013 05:57 AM, Mohit Gupta wrote:
> Once user registers himself, registration gets successful and clicks login,
> he is navigated to "Main" space  "WebHome" PageI want the user navigates to
> Webhome page of MySpace . For this i mentioned below config element in
> xwiki.cfg and restarted the server.
> 
> xwiki.authentication.defaultpage=/bin/view/MySpace/WebHome
> 
> But it did not help. Still user is navigated to "Main" space  "WebHome"
> Page once user clicks the login after successful regstration?
> Am i missing something here?

 The "click here to login" button which is shown after registration does not 
honor the settings
in the xwiki.cfg; instead it configures its own "welcome page".

You can find this in the XWiki Admin, section "Registration"

This should, among others, contain a field "Redirect here after registration"
with contents:

  $xwiki.getURL($services.model.resolveDocument('', 'default', 
$doc.documentReference.extractReference('WIKI')))

you can change this e.g. to

  $xwiki.getURL($services.model.resolveDocument('MySpace.WebHome'))


I hope this helps
Clemens
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Default XAR merge on import

2008-12-05 Thread Clemens Robbenhaar

 > According to the installation/upgrade guide, "You may want to upgrade to
 > a newer version of the Default Wiki XAR in order to benefit from the
 > latest changes. As mentioned above in the "Installing the Default Wiki
 > XAR" section you should be very careful and when doing the import make
 > sure you selectively decide what pages you wish to import."
 > 
 > Is there any particularly good recommended way of doing this
 > efficiently? 
 [...]

 I would be interested in some pointers here, too. Currently for every
upgrade most of the time I am busy with comparing the exported and
unpacked *.xar of my wiki with the differences between the
xwiki-enterprise-*.war from the corresponding releases, and update the
*.xml files manually. 
 When I reimport the changes files again in the running xwiki I always
have the fear of overwriting some important local modifications, or
forgot to add important updates from the release.

 I guess there must be better ways to do it, and maybe someone already
knows one ;)

 > 
 > I personally don't need any pretty xwiki app to do this, if I can
 > accomplish it in my shell, it'd be fine.  And barring comments, I'll try
 > to work this up on my own.

 I just wondered if one day I get to the point where I could at least
write an importer plugin, which accepts the pristine *.xar from the
current and new release, and then updates all pages, which still have
the content from the old release with the content of the corresponding
page in the new release. (Well, just updating the content would not help
for the Panels, which are actually the most heavily customized things in
the wiki here). Though I am not there yet, partially because still have to
learn the XWiki API, partially because the updates somehow went through
without it.


Cheers anyway,
Clemens

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


[xwiki-users] XWiki Translation Tool: looking for volunteers

2008-12-04 Thread Clemens Robbenhaar

Hi all,

 > We have setup the new translation tool on a production server and we are 
 > now looking for volunteers to give it a test drive and start updating 
 > the translations of the XWiki Core.
 > 
 > The new tool is at
 > 
 > http://l10n.xwiki.org

 This looks nice!
 I have one observation and one plea.

 The observation: at least in the german translations there are a couple
of keys which do not exist in the main ApplicationResources.properties
(and are most probably unused).

 Currently I can see one example just in the first page:

http://l10n.xwiki.org/xwiki/bin/view/XE/XWikiCoreResources?action=viewall&language=de&start=0

 Here a translation is listed for the key "status.currentpool"
which is not in the main ApplicationResources.properties, but only in the
ApplicationResources_de.properties.

 Somewhat confusingly the tool lists the english translation for the
*previous* key instead (i.e. here "No documents found in the selected archive",
which is the translation for the key "nodocstoimport").
 This was a little confusing to me until I figured out what was
happening.

 Maybe these unused keys shopuld be cleaned up? Is there any way
contributors could help, or just a matter of the right script to remove
the unused translation automatically?


 Now a little plea: is it possibe to search for translation keys,
or at least sort then alphabetically?

 I see one translation for the key "rightsmanager.addnewgroup",
for which the current German version seems to be wrong (it translates to
"add all users to this group" instead of "add new group"). Currently 
I have to page through all the pages and search the tranlation manually.
 
 More precise plea: if I would plan to implement something like that,
would there be any interest in it, and are there any pointers where to
start, and to where submit patches?

Cheers,
Clemens

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


Re: [xwiki-users] Patch to templates/docextra.vm : where to report in jira ?

2008-11-27 Thread Clemens Robbenhaar

Hi Jean-Vincent,

 > On Thu, Nov 27, 2008 at 12:05 PM, Clemens Robbenhaar
 > <[EMAIL PROTECTED]> wrote:
 > > Dear XWiki Users,
 > >
 > >  I have a little patch for the "docextra.vm" template which I would like
 > > to submit to the issue tracker, but I am not sure where to post it.
 > >
 > >  The file to patch is in the SVN repository at
 > > http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk
 > > Which category / project in jira does this part belong to?
 > >
 > >  Is this still "XWiki Core" aka XWIKI or is it one of the skins,
 > > e.g. "XWiki Toucan Skin" aka XSTOUCAN ?
 > >
 > 
 > The XWiki Core project contains everything located under :
 >  - platform/core/
 >  - platform/web/
 > Since the modules they contain have the same release cycle.

 Ah, thanks for the information! Added issue as
http://jira.xwiki.org/jira/browse/XWIKI-2896 then.


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


[xwiki-users] Patch to templates/docextra.vm : where to report in jira ?

2008-11-27 Thread Clemens Robbenhaar
Dear XWiki Users,

 I have a little patch for the "docextra.vm" template which I would like
to submit to the issue tracker, but I am not sure where to post it.

 The file to patch is in the SVN repository at
http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk 
Which category / project in jira does this part belong to?

 Is this still "XWiki Core" aka XWIKI or is it one of the skins, 
e.g. "XWiki Toucan Skin" aka XSTOUCAN ?

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