Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Exporting from Tinderbox >> breaking up html page
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1470859744

Message started by Steve Scott on Aug 10th, 2016, 4:09pm

Title: breaking up html page
Post by Steve Scott on 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:



Code:
^include("/system/templates/header”)^
^include(/system/templates/header)^
^include(header)^
^include(“header”)^



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

trying to put the include here

<body>

</body>

</html>



Title: Re: breaking up html page
Post by Mark Anderson on 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.

Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.