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

tinybutstrong html to word document

Is there a way to convert a HTML formmatted string to a Word document? I tried using tinybutstrong but it doesn't seem to convert any html tags.
kimj
  • 13
  • 1
  • 3
1
vote
1 answer

image in OpenTBS not changing

I'm trying to show a series of pictures and comments in a document with OpenTBS. The pictures are hosted on a local webserver. The data is in an array. In the resulting document the text lines are rendered as expected, but the sample image is not…
ivomans
  • 31
  • 7
1
vote
1 answer

Use of ifempty in openTBS docx template

I am trying to use the ifempty attribute in a docx template to choose from 2 available variables. I do not have access to the php files. I am just a user of a system using tbs to allow custom export. Here are the results of my tests (var.first is…
1
vote
1 answer

Template engin for e-mails

I use opentbs for document templates (writer and ms word). Now I want to use opentbs also for write e-mails. So that I can read an .msg file prepared from the office and than add senders, customer names, ... so that I have an individual e-mail. is…
Andreas_K
  • 11
  • 1
1
vote
1 answer

OpenTBS/TinyButStrong Is Not Replacing Merge Fields In DOCX

I'm trying to use the OpenTBS/TinyButStrong library to replace merge fields in a word document. We can take a very basic word document like this: Hello, My Name Is Bob, My Age Is <> Which in word has the following code: {MERGEFIELD…
Glen Elkins
  • 867
  • 9
  • 30
1
vote
3 answers

php template engine for existing webpage

I am working with a pretty simple php template right now, stored in one index.php and fetch the files via a GET and access the files like: http://mydomain.com/index.php?page=news if the file is called news.php. See the code snippet below.
1
vote
0 answers

TBS - Query SQL with the new version of TBS using native sql class

I'm writing here regarding the use of the SQL TBS plugin. I went through the www.tinybutstrong.com web site, guide, forum, etc., but can't figure out the answer. I used to use the plugin tbssql_mysql.php, but it became obsolete with PHP7. I went on…
Sao
  • 11
  • 2
1
vote
0 answers

Merging data into DOCX fails using opentbs

I've been using OpenTBS for the past year with PHP/MySQL to merge data into an MS Word DOCX document with no problems. I populate 2-3 large nested arrays as merge blocks and the resulting Word document is 50+ pages long. Performance has never been…
Owen
  • 11
  • 3
1
vote
0 answers

How to repeat the cellmerging in XLSX with openTBS?

Let me try to describe the problem in words. I have a headline in my array which should be centered in two merged cells. When opentbs is looping throug my array, only the first headline is in a merged cell, for all upcoming headlines the cellmerging…
seppel
  • 11
  • 1
1
vote
0 answers

Function not found in onformat but... it exists

As you can see in this image: https://drive.google.com/open?id=0B6xqoAmB-uxZRTRuQmgzZDBvWXM I get an error for a not found function in an onformat parameter, but the function is there! Any hint on what else could I'm doing wrong? Thank you
1
vote
1 answer

How to insert a picture in a document template?

I use this tag in an odt or docx template: [var.path;ope=addpic] However, tinybutstrong inserts path to picture, but not picture. Where to paste the tag that would output the picture and not its path?
Fedor
  • 13
  • 3
1
vote
1 answer

TinyButStrong - OpenTBS

Is it possible to add sections to a .docx template dynamically using OpenTBS plugn? Ex: Assume template has numbering from 1-5, and I want to add 5-n sections dynamically. Is it possible to add images dynamically to a table. I tried as follows but…
Aruna
  • 91
  • 1
  • 9
1
vote
2 answers

Error on variable with XML tags when parsing ODT files

I'm implementing TinyButStrong / OpenTBS in a system that needs to process ODT documents and I'm facing an issue with a specific template that has tags inside the variable name. The situation is as follows: The template part: The relevant part of…
Luís Cruz
  • 14,780
  • 16
  • 68
  • 100
1
vote
1 answer

TinyButStrong created dynamic with dynamic and looping issue

I want to create the leave report of employee in calender table view as attached image. i have fetched employee from controller and stored in and array. same way i am fetching the dates(based on selected year and month) in controller and stored in…
David Coder
  • 1,138
  • 2
  • 14
  • 48
1
vote
1 answer

How to insert euro symbol into Word document with Open TBS?

I am creating a merged word document using the Open TBS plugin for Tinybutstrong, however I cannot get it to display the euro symbol correctly when merging from a php variable. I have tried: Entering the charecter directly as '€' within my…
User787665
  • 237
  • 4
  • 23
1
2
3
10 11