Categories > OpenTBS with ODT >

Deleting several paragraphs

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Victor
Date: 2015-05-17
Time: 18:48

Deleting several paragraphs


I have a long text into a .odt file and I wish that a few paragraphs be hidden/shown depending on the value of a variable received by POST.
I thought I could make it using this command in each paragraph "[onload; block = tbs: p; When [var.x_delete] = 0]" but replacing the "x_delete" by my variables.

Ocurs that it does not work, does anyone have a suggestion on how I can do this?

At first I thought in keeping the content of paragraphs within the PHP variables or a database, occurs that the text has parts in bold, italics and different colors, so I imagine that it is easier to hide paragraphs than sending such formatting.
By: Skrol29
Date: 2015-05-18
Time: 10:13

Re: Deleting several paragraphs

Hi Victor,

You can define a conditional block over several paragraphs using the symbol "+".
[onload;block=tbs:p+tbs:p+tbs:p;when [var.x_delete]=0]