[xwiki-users] Problem in Extension

2016-04-08 Thread Matthias Wegner
Hi Users,

i programmed two years ago the Citation-Extension at
https://github.com/matthiaw/xwiki-rendering-macro-citations.

Now i found a bug in XWiki 8.x when i add on different pages the
CitationClass-Object. There is a null-pointer-exception at Line 79, see
https://github.com/matthiaw/xwiki-rendering-macro-citations/blob/master/xwiki-rendering-macro-citations/src/main/java/org/xwiki/rendering/citations/CitationClassBuilder.java#L79

The Problem is that all Documents with the custom-object (doc in line 77)
are found, but the method returns an empty null-list for nested documents.

The Macro works when the Document with added XWiki.CitationClass-Objects is
NOT nested. But when it is nested then the reference looks like
Parent\.Child.WebHome. Is the Backlash the Problem? And when yes, where does
it come from?

You have any clue what i can do? Is that a bug or a mistake?

Regards,
Matthias



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-in-Extension-tp7598895.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] 4-byte UTF and XWiki (MySQL utf8mb4 encoding)

2016-04-08 Thread Debajit Adhikary
I have changed my MySQL database columns to support utf8mb4 (4-byte
unicode), and I can render chinese characters etc correctly now.

When I upgrade my XWiki to a newer version in the future, will this cause
issues in the upgrade? (I am guessing there may be database schema changes
in a future XWiki version)

On Thu, Apr 7, 2016 at 7:08 PM, Sergiu Dumitriu  wrote:

> It will be almost impossible to use utf8mb4 with XWiki, because of the
> terrible way mysql is designed. Here's the reason why:
>
> mysql imposes several hard limits on the maximum size of several things:
> length of indexes, length of rows. These lengths, unfortunately, are not
> computed as the maximum size of the actual data, but of the theoretical
> data that could be placed in there. This means that the size of a
> VARCHAR(255) isn't 255 bytes, but 255 chars * maximum number of bytes
> that such a char could have (3 for utf8, 4 for utf8mb4).
>
> You could make it work if you change the schema to reduce the length of
> several fields, but you would do that at your own risk.
>
> On 04/06/2016 08:58 PM, Debajit Adhikary wrote:
> > Some more information:
> >
> > On my Mac, when I try to set up XWiki with MySQL, I ran the following:
> >
> > # Install mysql and start
> >
> > brew update
> > brew install mysql
> > mysql.server start
> > # Now I can connect as "mysql -uroot"
> >
> > # Create a new MySQL database for XWiki
> > # see
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL
> >
> > mysql -u root -e "create database xwiki default character set utf8mb4
> > collate utf8mb4_unicode_ci"
> >
> > mysql -u root -e "grant all privileges on *.* to xwiki@localhost
> > identified by 'xwiki'"
> >
> >
> > # Configure hibernate.cfg.xml
> > # This is only the mysql section
> >
> >  name="connection.url">jdbc:mysql://localhost/xwiki
> > xwiki
> > xwiki
> >  > name="connection.driver_class">com.mysql.jdbc.Driver
> >  > name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect
> > true
> > UTF-8
> > true
> > 20
> > 
> > 
> > 
> > 
> > 
> >
> > Now when I start XWiki, I get the error:
> > com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
> > Row size too large. The maximum row size for the used table type, not
> > counting BLOBs, is 65535. This includes storage overhead, check the
> manual.
> > You have to change some columns to TEXT or BLOBs
> >
> > It looks like whatever creates the XWiki tables is not handling utf8mb4
> > (see also https://mathiasbynens.be/notes/mysql-utf8mb4 ).
> >
> >
> >
> > On Wed, Apr 6, 2016 at 5:17 PM, Debajit Adhikary  >
> > wrote:
> >
> >> I have an XWiki installation, and I noticed that emoji's were not
> getting
> >> saved correctly and were rendering as question marks in XWiki. This is
> >> caused by MySQL's default encoding which is "utf8" and not "utf8mb4"
> >> (4-byte UTF to store the full unicode character set)
> >>
> >> To fix this, I am in the process of converting all my MySQL database
> >> tables into utf8mb4 encoding, which is turning out to be quite a lot of
> >> manual work.
> >>
> >> When XWiki creates the database tables for MySQL, can it use utf8mb4
> >> encoding by default? Is this something I could open a bug request for?
> >>
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> ___
> 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] Nested pages livetable

2016-04-08 Thread Mahomed Hussein
Thanks Vincent. We are currently running version 8.0. I take it we'll only see 
this fix in the next release after milestone 1? I am only asking so I know when 
to check, I am not trying to be pushy ;-) Thanks again.


Kind regards,




Mahomed Hussein
Custodian Data Centre
Email: maho...@custodiandc.com
http://www.CustodianDC.com

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol
Sent: 08 April 2016 16:57
To: XWiki Users 
Subject: Re: [xwiki-users] Nested pages livetable

I’ve fixed the issue and backported the fix in 7.4.3 (not released yet).

Thanks
-Vincent

> On 08 Apr 2016, at 17:37, Mahomed Hussein  wrote:
>
> Hi Vincent
>
> Thanks. The viewer=children option is a usable workaround for now. The 
> SpaceIndex option was slightly nicer because it was sortable on document 
> title (not just location).
>
> I was going to try editing XWiki.LiveTableResults but I couldn't work out 
> where that was (which probably means I shouldn't touch it :-)  )
>
> Thanks again. I look forward to the final fix. Though 8.1 milestone 1 looks 
> like will change more of the stuff we actually came to like in XWiki. But 
> such is life. Thanks for the hard work.
>
>
> Kind regards,
>
>
>
>
> Mahomed Hussein
> Custodian Data Centre
> Email: maho...@custodiandc.com
> http://www.CustodianDC.com
>
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol
> Sent: 08 April 2016 09:21
> To: XWiki Users 
> Subject: Re: [xwiki-users] Nested pages livetable
>
> Hi Mahomed,
>
>> On 07 Apr 2016, at 19:01, Mahomed Hussein  wrote:
>>
>> This issue has kind of bitten us as well. The table format of listing all 
>> documents in a particular space is really useful (regardless of nested pages 
>> or not). Sadly the spaceIndex (which I think is slightly different but 
>> related to this) doesn't list the new type pages.
>
> Yes indeed, see http://jira.xwiki.org/browse/XWIKI-13239
>
> I’ll probably take care of it in the coming days.
>
> Thanks
> -Vincent
>
>> Kind regards,
>>
>>
>>
>> Mahomed Hussein
>> Custodian Data Centre
>> Email: maho...@custodiandc.com
>> http://www.CustodianDC.com
>>
>> -Original Message-
>> From: users [mailto:users-boun...@xwiki.org] On Behalf Of CarlJ
>> Sent: 24 March 2016 11:51
>> To: users@xwiki.org
>> Subject: Re: [xwiki-users] Nested pages livetable
>>
>> Hi,
>>
>> I hate to bug but is there no way to display the children of a page in a
>> livetable, because if there isn't I am going to have restore my wiki back to
>> before I upgraded from our backup.
>>
>> Thanks and sorry to bug.
>> - Carl
>
> ___
> 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

___
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] Nested pages livetable

2016-04-08 Thread Vincent Massol
I’ve fixed the issue and backported the fix in 7.4.3 (not released yet).

Thanks
-Vincent

> On 08 Apr 2016, at 17:37, Mahomed Hussein  wrote:
> 
> Hi Vincent
> 
> Thanks. The viewer=children option is a usable workaround for now. The 
> SpaceIndex option was slightly nicer because it was sortable on document 
> title (not just location).
> 
> I was going to try editing XWiki.LiveTableResults but I couldn't work out 
> where that was (which probably means I shouldn't touch it :-)  )
> 
> Thanks again. I look forward to the final fix. Though 8.1 milestone 1 looks 
> like will change more of the stuff we actually came to like in XWiki. But 
> such is life. Thanks for the hard work.
> 
> 
> Kind regards,
> 
> 
> 
> 
> Mahomed Hussein
> Custodian Data Centre
> Email: maho...@custodiandc.com
> http://www.CustodianDC.com
> 
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol
> Sent: 08 April 2016 09:21
> To: XWiki Users 
> Subject: Re: [xwiki-users] Nested pages livetable
> 
> Hi Mahomed,
> 
>> On 07 Apr 2016, at 19:01, Mahomed Hussein  wrote:
>> 
>> This issue has kind of bitten us as well. The table format of listing all 
>> documents in a particular space is really useful (regardless of nested pages 
>> or not). Sadly the spaceIndex (which I think is slightly different but 
>> related to this) doesn't list the new type pages.
> 
> Yes indeed, see http://jira.xwiki.org/browse/XWIKI-13239
> 
> I’ll probably take care of it in the coming days.
> 
> Thanks
> -Vincent
> 
>> Kind regards,
>> 
>> 
>> 
>> Mahomed Hussein
>> Custodian Data Centre
>> Email: maho...@custodiandc.com
>> http://www.CustodianDC.com
>> 
>> -Original Message-
>> From: users [mailto:users-boun...@xwiki.org] On Behalf Of CarlJ
>> Sent: 24 March 2016 11:51
>> To: users@xwiki.org
>> Subject: Re: [xwiki-users] Nested pages livetable
>> 
>> Hi,
>> 
>> I hate to bug but is there no way to display the children of a page in a
>> livetable, because if there isn't I am going to have restore my wiki back to
>> before I upgraded from our backup.
>> 
>> Thanks and sorry to bug.
>> - Carl
> 
> ___
> 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

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


Re: [xwiki-users] Section in include macro fails

2016-04-08 Thread Vincent Massol
You’re not answering my questions. I can’t help you more without the info I 
ask, sorry.

-Vincent

> On 08 Apr 2016, at 17:04, Matthias Barmeier  
> wrote:
> 
> Hi,
> 
> take look at my previous posts:
> 
> this works:
> 
> [[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]
> 
> 
> this not:
> 
> {{include reference="Synaptic.Technik.Konfigurationsdateien.WebHome" 
> section="HFSS.properties"/}}
> 
> 
> But I tried other headings and they worked. Strange ...
> 
> I will take a closer look at the page maybe something is corrupt.
> Strange is that some headings above the FSS.properties heading work and some 
> below work too but some of the headings on this page does not work.
> 
> Thanks fo your help :)
> 
> Ciao
>Matze
> 
> 
> Am 08.04.2016 um 16:53 schrieb Vincent Massol:
>>> On 08 Apr 2016, at 16:28, Matthias Barmeier 
>>>  wrote:
>>> 
>>> Hi,
>>> 
>>> this is really strange look at the error message the H is there :(
>> Could you provide the following info (same as what I provided in my previous 
>> reply):
>> - the content where you include the heading section
>> - the URL of the page containing the heading section to include
>> - the content of the page containing the heading section
>> 
>> Thanks
>> -Vincent
>> 
>>> Ciao
>>>Matze
>>> 
>>> Am 08.04.2016 um 09:36 schrieb Vincent Massol:
> On 08 Apr 2016, at 09:33, Vincent Massol  wrote:
> 
> 
>> On 08 Apr 2016, at 09:29, Matthias Barmeier 
>>  wrote:
>> 
>> Hi Vincent,
>> 
>> from my point of view the addressed item is a heading. Page and section 
>> enytry (Source) to include:
>> 
>> 
>> = Synaptic File Synchronisation Service (FSS) =
>> 
>> == FFS.properties ==
> Then all you’re missing is the “H” ;)
 Actually you do have the “H”. I’ve tested it locally and it works fine for 
 me (I’m on 8.1-SNAPSHOT too).
 
 Here’s my link:
 
 “
 [[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]
 
 {{include reference="Synaptic.Technik.Konfigurationsdateien.WebHome" 
 section="HFFS.properties"/}}
 "
 
 Here’s the URL to the page:
 http://localhost:8080/xwiki/bin/view/Synaptic/Technik/Konfigurationsdateien/
 
 Here’s the content of that page:
 
 “
 zzdz
 
 = Synaptic File Synchronisation Service (FSS) =
 
 == FFS.properties ==
 
 test
 "
 
 Thanks
 -Vincent
 
> See 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+Macro#HParametersdefinition
> 
> Use view source of your browser to find the anchor name (just remove the 
> # in front).
> 
> Thanks
> -Vincent
> 
>> In dieser Datei wird der File Synchonization Service (FSS) konfiguriert. 
>> Dieser ist für die Datei-Donwloads und die Weiterleitung der 
>> Datei-Download-Benachrichtigungen an die angeschlossenen Kind-Knoten 
>> zuständig.
>> 
>> 
>> This is a section or is a second level heading not a section ?
>> 
>> Ciao
>>Matze
>> 
>> 
>> Am 08.04.2016 um 09:22 schrieb Vincent Massol:
>>> Hi Matthias,
>>> 
>>> The reason it doesn’t work is that right now the {{include}} Macro can 
>>> only include Heading sections. I supposed you’re using the {{id}} macro 
>>> to generate an anchor and that is not supported by the include macro 
>>> right now.
>>> 
>>> If you check the documentation for the include macro you’ll see it says 
>>> that section is to include a … section. A section in XWiki markup is 
>>> the content that comes just after a Heading.
>>> 
>>> Including what comes after an anchor would be very complex and there 
>>> would be no delimitation of beginning and end.
>>> 
>>> So to make it work on your side, you need to refactor your content to 
>>> use a heading.
>>> 
>>> Thanks
>>> -Vincent
>>> 
 On 08 Apr 2016, at 08:58, Matthias Barmeier 
  wrote:
 
 Hi,
 
 @Marius: No that does not work :(
 
 Adding .WebHome leads to the same exception:
 
 org.xwiki.rendering.macro.MacroExecutionException: Cannot find section 
 [HFSS.properties] in document 
 [produkte:Synaptic.Technik.Konfigurationsdateien.WebHome]
at 
 org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:197)
at 
 org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:55)
at 
 org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:272)
at 
 

Re: [xwiki-users] Nested pages livetable

2016-04-08 Thread Mahomed Hussein
Hi Vincent

Thanks. The viewer=children option is a usable workaround for now. The 
SpaceIndex option was slightly nicer because it was sortable on document title 
(not just location).

I was going to try editing XWiki.LiveTableResults but I couldn't work out where 
that was (which probably means I shouldn't touch it :-)  )

Thanks again. I look forward to the final fix. Though 8.1 milestone 1 looks 
like will change more of the stuff we actually came to like in XWiki. But such 
is life. Thanks for the hard work.


Kind regards,




Mahomed Hussein
Custodian Data Centre
Email: maho...@custodiandc.com
http://www.CustodianDC.com

-Original Message-
From: users [mailto:users-boun...@xwiki.org] On Behalf Of Vincent Massol
Sent: 08 April 2016 09:21
To: XWiki Users 
Subject: Re: [xwiki-users] Nested pages livetable

Hi Mahomed,

> On 07 Apr 2016, at 19:01, Mahomed Hussein  wrote:
>
> This issue has kind of bitten us as well. The table format of listing all 
> documents in a particular space is really useful (regardless of nested pages 
> or not). Sadly the spaceIndex (which I think is slightly different but 
> related to this) doesn't list the new type pages.

Yes indeed, see http://jira.xwiki.org/browse/XWIKI-13239

I’ll probably take care of it in the coming days.

Thanks
-Vincent

> Kind regards,
>
>
>
> Mahomed Hussein
> Custodian Data Centre
> Email: maho...@custodiandc.com
> http://www.CustodianDC.com
>
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of CarlJ
> Sent: 24 March 2016 11:51
> To: users@xwiki.org
> Subject: Re: [xwiki-users] Nested pages livetable
>
> Hi,
>
> I hate to bug but is there no way to display the children of a page in a
> livetable, because if there isn't I am going to have restore my wiki back to
> before I upgraded from our backup.
>
> Thanks and sorry to bug.
> - Carl

___
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] Section in include macro fails

2016-04-08 Thread Matthias Barmeier

Hi,

take look at my previous posts:

this works:

[[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]


this not:

{{include reference="Synaptic.Technik.Konfigurationsdateien.WebHome" 
section="HFSS.properties"/}}


But I tried other headings and they worked. Strange ...

I will take a closer look at the page maybe something is corrupt.
Strange is that some headings above the FSS.properties heading work and 
some below work too but some of the headings on this page does not work.


Thanks fo your help :)

Ciao
Matze


Am 08.04.2016 um 16:53 schrieb Vincent Massol:

On 08 Apr 2016, at 16:28, Matthias Barmeier  
wrote:

Hi,

this is really strange look at the error message the H is there :(

Could you provide the following info (same as what I provided in my previous 
reply):
- the content where you include the heading section
- the URL of the page containing the heading section to include
- the content of the page containing the heading section

Thanks
-Vincent


Ciao
Matze

Am 08.04.2016 um 09:36 schrieb Vincent Massol:

On 08 Apr 2016, at 09:33, Vincent Massol  wrote:



On 08 Apr 2016, at 09:29, Matthias Barmeier  
wrote:

Hi Vincent,

from my point of view the addressed item is a heading. Page and section enytry 
(Source) to include:


= Synaptic File Synchronisation Service (FSS) =

== FFS.properties ==

Then all you’re missing is the “H” ;)

Actually you do have the “H”. I’ve tested it locally and it works fine for me 
(I’m on 8.1-SNAPSHOT too).

Here’s my link:

“
[[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]

{{include reference="Synaptic.Technik.Konfigurationsdateien.WebHome" 
section="HFFS.properties"/}}
"

Here’s the URL to the page:
http://localhost:8080/xwiki/bin/view/Synaptic/Technik/Konfigurationsdateien/

Here’s the content of that page:

“
zzdz

= Synaptic File Synchronisation Service (FSS) =

== FFS.properties ==

test
"

Thanks
-Vincent


See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+Macro#HParametersdefinition

Use view source of your browser to find the anchor name (just remove the # in 
front).

Thanks
-Vincent


In dieser Datei wird der File Synchonization Service (FSS) konfiguriert. Dieser 
ist für die Datei-Donwloads und die Weiterleitung der 
Datei-Download-Benachrichtigungen an die angeschlossenen Kind-Knoten zuständig.


This is a section or is a second level heading not a section ?

Ciao
Matze


Am 08.04.2016 um 09:22 schrieb Vincent Massol:

Hi Matthias,

The reason it doesn’t work is that right now the {{include}} Macro can only 
include Heading sections. I supposed you’re using the {{id}} macro to generate 
an anchor and that is not supported by the include macro right now.

If you check the documentation for the include macro you’ll see it says that 
section is to include a … section. A section in XWiki markup is the content 
that comes just after a Heading.

Including what comes after an anchor would be very complex and there would be 
no delimitation of beginning and end.

So to make it work on your side, you need to refactor your content to use a 
heading.

Thanks
-Vincent


On 08 Apr 2016, at 08:58, Matthias Barmeier  
wrote:

Hi,

@Marius: No that does not work :(

Adding .WebHome leads to the same exception:

org.xwiki.rendering.macro.MacroExecutionException: Cannot find section 
[HFSS.properties] in document 
[produkte:Synaptic.Technik.Konfigurationsdateien.WebHome]
at 
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:197)
at 
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:55)
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:272)
at 
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)
at 
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)

Does anybody has another hint ?

I use XWiki Enterprise 8.1-milestone-1 assuming that this is a stable Version.

Ciao
   Matze

Am 07.04.2016 um 18:02 schrieb Marius Dumitru Florea:

On Thu, Apr 7, 2016 at 6:55 PM, Matthias Barmeier <
matthias.barme...@sourcepark.de> wrote:


Hi,

I try to embedd a table (in a section) from another wiki page. I 

Re: [xwiki-users] Section in include macro fails

2016-04-08 Thread Vincent Massol

> On 08 Apr 2016, at 16:28, Matthias Barmeier  
> wrote:
> 
> Hi,
> 
> this is really strange look at the error message the H is there :(

Could you provide the following info (same as what I provided in my previous 
reply):
- the content where you include the heading section
- the URL of the page containing the heading section to include
- the content of the page containing the heading section 

Thanks
-Vincent

> Ciao
>Matze
> 
> Am 08.04.2016 um 09:36 schrieb Vincent Massol:
>>> On 08 Apr 2016, at 09:33, Vincent Massol  wrote:
>>> 
>>> 
 On 08 Apr 2016, at 09:29, Matthias Barmeier 
  wrote:
 
 Hi Vincent,
 
 from my point of view the addressed item is a heading. Page and section 
 enytry (Source) to include:
 
 
 = Synaptic File Synchronisation Service (FSS) =
 
 == FFS.properties ==
>>> Then all you’re missing is the “H” ;)
>> Actually you do have the “H”. I’ve tested it locally and it works fine for 
>> me (I’m on 8.1-SNAPSHOT too).
>> 
>> Here’s my link:
>> 
>> “
>> [[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]
>> 
>> {{include reference="Synaptic.Technik.Konfigurationsdateien.WebHome" 
>> section="HFFS.properties"/}}
>> "
>> 
>> Here’s the URL to the page:
>> http://localhost:8080/xwiki/bin/view/Synaptic/Technik/Konfigurationsdateien/
>> 
>> Here’s the content of that page:
>> 
>> “
>> zzdz
>> 
>> = Synaptic File Synchronisation Service (FSS) =
>> 
>> == FFS.properties ==
>> 
>> test
>> "
>> 
>> Thanks
>> -Vincent
>> 
>>> See 
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+Macro#HParametersdefinition
>>> 
>>> Use view source of your browser to find the anchor name (just remove the # 
>>> in front).
>>> 
>>> Thanks
>>> -Vincent
>>> 
 In dieser Datei wird der File Synchonization Service (FSS) konfiguriert. 
 Dieser ist für die Datei-Donwloads und die Weiterleitung der 
 Datei-Download-Benachrichtigungen an die angeschlossenen Kind-Knoten 
 zuständig.
 
 
 This is a section or is a second level heading not a section ?
 
 Ciao
Matze
 
 
 Am 08.04.2016 um 09:22 schrieb Vincent Massol:
> Hi Matthias,
> 
> The reason it doesn’t work is that right now the {{include}} Macro can 
> only include Heading sections. I supposed you’re using the {{id}} macro 
> to generate an anchor and that is not supported by the include macro 
> right now.
> 
> If you check the documentation for the include macro you’ll see it says 
> that section is to include a … section. A section in XWiki markup is the 
> content that comes just after a Heading.
> 
> Including what comes after an anchor would be very complex and there 
> would be no delimitation of beginning and end.
> 
> So to make it work on your side, you need to refactor your content to use 
> a heading.
> 
> Thanks
> -Vincent
> 
>> On 08 Apr 2016, at 08:58, Matthias Barmeier 
>>  wrote:
>> 
>> Hi,
>> 
>> @Marius: No that does not work :(
>> 
>> Adding .WebHome leads to the same exception:
>> 
>> org.xwiki.rendering.macro.MacroExecutionException: Cannot find section 
>> [HFSS.properties] in document 
>> [produkte:Synaptic.Technik.Konfigurationsdateien.WebHome]
>>  at 
>> org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:197)
>>  at 
>> org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:55)
>>  at 
>> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:272)
>>  at 
>> org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
>>  at 
>> org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
>>  at 
>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
>>  at 
>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)
>>  at 
>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)
>>  at 
>> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
>> 
>> Does anybody has another hint ?
>> 
>> I use XWiki Enterprise 8.1-milestone-1 assuming that this is a stable 
>> Version.
>> 
>> Ciao
>>   Matze
>> 
>> Am 07.04.2016 um 18:02 schrieb Marius Dumitru Florea:
>>> On Thu, Apr 7, 2016 at 6:55 PM, Matthias Barmeier <
>>> matthias.barme...@sourcepark.de> wrote:
>>> 
 Hi,
 
 I try to embedd a table (in a 

[xwiki-users] Immediate Child Document Query

2016-04-08 Thread Personal
Per the Query Module documentation:

List of child spaces:   select 
space.name from XWikiSpace as space where space.parent = 'Parent Space’
List of all nested documents in a space:where doc.space like 'Space' or 
doc.space like 'Space.%’

The first gives me the correct spaces but I want the documents (WebHome) and 
the second gives me every single document in every space below ‘Space’. How do 
you query for just the documents in the immediate child spaces? Anything I do 
to narrow the results seems to give me no results and no error. Thanks for any 
help.

Regards,

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


Re: [xwiki-users] Section in include macro fails

2016-04-08 Thread Matthias Barmeier

Hi,

this is really strange look at the error message the H is there :(

Ciao
Matze

Am 08.04.2016 um 09:36 schrieb Vincent Massol:

On 08 Apr 2016, at 09:33, Vincent Massol  wrote:



On 08 Apr 2016, at 09:29, Matthias Barmeier  
wrote:

Hi Vincent,

from my point of view the addressed item is a heading. Page and section enytry 
(Source) to include:


= Synaptic File Synchronisation Service (FSS) =

== FFS.properties ==

Then all you’re missing is the “H” ;)

Actually you do have the “H”. I’ve tested it locally and it works fine for me 
(I’m on 8.1-SNAPSHOT too).

Here’s my link:

“
[[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]

{{include reference="Synaptic.Technik.Konfigurationsdateien.WebHome" 
section="HFFS.properties"/}}
"

Here’s the URL to the page:
http://localhost:8080/xwiki/bin/view/Synaptic/Technik/Konfigurationsdateien/

Here’s the content of that page:

“
zzdz

= Synaptic File Synchronisation Service (FSS) =

== FFS.properties ==

test
"

Thanks
-Vincent


See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+Macro#HParametersdefinition

Use view source of your browser to find the anchor name (just remove the # in 
front).

Thanks
-Vincent


In dieser Datei wird der File Synchonization Service (FSS) konfiguriert. Dieser 
ist für die Datei-Donwloads und die Weiterleitung der 
Datei-Download-Benachrichtigungen an die angeschlossenen Kind-Knoten zuständig.


This is a section or is a second level heading not a section ?

Ciao
Matze


Am 08.04.2016 um 09:22 schrieb Vincent Massol:

Hi Matthias,

The reason it doesn’t work is that right now the {{include}} Macro can only 
include Heading sections. I supposed you’re using the {{id}} macro to generate 
an anchor and that is not supported by the include macro right now.

If you check the documentation for the include macro you’ll see it says that 
section is to include a … section. A section in XWiki markup is the content 
that comes just after a Heading.

Including what comes after an anchor would be very complex and there would be 
no delimitation of beginning and end.

So to make it work on your side, you need to refactor your content to use a 
heading.

Thanks
-Vincent


On 08 Apr 2016, at 08:58, Matthias Barmeier  
wrote:

Hi,

@Marius: No that does not work :(

Adding .WebHome leads to the same exception:

org.xwiki.rendering.macro.MacroExecutionException: Cannot find section 
[HFSS.properties] in document 
[produkte:Synaptic.Technik.Konfigurationsdateien.WebHome]
at 
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:197)
at 
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:55)
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:272)
at 
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)
at 
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)

Does anybody has another hint ?

I use XWiki Enterprise 8.1-milestone-1 assuming that this is a stable Version.

Ciao
   Matze

Am 07.04.2016 um 18:02 schrieb Marius Dumitru Florea:

On Thu, Apr 7, 2016 at 6:55 PM, Matthias Barmeier <
matthias.barme...@sourcepark.de> wrote:


Hi,

I try to embedd a table (in a section) from another wiki page. I tried to
use the include macro in the following form:

{{include reference="Synaptic.Technik.Konfigurationsdateien"}}

The whole document is embedded as expected. After adding the section
attribute:


{{include reference="Synaptic.Technik.Konfigurationsdateien"
section="HFSS.properties"/}}


Try with reference="Synaptic.Technik.Konfigurationsdateien.WebHome" . Does
it work? See http://jira.xwiki.org/browse/XWIKI-13066



I get:
Failed to execute the [include] macro. Cause: [Cannot find section
[HFSS.properties] in document
[produkte:Synaptic.Technik.Konfigurationsdateien]]. Click on this message
for details.

but the document contains the necessary heading.

This link works perfect when added to the document:

[[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]


The link reference is handled a bit differently (for the moment) than the
include reference. See

Re: [xwiki-users] Nested pages livetable

2016-04-08 Thread Vincent Massol
Hi Mahomed,

> On 07 Apr 2016, at 19:01, Mahomed Hussein  wrote:
> 
> This issue has kind of bitten us as well. The table format of listing all 
> documents in a particular space is really useful (regardless of nested pages 
> or not). Sadly the spaceIndex (which I think is slightly different but 
> related to this) doesn't list the new type pages.

Yes indeed, see http://jira.xwiki.org/browse/XWIKI-13239

I’ll probably take care of it in the coming days.

Thanks
-Vincent

> Kind regards,
> 
> 
> 
> Mahomed Hussein
> Custodian Data Centre
> Email: maho...@custodiandc.com
> http://www.CustodianDC.com
> 
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of CarlJ
> Sent: 24 March 2016 11:51
> To: users@xwiki.org
> Subject: Re: [xwiki-users] Nested pages livetable
> 
> Hi,
> 
> I hate to bug but is there no way to display the children of a page in a
> livetable, because if there isn't I am going to have restore my wiki back to
> before I upgraded from our backup.
> 
> Thanks and sorry to bug.
> - Carl

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


Re: [xwiki-users] Nested pages livetable

2016-04-08 Thread Vincent Massol
Hi CarlJ,

> On 22 Mar 2016, at 13:49, CarlJ  wrote:
> 
> Hi Vincent,
> 
> Thanks for your help, that's not quite what I am looking is for something
> that would display the children of a page that could be several pages down
> 
> I hope that makes sense as I am still trying to get my head around how
> nested pages works.

I was waiting for you to comment in the jira issue to explain why what I put 
didn’t work for you.

What I suggested at http://jira.xwiki.org/browse/XWIKI-13239 would display all 
children of a page…

Thanks
-Vincent

> 
> Thanks

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


Re: [xwiki-users] Section in include macro fails

2016-04-08 Thread Vincent Massol

> On 08 Apr 2016, at 09:33, Vincent Massol  wrote:
> 
> 
>> On 08 Apr 2016, at 09:29, Matthias Barmeier 
>>  wrote:
>> 
>> Hi Vincent,
>> 
>> from my point of view the addressed item is a heading. Page and section 
>> enytry (Source) to include:
>> 
>> 
>> = Synaptic File Synchronisation Service (FSS) =
>> 
>> == FFS.properties ==
> 
> Then all you’re missing is the “H” ;)

Actually you do have the “H”. I’ve tested it locally and it works fine for me 
(I’m on 8.1-SNAPSHOT too).

Here’s my link:

“
[[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]

{{include reference="Synaptic.Technik.Konfigurationsdateien.WebHome" 
section="HFFS.properties"/}}
"

Here’s the URL to the page:
http://localhost:8080/xwiki/bin/view/Synaptic/Technik/Konfigurationsdateien/

Here’s the content of that page:

“
zzdz

= Synaptic File Synchronisation Service (FSS) =

== FFS.properties ==

test
"

Thanks
-Vincent

> See 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+Macro#HParametersdefinition
> 
> Use view source of your browser to find the anchor name (just remove the # in 
> front).
> 
> Thanks
> -Vincent
> 
>> In dieser Datei wird der File Synchonization Service (FSS) konfiguriert. 
>> Dieser ist für die Datei-Donwloads und die Weiterleitung der 
>> Datei-Download-Benachrichtigungen an die angeschlossenen Kind-Knoten 
>> zuständig.
>> 
>> 
>> This is a section or is a second level heading not a section ?
>> 
>> Ciao
>>Matze
>> 
>> 
>> Am 08.04.2016 um 09:22 schrieb Vincent Massol:
>>> Hi Matthias,
>>> 
>>> The reason it doesn’t work is that right now the {{include}} Macro can only 
>>> include Heading sections. I supposed you’re using the {{id}} macro to 
>>> generate an anchor and that is not supported by the include macro right now.
>>> 
>>> If you check the documentation for the include macro you’ll see it says 
>>> that section is to include a … section. A section in XWiki markup is the 
>>> content that comes just after a Heading.
>>> 
>>> Including what comes after an anchor would be very complex and there would 
>>> be no delimitation of beginning and end.
>>> 
>>> So to make it work on your side, you need to refactor your content to use a 
>>> heading.
>>> 
>>> Thanks
>>> -Vincent
>>> 
 On 08 Apr 2016, at 08:58, Matthias Barmeier 
  wrote:
 
 Hi,
 
 @Marius: No that does not work :(
 
 Adding .WebHome leads to the same exception:
 
 org.xwiki.rendering.macro.MacroExecutionException: Cannot find section 
 [HFSS.properties] in document 
 [produkte:Synaptic.Technik.Konfigurationsdateien.WebHome]
at 
 org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:197)
at 
 org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:55)
at 
 org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:272)
at 
 org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at 
 org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
at 
 org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
at 
 org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)
at 
 org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)
at 
 org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
 
 Does anybody has another hint ?
 
 I use XWiki Enterprise 8.1-milestone-1 assuming that this is a stable 
 Version.
 
 Ciao
   Matze
 
 Am 07.04.2016 um 18:02 schrieb Marius Dumitru Florea:
> On Thu, Apr 7, 2016 at 6:55 PM, Matthias Barmeier <
> matthias.barme...@sourcepark.de> wrote:
> 
>> Hi,
>> 
>> I try to embedd a table (in a section) from another wiki page. I tried to
>> use the include macro in the following form:
>> 
>> {{include reference="Synaptic.Technik.Konfigurationsdateien"}}
>> 
>> The whole document is embedded as expected. After adding the section
>> attribute:
>> 
>> 
>> {{include reference="Synaptic.Technik.Konfigurationsdateien"
>> section="HFSS.properties"/}}
>> 
> Try with reference="Synaptic.Technik.Konfigurationsdateien.WebHome" . Does
> it work? See http://jira.xwiki.org/browse/XWIKI-13066
> 
> 
>> I get:
>> Failed to execute the [include] macro. Cause: [Cannot find section
>> [HFSS.properties] in document
>> [produkte:Synaptic.Technik.Konfigurationsdateien]]. Click on this message
>> for details.
>> 
>> 

Re: [xwiki-users] Section in include macro fails

2016-04-08 Thread Vincent Massol

> On 08 Apr 2016, at 09:29, Matthias Barmeier  
> wrote:
> 
> Hi Vincent,
> 
> from my point of view the addressed item is a heading. Page and section 
> enytry (Source) to include:
> 
> 
> = Synaptic File Synchronisation Service (FSS) =
> 
> == FFS.properties ==

Then all you’re missing is the “H” ;)

See 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Include+Macro#HParametersdefinition

Use view source of your browser to find the anchor name (just remove the # in 
front).

Thanks
-Vincent

> In dieser Datei wird der File Synchonization Service (FSS) konfiguriert. 
> Dieser ist für die Datei-Donwloads und die Weiterleitung der 
> Datei-Download-Benachrichtigungen an die angeschlossenen Kind-Knoten 
> zuständig.
> 
> 
> This is a section or is a second level heading not a section ?
> 
> Ciao
> Matze
> 
> 
> Am 08.04.2016 um 09:22 schrieb Vincent Massol:
>> Hi Matthias,
>> 
>> The reason it doesn’t work is that right now the {{include}} Macro can only 
>> include Heading sections. I supposed you’re using the {{id}} macro to 
>> generate an anchor and that is not supported by the include macro right now.
>> 
>> If you check the documentation for the include macro you’ll see it says that 
>> section is to include a … section. A section in XWiki markup is the content 
>> that comes just after a Heading.
>> 
>> Including what comes after an anchor would be very complex and there would 
>> be no delimitation of beginning and end.
>> 
>> So to make it work on your side, you need to refactor your content to use a 
>> heading.
>> 
>> Thanks
>> -Vincent
>> 
>>> On 08 Apr 2016, at 08:58, Matthias Barmeier 
>>>  wrote:
>>> 
>>> Hi,
>>> 
>>> @Marius: No that does not work :(
>>> 
>>> Adding .WebHome leads to the same exception:
>>> 
>>> org.xwiki.rendering.macro.MacroExecutionException: Cannot find section 
>>> [HFSS.properties] in document 
>>> [produkte:Synaptic.Technik.Konfigurationsdateien.WebHome]
>>> at 
>>> org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:197)
>>> at 
>>> org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:55)
>>> at 
>>> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:272)
>>> at 
>>> org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
>>> at 
>>> org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
>>> at 
>>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
>>> at 
>>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)
>>> at 
>>> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)
>>> at 
>>> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
>>> 
>>> Does anybody has another hint ?
>>> 
>>> I use XWiki Enterprise 8.1-milestone-1 assuming that this is a stable 
>>> Version.
>>> 
>>> Ciao
>>>Matze
>>> 
>>> Am 07.04.2016 um 18:02 schrieb Marius Dumitru Florea:
 On Thu, Apr 7, 2016 at 6:55 PM, Matthias Barmeier <
 matthias.barme...@sourcepark.de> wrote:
 
> Hi,
> 
> I try to embedd a table (in a section) from another wiki page. I tried to
> use the include macro in the following form:
> 
> {{include reference="Synaptic.Technik.Konfigurationsdateien"}}
> 
> The whole document is embedded as expected. After adding the section
> attribute:
> 
> 
> {{include reference="Synaptic.Technik.Konfigurationsdateien"
> section="HFSS.properties"/}}
> 
 Try with reference="Synaptic.Technik.Konfigurationsdateien.WebHome" . Does
 it work? See http://jira.xwiki.org/browse/XWIKI-13066
 
 
> I get:
> Failed to execute the [include] macro. Cause: [Cannot find section
> [HFSS.properties] in document
> [produkte:Synaptic.Technik.Konfigurationsdateien]]. Click on this message
> for details.
> 
> but the document contains the necessary heading.
> 
> This link works perfect when added to the document:
> 
> [[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]
> 
 The link reference is handled a bit differently (for the moment) than the
 include reference. See
 http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki80#HLinksyntaximprovementsforNestedPages
 
 Hope this helps,
 Marius
 
 
> Can any body give me a hint what is wrong ?
> 
> Thanks.
> 
> Ciao
> 
>  Matthias
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Section in include macro fails

2016-04-08 Thread Matthias Barmeier

Hi Vincent,

from my point of view the addressed item is a heading. Page and section 
enytry (Source) to include:



= Synaptic File Synchronisation Service (FSS) =

== FFS.properties ==

In dieser Datei wird der File Synchonization Service (FSS) konfiguriert. 
Dieser ist für die Datei-Donwloads und die Weiterleitung der 
Datei-Download-Benachrichtigungen an die angeschlossenen Kind-Knoten 
zuständig.



This is a section or is a second level heading not a section ?

Ciao
 Matze


Am 08.04.2016 um 09:22 schrieb Vincent Massol:

Hi Matthias,

The reason it doesn’t work is that right now the {{include}} Macro can only 
include Heading sections. I supposed you’re using the {{id}} macro to generate 
an anchor and that is not supported by the include macro right now.

If you check the documentation for the include macro you’ll see it says that 
section is to include a … section. A section in XWiki markup is the content 
that comes just after a Heading.

Including what comes after an anchor would be very complex and there would be 
no delimitation of beginning and end.

So to make it work on your side, you need to refactor your content to use a 
heading.

Thanks
-Vincent


On 08 Apr 2016, at 08:58, Matthias Barmeier  
wrote:

Hi,

@Marius: No that does not work :(

Adding .WebHome leads to the same exception:

org.xwiki.rendering.macro.MacroExecutionException: Cannot find section 
[HFSS.properties] in document 
[produkte:Synaptic.Technik.Konfigurationsdateien.WebHome]
at 
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:197)
at 
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:55)
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:272)
at 
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)
at 
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)

Does anybody has another hint ?

I use XWiki Enterprise 8.1-milestone-1 assuming that this is a stable Version.

Ciao
Matze

Am 07.04.2016 um 18:02 schrieb Marius Dumitru Florea:

On Thu, Apr 7, 2016 at 6:55 PM, Matthias Barmeier <
matthias.barme...@sourcepark.de> wrote:


Hi,

I try to embedd a table (in a section) from another wiki page. I tried to
use the include macro in the following form:

{{include reference="Synaptic.Technik.Konfigurationsdateien"}}

The whole document is embedded as expected. After adding the section
attribute:


{{include reference="Synaptic.Technik.Konfigurationsdateien"
section="HFSS.properties"/}}


Try with reference="Synaptic.Technik.Konfigurationsdateien.WebHome" . Does
it work? See http://jira.xwiki.org/browse/XWIKI-13066



I get:
Failed to execute the [include] macro. Cause: [Cannot find section
[HFSS.properties] in document
[produkte:Synaptic.Technik.Konfigurationsdateien]]. Click on this message
for details.

but the document contains the necessary heading.

This link works perfect when added to the document:

[[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]


The link reference is handled a bit differently (for the moment) than the
include reference. See
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki80#HLinksyntaximprovementsforNestedPages

Hope this helps,
Marius



Can any body give me a hint what is wrong ?

Thanks.

Ciao

  Matthias
___
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

--
---
SOURCEPARK GmbH

Dipl.-Inform. Matthias Barmeier
Geschäftsführer

Partner der Allianz für Cyber-Sicherheit
des Bundesamtes für Sicherheit in der
Informationstechnik (BSI)

Hohenzollerndamm 150
14199 Berlin

Tel:+49 (0)30/398 068 30
Fax:+49 (0)30/398 068 39
e-mail: matthias.barme...@sourcepark.de
WWW:www.sourcepark.de
---
Sitz der Gesellschaft: Berlin
Handelsregister: Amtsgericht Berlin-Charlottenburg, HRB 80254
Geschäftsführer: Matthias Barmeier, Harald Dürr
---

Wichtiger Hinweis: Die vorgenannten Angaben werden jeder
E-Mail automatisch hinzugefügt und lassen keine Rückschlüsse
auf den 

Re: [xwiki-users] Section in include macro fails

2016-04-08 Thread Vincent Massol
Hi Matthias,

The reason it doesn’t work is that right now the {{include}} Macro can only 
include Heading sections. I supposed you’re using the {{id}} macro to generate 
an anchor and that is not supported by the include macro right now.

If you check the documentation for the include macro you’ll see it says that 
section is to include a … section. A section in XWiki markup is the content 
that comes just after a Heading.

Including what comes after an anchor would be very complex and there would be 
no delimitation of beginning and end.

So to make it work on your side, you need to refactor your content to use a 
heading.

Thanks
-Vincent

> On 08 Apr 2016, at 08:58, Matthias Barmeier  
> wrote:
> 
> Hi,
> 
> @Marius: No that does not work :(
> 
> Adding .WebHome leads to the same exception:
> 
> org.xwiki.rendering.macro.MacroExecutionException: Cannot find section 
> [HFSS.properties] in document 
> [produkte:Synaptic.Technik.Konfigurationsdateien.WebHome]
>   at 
> org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:197)
>   at 
> org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:55)
>   at 
> org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:272)
>   at 
> org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
>   at 
> org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
>   at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
>   at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)
>   at 
> org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)
>   at 
> org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
> 
> Does anybody has another hint ?
> 
> I use XWiki Enterprise 8.1-milestone-1 assuming that this is a stable Version.
> 
> Ciao
>Matze
> 
> Am 07.04.2016 um 18:02 schrieb Marius Dumitru Florea:
>> On Thu, Apr 7, 2016 at 6:55 PM, Matthias Barmeier <
>> matthias.barme...@sourcepark.de> wrote:
>> 
>>> Hi,
>>> 
>>> I try to embedd a table (in a section) from another wiki page. I tried to
>>> use the include macro in the following form:
>>> 
>>> {{include reference="Synaptic.Technik.Konfigurationsdateien"}}
>>> 
>>> The whole document is embedded as expected. After adding the section
>>> attribute:
>>> 
>>> 
>>> {{include reference="Synaptic.Technik.Konfigurationsdateien"
>>> section="HFSS.properties"/}}
>>> 
>> Try with reference="Synaptic.Technik.Konfigurationsdateien.WebHome" . Does
>> it work? See http://jira.xwiki.org/browse/XWIKI-13066
>> 
>> 
>>> I get:
>>> Failed to execute the [include] macro. Cause: [Cannot find section
>>> [HFSS.properties] in document
>>> [produkte:Synaptic.Technik.Konfigurationsdateien]]. Click on this message
>>> for details.
>>> 
>>> but the document contains the necessary heading.
>>> 
>>> This link works perfect when added to the document:
>>> 
>> 
>>> [[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]
>>> 
>> The link reference is handled a bit differently (for the moment) than the
>> include reference. See
>> http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki80#HLinksyntaximprovementsforNestedPages
>> 
>> Hope this helps,
>> Marius
>> 
>> 
>>> Can any body give me a hint what is wrong ?
>>> 
>>> Thanks.
>>> 
>>> Ciao
>>> 
>>>  Matthias
>>> ___
>>> 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
> 
> -- 
> ---
> SOURCEPARK GmbH
> 
> Dipl.-Inform. Matthias Barmeier
> Geschäftsführer
> 
> Partner der Allianz für Cyber-Sicherheit
> des Bundesamtes für Sicherheit in der
> Informationstechnik (BSI)
> 
> Hohenzollerndamm 150
> 14199 Berlin
> 
> Tel:+49 (0)30/398 068 30
> Fax:+49 (0)30/398 068 39
> e-mail: matthias.barme...@sourcepark.de
> WWW:www.sourcepark.de
> ---
> Sitz der Gesellschaft: Berlin
> Handelsregister: Amtsgericht Berlin-Charlottenburg, HRB 80254
> Geschäftsführer: Matthias Barmeier, Harald Dürr
> ---
> 
> Wichtiger Hinweis: Die vorgenannten Angaben werden jeder
> E-Mail automatisch hinzugefügt und lassen keine Rückschlüsse
> auf den Rechtscharakter der E-Mail zu.
> 
> Diese E-Mail kann vertrauliche und/oder rechtlich geschützte
> Informationen enthalten. Wenn Sie nicht der richtige Adressat
> sind oder diese E-Mail irrtümlich erhalten haben, 

Re: [xwiki-users] Section in include macro fails

2016-04-08 Thread Matthias Barmeier

Hi,

@Marius: No that does not work :(

Adding .WebHome leads to the same exception:

org.xwiki.rendering.macro.MacroExecutionException: Cannot find section 
[HFSS.properties] in document 
[produkte:Synaptic.Technik.Konfigurationsdateien.WebHome]
at 
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:197)
at 
org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:55)
at 
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:272)
at 
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at 
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:95)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:263)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:133)
at 
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:58)
at 
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)

Does anybody has another hint ?

I use XWiki Enterprise 8.1-milestone-1 assuming that this is a stable 
Version.


Ciao
Matze

Am 07.04.2016 um 18:02 schrieb Marius Dumitru Florea:

On Thu, Apr 7, 2016 at 6:55 PM, Matthias Barmeier <
matthias.barme...@sourcepark.de> wrote:


Hi,

I try to embedd a table (in a section) from another wiki page. I tried to
use the include macro in the following form:

{{include reference="Synaptic.Technik.Konfigurationsdateien"}}

The whole document is embedded as expected. After adding the section
attribute:


{{include reference="Synaptic.Technik.Konfigurationsdateien"
section="HFSS.properties"/}}


Try with reference="Synaptic.Technik.Konfigurationsdateien.WebHome" . Does
it work? See http://jira.xwiki.org/browse/XWIKI-13066



I get:
Failed to execute the [include] macro. Cause: [Cannot find section
[HFSS.properties] in document
[produkte:Synaptic.Technik.Konfigurationsdateien]]. Click on this message
for details.

but the document contains the necessary heading.

This link works perfect when added to the document:




[[/etc/smd/config/FSS.properties>>Synaptic.Technik.Konfigurationsdateien||anchor="HFFS.properties"]]


The link reference is handled a bit differently (for the moment) than the
include reference. See
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki80#HLinksyntaximprovementsforNestedPages

Hope this helps,
Marius



Can any body give me a hint what is wrong ?

Thanks.

Ciao

  Matthias
___
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


--
---
SOURCEPARK GmbH

Dipl.-Inform. Matthias Barmeier
Geschäftsführer

Partner der Allianz für Cyber-Sicherheit
des Bundesamtes für Sicherheit in der
Informationstechnik (BSI)

Hohenzollerndamm 150
14199 Berlin

Tel:+49 (0)30/398 068 30
Fax:+49 (0)30/398 068 39
e-mail: matthias.barme...@sourcepark.de
WWW:www.sourcepark.de
---
Sitz der Gesellschaft: Berlin
Handelsregister: Amtsgericht Berlin-Charlottenburg, HRB 80254
Geschäftsführer: Matthias Barmeier, Harald Dürr
---

Wichtiger Hinweis: Die vorgenannten Angaben werden jeder
E-Mail automatisch hinzugefügt und lassen keine Rückschlüsse
auf den Rechtscharakter der E-Mail zu.

Diese E-Mail kann vertrauliche und/oder rechtlich geschützte
Informationen enthalten. Wenn Sie nicht der richtige Adressat
sind oder diese E-Mail irrtümlich erhalten haben, informieren
Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe
dieser E-Mail ist nicht gestattet.

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