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
0 answers

TinyButStrong Block Not Working for li tag

If I define my block on the li tag, TBS only shows the first item in the array.
0
votes
1 answer

500 Error After Moving Code To New Server

I recently moved my code to a new server with Debian 10 and PHP 7.3.19. The old server had Ubuntu 16.04.15 and PHP 7.0.33. As a result, I am now getting a 500 error on my index.php page. However, if I comment out part of the TinyButStrong template…
user5919866
  • 69
  • 1
  • 8
0
votes
1 answer

OpenTBS - Repeating Paragraph with Token Replacement?

I have a text-based (as opposed to table-based) .docx document with a section that has several places in the paragraph for replacement. This paragraph must be duplicated and the tokens replaced for each entry in the array. I'm continuing to comb…
KCL
  • 138
  • 1
  • 12
0
votes
1 answer

Use composer's autoload to load OpenTBS plugin for tinybutstrong

I am using tinybutstrong and it's opentbs plugin. Until now I did use an explicit require of the two source files for that but I want to switch to composer with autoloading. So I want to go from this
Lucas
  • 685
  • 4
  • 19
0
votes
1 answer

massive file size with pictures

I'm using opentbs to get an organization chart with photographs. People register pictures with no size limit. I'd like to know if it exists a tag that compresses the pictures before editing. I actually…
Celine
  • 1
0
votes
1 answer

how to select header section in OpenOffice ODT document with TinyButStrong TBS

I can successfully manipulate fields in the header and footer sections of a DOCX document with TinyButStrong (TBS) through this code: $TBS->PlugIn(OPENTBS_SELECT_HEADER); $TBS->MergeField('abk', 'ainfo', true); …
patmin
  • 117
  • 1
  • 10
0
votes
1 answer

how to select master slide in OpenOffice ODG document with TinyButStrong TBS

I can successfully manipulate fileds on a master slide of a PPTX document with this code: $TBS->PlugIn(OPENTBS_SELECT_SLIDE, '1', true); // select master slide $TBS->MergeField('abk', 'ainfo', true); // merge field…
patmin
  • 117
  • 1
  • 10
0
votes
1 answer

OpenTBS no longer merges fields in ODT - no errors

Long time Tinybutstrong/OpenTBS user here - my application has been moved to a new server (Debian Jessie > Debian Buster), including new versions of Apache (2.4.38) and PHP (7.3 FPM). $TBS = new \clsTinyButStrong; $TBS->Plugin( \TBS_INSTALL,…
zenlord
  • 330
  • 3
  • 15
0
votes
1 answer

Can I use TinyButStrong Fields to control paragraph formatting in my Word Table

I have a word table being populated from a MYSQL query and sub query via an OpenTBS template. The main query acts has a single cell merged across the row; the first column of the subquery is merged using an ope=mergecell command; the remaining…
0
votes
1 answer

How do i resolve 'Uninitialized string offset:' error in TinyButStrong

I was successfully download the merged spreadsheet document but it gives me these errors instead of the merge values. Why is that and how should i resolve it ? Notice: Uninitialized string offset: 2 in…
Asha
  • 805
  • 3
  • 10
  • 18
0
votes
1 answer

Is it possible to change the format in opentbs when using ope=tbs:num?

When merging blocks using opentbs I was able to properly get a field to merge as a number to excel using ope=tbs:num which I need because I am both displaying the data and performing calculations with it. However, excel seems to default to…
0
votes
1 answer

How to resolve TinyButStrong's 'at least one tag corresponding to w:tr is not found' error?

I'm creating a project to mail merge a given .odt file and provide a .odt output. When i'm performing the mail merge operation it provides me this error TinyButStrong Error in block's definition [CiviCRM.display_name...]: at least one tag…
Asha
  • 805
  • 3
  • 10
  • 18
0
votes
1 answer

How to remove or change an image in a docx

I'm trying to change an image embedded in a docx. In some circumstances I'll need to replace a default placeholder image on each page with a new one, and in others I'd like to just remove that placeholder image (or hide it? -- or better than hide…
0
votes
1 answer

When my variable has an apostophe in it, it cannot be used for onshow

I'm using a conditional in templating engine tinybutstrong to show a
when a variable is not blank.
[onshow;block=div;when [var.notice;noerr]!=''][var.notice;noerr]
It works well except for when the $notice variable…
desbest
  • 4,746
  • 11
  • 51
  • 84
0
votes
0 answers

TinyButStrong gives an corrupt DOCX file

I'm using TinyButStrong (with opentbs plugin) to merge an DOCX (XLSX/ODT/ODS) file with CSV data (file upload). On my Linux pc with libre-/openoffice the produced merged DOCX file gives an error: "SAXException: [word/document.xml line 2]: Couldn't…
Nijboer IT
  • 1,178
  • 1
  • 13
  • 18