Questions tagged [tinybutstrong]

TinyButStrong is a template engine for PHP.

TinyButStrong is a template engine for PHP. It can merge not only HTML, but also XML, text, and any textual source by the technical of template. Provided in a single file, TinyButStrong is a brick in your application, and can be inserted in any framework. It can thus cover only one feature or being a central component of your application.

TinyButStrong can be empowered by the plug-in OpenTBS in order to merge OpenOffice, LibreOffice and Microsoft Office documents.

159 questions
0
votes
2 answers

TinyButStrong: including a file dynamically

How would you set an include file dynamically from a set variables in a php file? {onload;file={tplvar.absopath}} So, once the template is loaded, $tbs->LoadTemplate($tpl) the file should produce the html built on the file…
user8139620
0
votes
0 answers

Can't show the same list (sub1) twice

I use PHP to merge into a docx. Instead of merging several blocks, I thought of merging multiple arrays into one like this: PHP: $allLists = array( array('name'=>'specialList', 'list'=>array( 'special1', 'special2', 'special3' ) ), …
NicklasF
  • 863
  • 3
  • 10
  • 26
0
votes
1 answer

openTBS - create a new line in .odt document

I use openTBS to generate letters in OpenOffice Writer (.odt documents). Address can have variable number of lines depending on existing/non-existing department name, person name etc. That's why I need to create new line inside place holder.…
Honza
  • 65
  • 6
0
votes
1 answer

TinyButStrong error single quote within a string

I have a problem with single quote ('):
0
votes
1 answer

How do I rename Sheet in Excel using TinyButStrong Excel?

I have a TBS Excel template with numerous sheets. I want to rename each sheet to match a variable that is going to be put into cell A2. I know Excel will not allow special characters in table names, so I can not use a square brackets to set a TBS…
0
votes
1 answer

How do I merge multiple different blocks of data in Tiny But Strong?

I am trying to merge multiple blocks of different data in a TinyButStrong Excel document (each block of data is for a different worksheet). When I try separate MergeBlock statements as follows: $TBS->MergeBlock('b1', $block_b1);…
0
votes
1 answer

Generate table with OpenTBS - each row in separate cell

I try to create an ODT file (or docx) with table inside. I read and search all SO and support forum but have no idea how to make something like this: cell1.val1 | cell2.val1 | cell3.val1 cell1.val2 | cell2.val2 | cell3.val2 cell1.val3 | …
Kamil
  • 217
  • 4
  • 16
0
votes
1 answer

OpenTBS multiply variable with other variable inside table

I am trying to use the following functionality: [quote_elements.product.factor;ope=mul:quote_elements.qty] But all I get is always 0. if I use: [quote_elements.product.factor;ope=mul:4] it works fine and I get 4 times the factor number. But this…
schurtertom
  • 520
  • 1
  • 9
  • 19
0
votes
1 answer

Checkbox Sizing in OpenTBS

OpenTBS makes it easy to check off Form Control checkboxes in a template while merging data into the template. All one must do is edit the checkbox's properties to have an onload code (ex: [onload.yellow]) and then have php set the code to 'checked'…
Avarazac
  • 1
  • 2
0
votes
1 answer

TbsSQL MSSQL compatible with PHP 7

I've been using TBS, OpenTBS and TbsSQL for several years now, always on PHP 5.3.x. I recently decided to try an upgrade to PHP 7.0, and have now run into a strange problem (an error, apparently, but not error text coming back,…
0
votes
1 answer

Is there a way to handle conditional drawing in OpenTBS with DOCX?

I'm generating a document with conditional drawings in a dynamic table. Let's say I want a share for some rows, a circle for others etc... I've converted my drawings into pictures and it's working well except the quality is very low after converting…
0
votes
2 answers

TinyButStrong and dynamic file path

I'm looking at changing our current intranet, which works with RTF files, so that it can work with docx. We need to be able to change the templates, and after that inject it with some data from the intranet, and save it as a docx file. For that I…
0
votes
1 answer

Debugging an openTBS error: TinyButStrong Error Show() Method: The output is cancelled by the OpenTBS plugin because at least one error has occured

I am using openTBS to create dynamic word documents from PHP merging in several variables. The PHP program creates the Word document using the template for whatever language the user selects. This is working fine for other document templates in all…
Katybird
  • 1
  • 2
0
votes
1 answer

Dynamic paragraphs with openTBS - strange behaviour

That's an array I have: array(2) { [0]=> array(4) { ["theme"]=> string(9) "тема2" ["description"]=> string(9) "опис2" ["literature_main"]=> string(7) "літ2" ["litarature_add"]=> string(7) "доп2" } [1]=> array(4) { ["theme"]=> string(9) "тема1"…
Monstryyy
  • 81
  • 9
0
votes
1 answer

openTBS Page break in Tables after x rows

I use opentbs to generate lists in word documents. Is it possible to add a page break after x rows in a table? I hope you can help me. If you need further information feel free to ask.