Skip to content
This repository was archived by the owner on Jan 14, 2020. It is now read-only.

Modifiers

bkulyk edited this page Oct 5, 2010 · 2 revisions

Modifiers

modifiers are a part of the tokens (to be found and replaced) that tell the document how it should display the token. For example multiparagraph tells the document that the value of the tag should allow for line breaks.

multiparagraph

If the value of the replacement contains a string that contains HTML style paragraph tags, these tags are converted to OOo style paragraphs. Note: currently all other HTML is ignored.

example:

  <p>firtparagraph</p>
  <p>second paragraph can be on same line or next</p><p>it shouldn't matter</p>

if

If the value contains an integer of 1 then everything between the if modifier and the endif modifier is printed, otherwise nothing is printed.

endif

The end point for closing the if modifier. Does nothing on it's own.

repeatrow

If the value passed in is an array, and the the repeatrow modifier is found in a table cell then the entire row that the cell is inside of is duplicated (n) times. Where (n) is the number of items in the value array

repeatcolumn

If the value passed in is an array, and the the repeatrow modifier is found in a table cell then the entire column that the table is duplicated (n) times. Where (n) is the number of items in the value array

repeatsection

Repeat the content between the repeatsection and endrepeatsection modifiers as many times as indicated by the value, which should be an integer

endrepeatsection

The end point for the section being repeated

image

This modifier is for replacing the contents of an image. A good example for this could be a product where you are creating invoices on behalf of multiple companies and you need to be able to put a specific company's logo at the top of the document without having to change the document it's self. The value should be a string containin the contents of the image base64 encoded.

Clone this wiki locally