On Thu, Aug 26, 2010 at 11:15 AM, Luiz Marcelo Serique <
[email protected]> wrote:
> On Thu, Aug 26, 2010 at 3:55 AM, Marius Dumitru Florea
> <[email protected]> wrote:
>> On 08/25/2010 10:05 PM, Luiz Marcelo Serique wrote:
>>> On Wed, Aug 25, 2010 at 3:34 PM, Guillaume Lerouge<[email protected]>
 wrote:
>>>> Hi,
>>>>
>>>> On Wed, Aug 25, 2010 at 20:25, Luiz Marcelo Serique<
>>>> [email protected]>  wrote:
>>>>
>>>>> On Wed, Aug 25, 2010 at 12:07 PM, Guillaume Lerouge<
[email protected]>
>>>>> wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> On Wed, Aug 25, 2010 at 16:22, Luiz Marcelo Serique<
>>>>>> [email protected]>  wrote:
>>>>>>
>>>>>>> Hu guys,
>>>>>>>
>>>>>>> there is any way to supress content parts from the pdf report?
>>>>>>>
>>>>>>> Here is the problem:
>>>>>>>
>>>>>>> Most of pages have a toc macro with this code
>>>>>>>
>>>>>>> {{box cssClass="floatinginfobox"}}
>>>>>>> {{toc depth="3"/}}
>>>>>>> {{/box}}
>>>>>>>
>>>>>>> As we know, the pdf report also puts a toc page.
>>>>>>>
>>>>>>> My reports are getting two tocs, one from report and one from
content.
>>>>>>>
>>>>>>> But i do not want to remove de pdf toc because some wiki pages do
not
>>>>> have
>>>>>>> the content toc.
>>>>>>>
>>>>>>> There is a way to supress the content toc from appearing in the pdf
>>>>> report?
>>>>>>>
>>>>>>
>>>>>> {{velocity}}
>>>>>> #if($context.action != 'export')
>>>>>> your stuff here
>>>>>> #end
>>>>>> {{/velocity}}
>>>>>>
>>>>>> Guillaume
>>>>>
>>>>> Nice Guillaume,
>>>>>
>>>>> there is a way to nest the toc macro inside a new macro?
>>>>>
>>>>> I am trying to create a macro with all this code inside, inclusive the
>>>>> {{toc}}, just to facilitate, but the toc is not rendered.
>>>>>
>>>>
>>>> Try with {{velocity wiki="true"}}
>>>>
>>>> Guillaume
>>>
>>> Sill not working.
>>>
>>> I have also tried to leave the {{toc}} out of the new macro and use it
>>> as the content of the new macro, but not worked too.
>>>
>>> I thinking that it is something about rendering context... that is not
>>> possible to determine the headings when the toc is nested in a macro
>>> or as a content of a macro.
>>
>> Indeed, Guillaume's snippet works when you put it directly in the page
>> content but if you create a wiki macro with the same snippet as its
>> content it doesn't work anymore. Same happens if you leave only the toc
>> macro as the content of the new wiki macro. This looks like a bug to me.
>> Can you report it on jira.xwiki.org?
>>
>> Thanks,
>> Marius
>
> Reported in http://jira.xwiki.org/jira/browse/XWIKI-5435.

Thomas,

thank you for the bug fix.

Now I am wondering wich one is the better approach to patch my xwiki
instance:

1) Apply the patch direct to the affected classes in my xwiki 2.3.2 and
rebuild the rendering module.

2) Upgrade my xwiki to 2.4 and apply the patch on it.

Thanks for the help.

>
> Thank you.
>
>>
>>>
>>>>
>>>> Marcelo
>>>>>
>>>>>>
>>>>>> thanks
>>>>>>>
>>>>>>> --
>>>>>>> L. Marcelo Serique
>>>>>>> _______________________________________________
>>>>>>> devs mailing list
>>>>>>> [email protected]
>>>>>>> http://lists.xwiki.org/mailman/listinfo/devs
>>>>>> _______________________________________________
>>>>>> devs mailing list
>>>>>> [email protected]
>>>>>> http://lists.xwiki.org/mailman/listinfo/devs
>>>>> _______________________________________________
>>>>> devs mailing list
>>>>> [email protected]
>>>>> http://lists.xwiki.org/mailman/listinfo/devs
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Guillaume Lerouge
>>>> Sales - XWiki SAS
>>>> Skype: wikibc
>>>> Office: +33 1 45 42 40 90
>>>> Mobile: +33 6 10 79 76 70
>>>> _______________________________________________
>>>> devs mailing list
>>>> [email protected]
>>>> http://lists.xwiki.org/mailman/listinfo/devs
>>>>
>>> _______________________________________________
>>> devs mailing list
>>> [email protected]
>>> http://lists.xwiki.org/mailman/listinfo/devs
>> _______________________________________________
>> devs mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to