Publish to One File
- Last Modified:
- 14 Jan 2019
- User Level:
- Power User
With the Publish to One File Navigation Object you can publish the content from an entire Branch on a single page. This can be used to create a content listing, for example, all Event content from a Branch could be used to create an Event listing.
How to Create a Publish to One File object
To create this object, go to Assets > Navigation, click Create New Navigation and select Publish to One File.
After completing the standard options used for all types of Navigation Objects, fill in each of the following, where relevant:
|Content type name||Choose your Content Type from the drop-down list. If a specific Content Type is selected, only that content is used. If you select All content types, all content will be included.|
|Specify section||If Use a specific section is selected, select the Section to use.|
|Start section element||If Take section from content type element is selected, specify the name of the section/content link element that will determine the location of the content.|
|Show hidden sections?||
Checkbox to include hidden Sections in the Navigation Object.
Publish to One File will not include any content within Sections listed in the Ignore Section names on publish per channel configuration option.
|Number of levels to recurse||Specify the number of levels to recurse. If set to 0, all content under the selected Section will be displayed. When set to 2 it displays one Section below the current Section.|
|Before HTML||HTML output before the Navigation Object.|
|After HTML||HTML output after the Navigation Object.|
|Display the Section name as part of the output||When checked, the name of each Section will be displayed.|
|Show Section name when hidden||Checkbox to show the name of each Section even if the Section is hidden from navigation. Left unchecked, Section names of Sections that are hidden from navigation are not displayed.|
|Before Section HTML||HTML output before the name of the Section.|
|After Section HTML||HTML output after the name of the Section.|
|Surrounding Page Layout||The selected Page Layout will output the header before the first Section at each level and the footer after the last Section at each level. If no Page Layout is required, then select No Page Layout. This may be useful if you need to create nested divs for the content structure or for an XML output.|
|Content Layouts||Use Channel default (specified on the Channel settings) or select alternate Content Layout.|
|Alternate Content Layout||If the Channel default is not used, enter the name of the alternate Content Layout.|
|Enable caching of output||
If you choose this option, TERMINALFOUR keeps a cache of each Content Item used by the object in separate .ser files. With the next publish, if the content has not changed, the system uses the cached version of that content item. If the content has changed, the system uses the new version of that content item. Selecting this option results in significant performance improvements when publishing.
If your selection uses a fulltext (and the fulltext content is NOT published elsewhere on the site, and cleanup is enabled on your channel) TERMINALFOUR does not re-publish the fulltext content - this results in it being deleted on cleanup.
|Pagination output across pages||Checkbox to paginate the content that is displayed from this Navigation Object. This automatically creates pagination links to navigate between the pages of content.|
|Display||Specify the number of Content Items you want to display on each page if you use pagination.|
|Before pagination HTML||Enter the code to be output before the pagination links.|
|Between pagination HTML||Enter the code to be output between each pagination link.|
|After pagination HTML||Enter the code to be output after the pagination links.|
Review your entries and selections, if you are satisfied with your entries, click Next to generate the object. Once generated, highlight the T4 Tag Embed Code, copy to your clipboard (Ctrl+C) and paste into a Content Layout or a Content Item.
This object does not work in a Page Layout.
In Top Content and Keyword Search Content Navigation Objects, where content is mirrored into multiple sections, the Navigation Object only returns one instance of that content. The object will recurse the branch of content, as configured, returning only the first instance of the content that it encounters. Re-ordering sections can therefore affect the instance of the content that is returned by the Navigation Object.
For Publish to One File Navigation Objects, where content is mirrored into multiple sections, the Navigation Object returns all instances of the content.