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
1
vote
1 answer

How to get TinyButStrong generated file handler

I would link to send .odt file generated by TinyButStrong using Swiftmailer. This is mu current code ->setSubject('Customer General Email from '. $date->format("m-d-Y H:i")) //->setTo($address) …
Sergei Kutanov
  • 825
  • 6
  • 13
0
votes
1 answer

OpenTBS Mail merging .docx using PHP

I'm using http://www.tinybutstrong.com/plugins/opentbs/demo/demo.html and having trouble getting it to work. My .docx has real word mail merge fields. I've been trying to understand the documentation, all I can get out of it, is that the PHP demo…
Charles Kirk
  • 167
  • 1
  • 4
  • 14
0
votes
3 answers

OpenTbs convert html tags to MS Word tags

I am using OpenTbs, http://www.tinybutstrong.com/plugins/opentbs/tbs_plugin_opentbs.html. I have a template.docx and am able to replace fields with content but if the content has html code it is displayed in the document created by the…
Blu Towers
  • 1,908
  • 4
  • 17
  • 20
0
votes
1 answer

How i create duplicate format block with opentbs plugins

I am trying to make duplicate format row with TinyButStrong word document. The data have grouping each title of activity but i cannot make spesific format templete document in .docx data sample the format i have to create is like this format export
ura remon
  • 1
  • 1
0
votes
1 answer

OpenTBS - pasting into Excel using PHP results in "numbers stored as text" - how to resolve?

In Excel, on row 1, from columns A to K I have text representing column header labels. On row 2, from columns A to K I have the…
youcantryreachingme
  • 1,065
  • 11
  • 17
0
votes
0 answers

Tinybutstrong opentbs ote=changepic adjust parameter cannot be used in block section, it causes template crash

The parameter adjust for [x.x;ope=changepic;tagpos=inside;adjust] paramater is not working in a block section. I want to loop through a set of results and add an image for each result given. This is working without the adjust parameter, but this…
Darryl
  • 1
  • 1
0
votes
1 answer

TBS onload after update from 3.10.1 to 3.14.0 causes errors - how to get rid of?

I'm currently struggling with error messages from TBS and couldn't find any hint on change log or elsewhere. So far we've been using TBS 3.10.1 with PHP7, now I'm trying to update to actual TBS 3.14.0 with PHP8. The output is generated using TBS…
Georg
  • 3
  • 3
0
votes
1 answer

Problem with new lines in cells while reading an Open Document Spreadsheet (*.ods) file in a PHP array with OpenTBS

I am trying to read an Open Document Spreadsheet (*.ods) file in PHP using 'TinyButStrong template engine' along with the 'OpenTBS' plugin. My target is to convert the spreadsheet's cell data into a PHP array. Sample ods row data (row #4 of…
sariDon
  • 7,782
  • 2
  • 16
  • 27
0
votes
1 answer

Can you change the width or height of a shape using openTBS?

I was wondering if you could change the width of a shape with openTBS I think the text should be written in the alt text box but I coudln't find any article that explained how to do that
0
votes
0 answers

TinyButStrong Error When Merging Block with Dynamic Queries

I am attempting to merge an array based on a value from another array, but I get this kind of error: "TinyButStrong Error when merging block [docList]: invalid query '2022_0817_wes' because VarRef item '2022_0817_wes' is not found." The following is…
user5919866
  • 69
  • 1
  • 8
0
votes
1 answer

Which parameter to use in order to display several blocks?

enter image description here I'm trying to define a zone in my word doc template and to display data from a record source(ERP Software), the problem I'm facing is that I can't show more than one block and I want to show the number of blocks that the…
simogbz
  • 1
  • 1
0
votes
1 answer

Tinybutstrong: How Merge a type of Field indexed array?

I am using TBS, It works fine when I Merge objects and Associative Arrays php, But I don't know how Merge an array in PHP like this: (It is json for major compression): data = [{"d_secuencia":"137", "d_consecutivo":"DOC21 75", "concepto":"DOCUMENTO…
0
votes
1 answer

conditional block display with TBS in DOCX tables

I am processing DOCX files for invoices with TBS. A first TBS block contains all the taxable items, one per line, followed by lines for subtotal and tax. A second TBS block contains all the non-taxable items, followed by one line for grand total. I…
patmin
  • 117
  • 1
  • 10
0
votes
1 answer

(TBS) TinyButStrong optional sub-blocks

Is there a way to make sub-blocks optional, there are cases when a sub-block doesn't contain any information and I get errors. Lets say I have a block that contains people's data, like their full name, date of birth, then I have a sub-block for…
Roberto Mejia
  • 53
  • 1
  • 9
0
votes
1 answer

In OpenTBS: How to use "new paragraph" carriage returns instead of "new line" in MS Word Templates

I have a PHP variable holding plain text that i need to insert into a MS Word Template using OpenTBS. My Word placeholder is: [onshow.introduction] The problem is I use justification formatting, so I need actual "new paragraph" ie "carriage…
stemiwe
  • 5
  • 2
1 2
3
10 11