Re: [xwiki-users] Display macro

2016-10-07 Thread Gerritjan Koekkoek
Hi Vincent,


I must admit the extension Include-macro en Display-macro documentation does 
not contain any suggestion that it does not work.


I posted my question as I'm very sure I came across this statement that it 
would not work in some doc I found via google search ... when I come across it 
again I will notify you...


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email




From: users  on behalf of Vincent Massol 

Sent: 07 October 2016 09:53:03
To: XWiki Users
Subject: Re: [xwiki-users] Display macro


> On 07 Oct 2016, at 09:48, Gerritjan Koekkoek  wrote:
>
> When in Velocity generating HTML
>
> {{velocity}}
>
> {{html}}
>
> #foreaech()
>
>  #if(display instead of include is required)
>
>{{display reference ='page that only works when using display'/}}
>
>  #else
>
>#includeInContext(page that does not require display)
>
>  #end
>
> {{/html}}
>
> {{/velocity}}
>
>
> What is the velocity macro (or code snippet) to make it work?
>
>
> As documented the {{display}} or {{include}} does not work from within the 
> velocity and/or html macro.

They do work. Where did you see that in the doc? Could you give the link so 
that we fix it?

Thanks
-Vincent


> Documentation could maybe be improved by adding what to do when this calling 
> from within Velocity/html is required
>
>
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
>
>

___
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] Migrated my xwiki from 4.2 to 8.2.1 getting blank page on access

2016-10-07 Thread Thomas Mortagne
Whatever is in your solr index it won't cause a block page anyway. Do
you have anything else in your log ?

On Thu, Oct 6, 2016 at 8:28 PM, Kumar, Piyush  wrote:
> Hi ,
>
> Then what can be the cause of blank page if index deletion is not the issue 
> currently?
>
> Thanks ,
> Piyush
>
> -Original Message-
> From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne
> Sent: Thursday, October 06, 2016 8:58 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] Migrated my xwiki from 4.2 to 8.2.1 getting blank 
> page on access
>
> I was about to answer the same things but the log contains:
>
> 2016-10-06 11:01:17,007 [coreLoadExecutor-6-thread-1] WARN
> o.a.s.c.SolrCore   - [xwiki] Solr index directory
> '/MIDDLE/kazan-services/xwiki.kazan.priv.atos.fr/permanentdirectory/solr/xwiki/data/index'
> doesn't exist. Creating new index...
>
> On Thu, Oct 6, 2016 at 5:21 PM, Vincent Massol  wrote:
>> Hi,
>>
>> Please remove the solr index files and restart XWiki.
>>
>> Note: We need to add this info on
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Upgrade
>>
>> Thanks
>> -Vincent
>>
>>> On 06 Oct 2016, at 17:16, Kumar, Piyush  wrote:
>>>
>>> Hi All,
>>>
>>> I migrated my Xwiki from version 4.2 to 8.2.1 and I am getting blank page 
>>> while accessing http://localhost/xwiki  the app.
>>>
>>> In my tomcat I am getting below logs:
>>>
>>> [ServiceTools] Starting tomcat : Thu Oct  6 10:59:57 2016 Using
>>> classpath:
>>> :/usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/commons-
>>> daemon.jar:/usr/local/tomcat7/bin/tomcat-juli.jar:/usr/local/tomcat7/
>>> common/lib/*.jar:/usr/local/tomcat7/lib/annotations-api.jar:/usr/loca
>>> l/tomcat7/lib/catalina-ant.jar:/usr/local/tomcat7/lib/catalina-ha.jar
>>> :/usr/local/tomcat7/lib/catalina.jar:/usr/local/tomcat7/lib/catalina-
>>> tribes.jar:/usr/local/tomcat7/lib/ecj-4.2.1.jar:/usr/local/tomcat7/li
>>> b/el-api.jar:/usr/local/tomcat7/lib/jasper-el.jar:/usr/local/tomcat7/
>>> lib/jasper.jar:/usr/local/tomcat7/lib/jsp-api.jar:/usr/local/tomcat7/
>>> lib/servlet-api.jar:/usr/local/tomcat7/lib/tomcat-api.jar:/usr/local/
>>> tomcat7/lib/tomcat-coyote.jar:/usr/local/tomcat7/lib/tomcat-dbcp.jar:
>>> /usr/local/tomcat7/lib/tomcat-i18n-es.jar:/usr/local/tomcat7/lib/tomc
>>> at-i18n-fr.jar:/usr/local/tomcat7/lib/tomcat-i18n-ja.jar:/usr/local/t
>>> omcat7/lib/tomcat-jdbc.jar:/usr/local/tomcat7/lib/tomcat-util.jar:/us
>>> r/local/tomcat7/server/lib/*.jar:/usr/java/jdk-1.7/lib/tools.jar:/usr
>>> /local/tomca
>  t
>>  7/
>>> bin/bootstrap.jar::
>>> 2016-10-06 11:01:12,724 [localhost-startStop-1] INFO  
>>> o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
>>> 2016-10-06 11:01:12,777 [localhost-startStop-1] INFO  
>>> o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory: 
>>> [/MIDDLE/kazan-services/xwiki.kazan.priv.atos.fr/permanentdirectory/solr]
>>> 2016-10-06 11:01:17,007 [coreLoadExecutor-6-thread-1] WARN  
>>> o.a.s.c.SolrCore   - [xwiki] Solr index directory 
>>> '/MIDDLE/kazan-services/xwiki.kazan.priv.atos.fr/permanentdirectory/solr/xwiki/data/index'
>>>  doesn't exist. Creating new index...
>>> 2016-10-06 11:01:17,932 [localhost-startStop-1] INFO  
>>> o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
>>> 2016-10-06 11:01:34,375 [localhost-startStop-1] WARN  o.i.j.ResourceDMBean  
>>>  - ISPN42: Did not find queried attribute with name coreHashCode
>>> 2016-10-06 11:01:34,376 [localhost-startStop-1] WARN  o.i.j.ResourceDMBean  
>>>  - ISPN42: Did not find queried attribute with name coreHashCode
>>> 2016-10-06 11:01:34,376 [localhost-startStop-1] WARN  o.i.j.ResourceDMBean  
>>>  - ISPN42: Did not find queried attribute with name coreHashCode
>>> 2016-10-06 11:01:34,376 [localhost-startStop-1] WARN  o.i.j.ResourceDMBean  
>>>  - ISPN42: Did not find queried attribute with name coreHashCode
>>> 2016-10-06 11:01:34,376 [localhost-startStop-1] WARN  o.i.j.ResourceDMBean  
>>>  - ISPN42: Did not find queried attribute with name coreHashCode
>>> 2016-10-06 11:01:34,376 [localhost-startStop-1] WARN  o.i.j.ResourceDMBean  
>>>  - ISPN42: Did not find queried attribute with name coreHashCode
>>> 2016-10-06 11:01:34,380 [localhost-startStop-1] WARN  o.i.j.ResourceDMBean  
>>>  - ISPN42: Did not find queried attribute with name coreHashCode
>>> 2016-10-06 11:01:34,381 [localhost-startStop-1] WARN  o.i.j.ResourceDMBean  
>>>  - ISPN42: Did not find queried attribute with name coreHashCode
>>> 2016-10-06 11:01:34,382 [localhost-startStop-1] WARN  o.i.j.ResourceDMBean  
>>>  - ISPN42: Did not find queried attribute with name coreHashCode
>>> 2016-10-06 11:01:34,382 [localhost-startStop-1] WARN  o.i.j.ResourceDMBean  
>>>  - ISPN42: Did not find queried attribute with name coreHashCode
>>> 2016-10-06 11:01:34,382 

Re: [xwiki-users] Display macro

2016-10-07 Thread Vincent Massol

> On 07 Oct 2016, at 09:48, Gerritjan Koekkoek  wrote:
> 
> When in Velocity generating HTML
> 
> {{velocity}}
> 
> {{html}}
> 
> #foreaech()
> 
>  #if(display instead of include is required)
> 
>{{display reference ='page that only works when using display'/}}
> 
>  #else
> 
>#includeInContext(page that does not require display)
> 
>  #end
> 
> {{/html}}
> 
> {{/velocity}}
> 
> 
> What is the velocity macro (or code snippet) to make it work?
> 
> 
> As documented the {{display}} or {{include}} does not work from within the 
> velocity and/or html macro.

They do work. Where did you see that in the doc? Could you give the link so 
that we fix it?

Thanks
-Vincent


> Documentation could maybe be improved by adding what to do when this calling 
> from within Velocity/html is required
> 
> 
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
> 
> 

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


Re: [xwiki-users] Display macro

2016-10-07 Thread Gerritjan Koekkoek
Thanks Thomas,


But the code in the example is just to show the outline...

Believe me: I need HTML around the foreach loop to set enclosing div's and 
jquery and/or bootstrap classes


But your help was great; including the  wiki="true" parameter in the html macro 
makes the display work fine...


Thanks


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email




From: users  on behalf of Thomas Mortagne 

Sent: 07 October 2016 09:56:40
To: XWiki Users
Subject: Re: [xwiki-users] Display macro

On Fri, Oct 7, 2016 at 9:48 AM, Gerritjan Koekkoek
 wrote:
> When in Velocity generating HTML
>
> {{velocity}}
>
> {{html}}
>
> #foreaech()
>
>   #if(display instead of include is required)
>
> {{display reference ='page that only works when using display'/}}
>
>   #else
>
> #includeInContext(page that does not require display)
>
>   #end
>
> {{/html}}
>
> {{/velocity}}
>
>
> What is the velocity macro (or code snippet) to make it work?
>
>
> As documented the {{display}} or {{include}} does not work from within the 
> velocity and/or html macro. Documentation could maybe be improved by adding 
> what to do when this calling from within Velocity/html is required

Using {{display}} or {{include}} works well in Velocity. But html
macro disable wiki syntax by default and those are wiki syntax (see
http://extensions.xwiki.org/xwiki/bin/view/Extension/HTML+Macro#HParametersdefinition).

That said there is no reason to use html in the example you are giving
(use {{include}} instead of #includeInContex).

>
>
> Gerritjan Koekkoek
> Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
> Visit our website
> Facebook
> email
>
>
>
> ___
> 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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] SteveWilcoxJr new wiki request

2016-10-07 Thread Thomas Mortagne
You can access your new wiki on http://stevewilcox.myxwiki.org.

Enjoy !

On Thu, Oct 6, 2016 at 9:49 PM, Steve Wilcox  wrote:
> Hello XWiki Team,
>
> Would you please create a personal wiki for me on the farm?
>
> Here is my information:
>
> *Description:*  After using the xwiki software, I'd like to have a personal
> wiki to keep track of notes, schedules, meetings, and book reviews.
>
> *Owner Name: *SteveWilcoxJr
>
> *Wiki Name: *SteveWilcox.myxwiki.org
>
> Thank you for the help,
>
> Steve Wilcox
>
> E- stevewilco...@gmail.com
>
> P- (+001) 801.707.
> ___
> 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


[xwiki-users] Display macro

2016-10-07 Thread Gerritjan Koekkoek
When in Velocity generating HTML

{{velocity}}

{{html}}

#foreaech()

  #if(display instead of include is required)

{{display reference ='page that only works when using display'/}}

  #else

#includeInContext(page that does not require display)

  #end

{{/html}}

{{/velocity}}


What is the velocity macro (or code snippet) to make it work?


As documented the {{display}} or {{include}} does not work from within the 
velocity and/or html macro. Documentation could maybe be improved by adding 
what to do when this calling from within Velocity/html is required


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email



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