[xwiki-users] Document Tree set Root to Current page (take 2)

2016-06-14 Thread Isaac Jurado
Hello,

Searching through the web I found the following mailing list thread:

http://comments.gmane.org/gmane.comp.web.wiki.xwiki.user/28977

Which solves my problem exactly, with one minor caveat: the enterprise
XWiki installation I'm using has Velocity macros disabled for average users.

Therefore, what is the equivalent of Velocity's $doc.documentReference in
XWiki syntax (i.e. node id reference).

Best regards.

-- 
Isaac Jurado

"The noblest pleasure is the joy of understanding"
Leonardo da Vinci
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Filter app livetable by checkbox value

2016-06-14 Thread D R
Hi,

Sorry in advance. I can't imagine that this hasn't been asked before but as
I couldn't find anything I may have used the wrong key words.

Anyway, my problem is: I have created an app with "App within minutes" on
XWiki 7.4.3 and among others defined boolean fields (checkboxes).
I also added them to the application livetable. The table displays, for
example, "Yes" and "No" but filtering is not possible. If I enter "Yes" in
the filter no rows are returned though documents matching this exist.

So how can I filter for checkbox values in an app livetable?

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


Re: [xwiki-users] Document Tree set Root to Current page (take 2)

2016-06-14 Thread Marius Dumitru Florea
On Tue, Jun 14, 2016 at 12:31 PM, Isaac Jurado  wrote:

> Hello,
>
> Searching through the web I found the following mailing list thread:
>
> http://comments.gmane.org/gmane.comp.web.wiki.xwiki.user/28977
>
> Which solves my problem exactly, with one minor caveat: the enterprise
> XWiki installation I'm using has Velocity macros disabled for average
> users.
>
>

> Therefore, what is the equivalent of Velocity's $doc.documentReference in
> XWiki syntax (i.e. node id reference).
>

You can either hard-code the full reference of the current document
(wiki:Path.To.Page) if it's not dynamic, otherwise, you can create a wiki
macro http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
that uses Velocity. Your average users will have to use this
"currentDocumentTree" macro.

Hope this helps,
Marius


>
> Best regards.
>
> --
> Isaac Jurado
>
> "The noblest pleasure is the joy of understanding"
> Leonardo da Vinci
> ___
> 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] Document Tree set Root to Current page (take 2)

2016-06-14 Thread Isaac Jurado
On Tue, Jun 14, 2016 at 11:42 AM, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> On Tue, Jun 14, 2016 at 12:31 PM, Isaac Jurado  wrote:
>
> > Hello,
> >
> > Searching through the web I found the following mailing list thread:
> >
> > http://comments.gmane.org/gmane.comp.web.wiki.xwiki.user/28977
> >
> > Which solves my problem exactly, with one minor caveat: the enterprise
> > XWiki installation I'm using has Velocity macros disabled for average
> > users.
> >
> >
>
> > Therefore, what is the equivalent of Velocity's $doc.documentReference in
> > XWiki syntax (i.e. node id reference).
> >
>
> You can either hard-code the full reference of the current document
> (wiki:Path.To.Page) if it's not dynamic, otherwise, you can create a wiki
> macro http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
> that uses Velocity. Your average users will have to use this
> "currentDocumentTree" macro.
>

As I mentioned, our users don't have permission to use the {{velocity}}
macro so anything related to Velocity is out of the equation.

On the other hand I think I'm failing to understand the "root" parameter of
the {{documentTree}} macro:

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

Given that I have the following path:

  MyRoot.MyPage.MyChild

If I want to show the Document Tree rooted at MyPage, I'm trying something
like:

  {{documentTree root="document:xwiki:MyRoot.MyPage"
hierarcyMode="parentchild" /}}

And also:

  {{documentTree root="document:xwiki:MyRoot.MyPage"
hierarcyMode="parentchild" /}}

And neither of those show any children, when the expectation was to see
"MyChild".

Thank you for your support.  Best regards.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [myxwiki] new wiki request

2016-06-14 Thread Tom Groeneveld
Hi, I would like a wiki for:

*Description*: Document small things I would like to remember, and might
even help out others
*Owner Name*: Tom Groeneveld
*Wiki Name*:  Fantasyworld

Kind regards, Tom.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Document Tree set Root to Current page (take 2)

2016-06-14 Thread Marius Dumitru Florea
On Tue, Jun 14, 2016 at 1:14 PM, Isaac Jurado  wrote:

> On Tue, Jun 14, 2016 at 11:42 AM, Marius Dumitru Florea <
> mariusdumitru.flo...@xwiki.com> wrote:
>
> > On Tue, Jun 14, 2016 at 12:31 PM, Isaac Jurado 
> wrote:
> >
> > > Hello,
> > >
> > > Searching through the web I found the following mailing list thread:
> > >
> > > http://comments.gmane.org/gmane.comp.web.wiki.xwiki.user/28977
> > >
> > > Which solves my problem exactly, with one minor caveat: the enterprise
> > > XWiki installation I'm using has Velocity macros disabled for average
> > > users.
> > >
> > >
> >
> > > Therefore, what is the equivalent of Velocity's $doc.documentReference
> in
> > > XWiki syntax (i.e. node id reference).
> > >
> >
> > You can either hard-code the full reference of the current document
> > (wiki:Path.To.Page) if it's not dynamic, otherwise, you can create a wiki
> > macro
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
> > that uses Velocity. Your average users will have to use this
> > "currentDocumentTree" macro.
> >
>
>

> As I mentioned, our users don't have permission to use the {{velocity}}
> macro so anything related to Velocity is out of the equation.
>

The {{documentTree}} is a wiki macro that uses the {{velocity}} macro
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-index/xwiki-platform-index-tree/xwiki-platform-index-tree-macro/src/main/resources/XWiki/DocumentTree.xml#L186
so if your users can use it then they can also use the
"currentDocumentTree" wiki macro I described above.


>
> On the other hand I think I'm failing to understand the "root" parameter of
> the {{documentTree}} macro:
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro
>
> Given that I have the following path:
>
>   MyRoot.MyPage.MyChild
>
> If I want to show the Document Tree rooted at MyPage, I'm trying something
> like:
>
>   {{documentTree root="document:xwiki:MyRoot.MyPage"
> hierarcyMode="parentchild" /}}
>
> And also:
>
>

>   {{documentTree root="document:xwiki:MyRoot.MyPage"
> hierarcyMode="parentchild" /}}
>

I don't see any difference.


>
> And neither of those show any children, when the expectation was to see
> "MyChild".
>

You are mixing things. You should read
http://platform.xwiki.org/xwiki/bin/view/Features/ContentOrganization/NestedPagesMigration/
. The "parentchild" hierarchy mode that you're using is not based on the
page reference ("MyRoot.MyPage.MyChild"). You shouldn't use
hierarcyMode="parentchild" unless you are migrating from an older version
of XWiki and you want to preserve your hierarchy. But since you are using
nested pages (MyRoot.MyPage.MyChild) I doubt this is the case.


>
> Thank you for your support.  Best regards.
> ___
> 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] Filter app livetable by checkbox value

2016-06-14 Thread Vincent Massol
Hi,

> On 14 Jun 2016, at 12:31, D R  wrote:
> 
> Hi,
> 
> Sorry in advance. I can't imagine that this hasn't been asked before but as
> I couldn't find anything I may have used the wrong key words.
> 
> Anyway, my problem is: I have created an app with "App within minutes" on
> XWiki 7.4.3 and among others defined boolean fields (checkboxes).
> I also added them to the application livetable. The table displays, for
> example, "Yes" and "No" but filtering is not possible. If I enter "Yes" in
> the filter no rows are returned though documents matching this exist.
> 
> So how can I filter for checkbox values in an app livetable?

See http://jira.xwiki.org/browse/XWIKI-6118

Thanks
-Vincent

> Regs,
> Dennis

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


[xwiki-users] Xwiki replace " " with "+" on title

2016-06-14 Thread stefbort
Hi.
I made a new Xwiki installazione, but when I create an article or a space
with a title likes "One two" I see two titles/names: "One two" and
"One+two".

Wath I made wrong?

I used "war" package 7.4.3 and 7.4.4-SNAPSHOT on CentOS 7.2 (as minimal
server) with OpenJDK 1.8.0_91, Tomcat 8.0.35, MariaDB 5.5.47 and the Oracle
mysql connector  5.1.9.

Thanks in advance.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Xwiki-replace-with-on-title-tp7599972.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


Re: [xwiki-users] Document Tree set Root to Current page (take 2)

2016-06-14 Thread Eduard Moraru
Hi,

On Tue, Jun 14, 2016 at 1:14 PM, Isaac Jurado  wrote:

> On Tue, Jun 14, 2016 at 11:42 AM, Marius Dumitru Florea <
> mariusdumitru.flo...@xwiki.com> wrote:
>
> > On Tue, Jun 14, 2016 at 12:31 PM, Isaac Jurado 
> wrote:
> >
> > > Hello,
> > >
> > > Searching through the web I found the following mailing list thread:
> > >
> > > http://comments.gmane.org/gmane.comp.web.wiki.xwiki.user/28977
> > >
> > > Which solves my problem exactly, with one minor caveat: the enterprise
> > > XWiki installation I'm using has Velocity macros disabled for average
> > > users.
> > >
> > >
> >
> > > Therefore, what is the equivalent of Velocity's $doc.documentReference
> in
> > > XWiki syntax (i.e. node id reference).
> > >
> >
> > You can either hard-code the full reference of the current document
> > (wiki:Path.To.Page) if it's not dynamic, otherwise, you can create a wiki
> > macro
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
> > that uses Velocity. Your average users will have to use this
> > "currentDocumentTree" macro.
> >
>
> As I mentioned, our users don't have permission to use the {{velocity}}
> macro so anything related to Velocity is out of the equation.
>

It is not clear what you want to achieve. If you are a wiki admin and have
received complains that your users can not use the {{documentTree}} in
order to create some content that displays the document tree for the
current document, then your solution, again, as a wiki admin, is to create
a very small "currentDocumentTree" macro which is tailor-made for this
particular usecase and which you can recommend to your users to use in
their plain-wiki content instead of the default "documentTree" macro. A
user without "script" rights is able to successfully use macros (even if
the macros contain scripts), as long as the macros are created and saved by
a user with script rights (e.g. an admin) and that has set the macro to be
visible to the entire wiki (i.e. other users).

However, if your situations if that of being a regular user in a wiki where
the admin did you give you "script" rights, then unfortunately the wiki
syntax [1] does not have such a construct, since it is something that is
achievable either through scripting or through
(installed/pre-built/available) wiki macros (as detailed above and in the
reply from Marius).

Hope this makes it clearer.

Thanks,
Eduard

--
[1] http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax


> On the other hand I think I'm failing to understand the "root" parameter of
> the {{documentTree}} macro:
>
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro
>
> Given that I have the following path:
>
>   MyRoot.MyPage.MyChild
>
> If I want to show the Document Tree rooted at MyPage, I'm trying something
> like:
>
>   {{documentTree root="document:xwiki:MyRoot.MyPage"
> hierarcyMode="parentchild" /}}
>
> And also:
>
>   {{documentTree root="document:xwiki:MyRoot.MyPage"
> hierarcyMode="parentchild" /}}
>
> And neither of those show any children, when the expectation was to see
> "MyChild".
>
> Thank you for your support.  Best regards.
> ___
> 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] [myxwiki] new wiki request

2016-06-14 Thread Thomas Mortagne
You can access your new wiki on http://fantasyworld.myxwiki.org.

Enjoy !

On Tue, Jun 14, 2016 at 3:23 PM, Tom Groeneveld  wrote:
> Hi, I would like a wiki for:
>
> *Description*: Document small things I would like to remember, and might
> even help out others
> *Owner Name*: Tom Groeneveld
> *Wiki Name*:  Fantasyworld
>
> Kind regards, Tom.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



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