Welcome, Guest. Please Login
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
Pages: 1
Send Topic Print
breaking up html page (Read 2265 times)
Steve Scott
Full Member

Posts: 169

breaking up html page
Aug 10th, 2016, 4:09pm
I am creating several html export pages and I want to re-use the header.  For example, if I want to change the css sheet, I just make the change in 1 document instead of 5.

I have a document called header which is found in /system/templates

None of these codes seem to work:


<!DOCTYPE html>
<html lang="en">

trying to put the include here




Back to top
  IP Logged
Mark Anderson
YaBB Administrator

User - not staff!

Posts: 5689
Southsea, UK
Re: breaking up html page
Reply #1 - Aug 10th, 2016, 4:55pm
Firstly, if 'header' is a unique $Name in the document, $Name (case-sensitive) will suffice as an input for ^include()^. If not, use the full (case-sensitive) $Path.

Secondly, what export template is set for 'header'?  The ^include()^ returns the item cited, as exported by its current export template. If notemplate is set, or the template evaluates as empty, there will be no export and ^include()^ will return nothing.

Unlike older versions, Tinderbox v6 has no baked-in default template.  You need to add at least one and apply it as a doc (or note) $HTMLExportTemplate value.
Back to top

Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Pages: 1
Send Topic Print