[Howto] Modifying Printing Templates

About Templates

Printing Templates” are templates for printing meetings. Those are installed on sub-folder, named templates, into the Installation Directory of your informatic system.

They are HTML files, with CSS, mainly (and JS for some).

Requirements

Certainly, segun your OS (like Linux, MacOS), you need rights admin to modify them.

Process

  1. After copy to rename it, edit with an text editor.
  2. Next, close your TB, re-open
  3. go to the Print menu
  4. change the template into the additional options

NOTE: TB team is not way responsible for your changes.


Adding publication date

You need to add those informations:

  • CSS — into the bloc <style>:
#footer       { position: fixed; bottom: 1.02cm; width: 100%; margin: 0; }
  • HTML — just before the ending element main </main>:
    <section id="footer">
		<table>
			<hr style="margin: 0 1.27cm; height: 1.50pt; border: none; padding: 0; background-color: rgb(101,97,100);">
			<hr style="margin: 1.25pt 1.27cm 0 1.27cm; height: 0.75pt; border: none; padding: 0; background-color: rgb(101,97,100);">
			<tr style="height: 0.85cm;">
				<td style="border-right: 2.00pt solid rgb(101,97,100); width: 73%;"></td>
				<td>
					<h2 style="color: rgb(101,97,100);">
						<script type="text/javascript">
							document.write(new Date().toLocaleDateString());
						</script>
					</h2>
				</td>
			</tr>
		</table>
	</section>
  • If you want to localise Date, change document.write(new Date().toLocaleDateString()); to document.write(new Date().toLocaleString('!LOCALE_NAME!'));

Adding time

Adding the time is really more complex.

More information are on TheocBase (embedded) Help.
See F1 > Printing > Printing Tags > Midweek Meeting and search/see about all *_TIME variables to include into the modified template!

You need to add:

  • CSS — if .time not exists:
.time      { color: #666; font-family: sans-serif; font-size: 9pt; font-style: italic; font-weight: normal; white-space: nowrap; }

You need to change:

  • HTML:
    • for Opening Comment:
<p class="theme">!OPENING!</p>

by:

<p class="theme">!OPENING! #IF DURATION#<span class="time">(1 min.)</span>#ENDIF#</p>
  • for GW Talk:
<p class="theme">!GW1_THEME!</p>

by:

<p class="theme">!GW1_THEME! #IF DURATION#<span class="time">(!GW1_TIME! min.)</span>#ENDIF#</p>
  • for GW Digging:
<p class="theme">!GW2_THEME!</p>

by:

<p class="theme">!GW2_THEME! #IF DURATION#<span class="time">(!GW2_TIME! min.)</span>#ENDIF#</p>
  • for the GW Bible Reading:
<p class="theme">!GW3_THEME!</p>

by:

<p class="theme">!GW3_THEME! #IF DURATION#<span class="time">(!GW3_TIME! min.)</span>#ENDIF#</p>
  • for the FM Talk 1:
<p class="theme">!FM1_THEME!</p>

by:

<p class="theme">!FM1_THEME! #IF DURATION#<span class="time">(!FM1_TIME! min.)</span>#ENDIF#</p>
  • for the FM Talk 2:
<p class="theme">!FM2_THEME!</p>

by:

<p class="theme">!FM2_THEME! #IF DURATION#<span class="time">(!FM2_TIME! min.)</span>#ENDIF#</p>
  • for the FM Talk 3:
<p class="theme">!FM3_THEME!</p>

by:

<p class="theme">!FM3_THEME! #IF DURATION#<span class="time">(!FM3_TIME! min.)</span>#ENDIF#</p>
  • for the FM Talk 4:
<p class="theme">!FM4_THEME!</p>

by:

<p class="theme">!FM4_THEME! #IF DURATION#<span class="time">(!FM4_TIME! min.)</span>#ENDIF#</p>
  • for the CL Talk 1:
<p class="theme">!CL1_THEME!</p>

by:

<p class="theme">!CL1_THEME! #IF DURATION#<span class="time">(!CL1_TIME! min.)</span>#ENDIF#</p>
  • for the CL Talk 2:
<p class="theme">!CL2_THEME!</p>

by:

<p class="theme">!CL2_THEME! #IF DURATION#<span class="time">(!CL2_TIME! min.)</span>#ENDIF#</p>
  • for the CBS:
<p class="theme">!CBS_THEME!</p>

by:

<p class="theme">!CBS_THEME! #IF DURATION#<span class="time">(!CBS_TIME! min.)</span>#ENDIF#</p>
  • for the Conclusion — by twice:
<p class="theme">!CONCLUSION!</p>

by:

<p class="theme">!CONCLUSION! #IF DURATION#<span class="time">(3 min.)</span>#ENDIF#</p>

NOTE: TB team is not way responsible for your changes.


1 Like