TinyButStrong - the PHP Template Engine
Categories > OpenTBS with ODS >

newbie: block merge to create open office writer table

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: william
Date: 2010-06-20
Time: 20:45

newbie: block merge to create open office writer table

I am completely at sea.  The TBS documentation for blocks describes 3 methods of defining a block, but I can't figure out how the relative or simple can be used to create a table in an open office where there are no <tr> or <td> tags.

bill
By: william
Date: 2010-06-20
Time: 20:47

Re: newbie: block merge to create open office writer table

I forgot to add, when I use the absolute method of defining a block, I end up with no merge in the template document.

bill
By: Skrol29
Date: 2010-06-20
Time: 21:31

Re: newbie: block merge to create open office writer table

Hi William,

I do not recommend using the absolute syntax for OpenOffice documents because you need to extract and edit yourself the "content.xml" file.
If you use the simplified  syntax the you can edit your template directly with OpenOffice.

There is a demo set given with the OpenTbs package, have you seen it?
This set contains a Writer template (.odt) including the merge a a table. In OpenOffice, the element for a table row is <table:table-row>. Thus, you can define a TBS block using for example: [a.firstname;block=table:table-row]
By: william
Date: 2010-06-21
Time: 11:52

Re: newbie: block merge to create open office writer table

I have seen the demo, but I can't find the template that it uses.  The page I saw gave the php, but not the template.
http://www.tinybutstrong.com/plugins/opentbs/demo/demo.html
By: william
Date: 2010-06-21
Time: 12:29

Re: newbie: block merge to create open office writer table

I redownloaded the openTBS file (I was a few versions behind) and saw the template.  Thanks, it helped.