includeTopic issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

includeTopic issue

Yves Langisch
Hi,

I try to display a document inlined of another one:

snippet from my CountryClassSheet:


<table border="1" cellspacing="0" cellpadding="2">
#foreach($prop in $class.properties)
<tr>
    <td> *${prop.prettyName}* </td>
    #if ($prop.name == "region")
      <td>
        #includeTopic("YlaTst.Sicilia")
      </td>
    #else
      <td>$doc.display($prop.getName())</td>
    #end
</tr>
#end

The problem is that the including document itself is included instead  
of the YlaTst.Sicilia document ! It's inlined only once without  
recursion.

What's wrong here?

Yves



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: includeTopic issue

Yves Langisch
when I replace  #includeTopic("YlaTst.Sicilia") by $xwiki.getDocument
("YlaTst.Sicilia").getRenderedContent() I get the same result?!?

Any help appreciated...Yves

On 22.09.2005, at 23:50, Yves Langisch wrote:

> Hi,
>
> I try to display a document inlined of another one:
>
> snippet from my CountryClassSheet:
>
>
> <table border="1" cellspacing="0" cellpadding="2">
> #foreach($prop in $class.properties)
> <tr>
>    <td> *${prop.prettyName}* </td>
>    #if ($prop.name == "region")
>      <td>
>        #includeTopic("YlaTst.Sicilia")
>      </td>
>    #else
>      <td>$doc.display($prop.getName())</td>
>    #end
> </tr>
> #end
>
> The problem is that the including document itself is included  
> instead of the YlaTst.Sicilia document ! It's inlined only once  
> without recursion.
>
> What's wrong here?
>
> Yves
>
>
> --
> You receive this message as a subscriber of the xwiki-
> [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/ 
> wws
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: includeTopic issue

Yves Langisch
The problem seems to be that the included document has an includeForm  
statement again. When I try to include a doc without further includes  
it works.

How can this be solved?

On 22.09.2005, at 23:59, Yves Langisch wrote:

> when I replace  #includeTopic("YlaTst.Sicilia") by  
> $xwiki.getDocument("YlaTst.Sicilia").getRenderedContent() I get the  
> same result?!?
>
> Any help appreciated...Yves
>
> On 22.09.2005, at 23:50, Yves Langisch wrote:
>
>
>> Hi,
>>
>> I try to display a document inlined of another one:
>>
>> snippet from my CountryClassSheet:
>>
>>
>> <table border="1" cellspacing="0" cellpadding="2">
>> #foreach($prop in $class.properties)
>> <tr>
>>    <td> *${prop.prettyName}* </td>
>>    #if ($prop.name == "region")
>>      <td>
>>        #includeTopic("YlaTst.Sicilia")
>>      </td>
>>    #else
>>      <td>$doc.display($prop.getName())</td>
>>    #end
>> </tr>
>> #end
>>
>> The problem is that the including document itself is included  
>> instead of the YlaTst.Sicilia document ! It's inlined only once  
>> without recursion.
>>
>> What's wrong here?
>>
>> Yves
>>
>>
>> --
>> You receive this message as a subscriber of the xwiki-
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://
>> www.objectweb.org/wws
>>
>>
>
>
>
> --
> You receive this message as a subscriber of the xwiki-
> [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/ 
> wws
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: includeTopic issue

Ludovic Dubost

Hi Yves,

It's not clear to me what result you are actually getting and what you
expect.. What do you have in your Sicilia document..
Recursive includes can indeed have unexpected results when you mix Forms
and Topic includes..

Ludovic

Yves Langisch wrote:

> The problem seems to be that the included document has an includeForm
> statement again. When I try to include a doc without further includes
> it works.
>
> How can this be solved?
>
> On 22.09.2005, at 23:59, Yves Langisch wrote:
>
>> when I replace  #includeTopic("YlaTst.Sicilia") by
>> $xwiki.getDocument("YlaTst.Sicilia").getRenderedContent() I get the
>> same result?!?
>>
>> Any help appreciated...Yves
>>
>> On 22.09.2005, at 23:50, Yves Langisch wrote:
>>
>>
>>> Hi,
>>>
>>> I try to display a document inlined of another one:
>>>
>>> snippet from my CountryClassSheet:
>>>
>>>
>>> <table border="1" cellspacing="0" cellpadding="2">
>>> #foreach($prop in $class.properties)
>>> <tr>
>>>    <td> *${prop.prettyName}* </td>
>>>    #if ($prop.name == "region")
>>>      <td>
>>>        #includeTopic("YlaTst.Sicilia")
>>>      </td>
>>>    #else
>>>      <td>$doc.display($prop.getName())</td>
>>>    #end
>>> </tr>
>>> #end
>>>
>>> The problem is that the including document itself is included
>>> instead of the YlaTst.Sicilia document ! It's inlined only once
>>> without recursion.
>>>
>>> What's wrong here?
>>>
>>> Yves
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the
>>> [hidden email] mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>
>>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the
>> [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  

--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws