About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
configuration:static_pages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
configuration:static_pages [2021/07/29 11:06] – [Embedding Static Content] demiankatzconfiguration:static_pages [2021/11/09 11:33] demiankatz
Line 44: Line 44:
  
 This will display the content of "contentPageName" inline, applying the usual internationalization conventions and searching all supported template formats. The renderTranslated method also accepts several additional parameters which can be used to customize the behavior, in case you want to search a different template directory or apply a different naming convention. You can refer to [[https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/View/Helper/Root/Content.php|the Content helper's source code]] for details. An example of advanced features in action can be found in the [[https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/View/Helper/Root/HelpText.php|HelpText view helper]], which now uses the Content helper's advanced features to display VuFind's help pages. This will display the content of "contentPageName" inline, applying the usual internationalization conventions and searching all supported template formats. The renderTranslated method also accepts several additional parameters which can be used to customize the behavior, in case you want to search a different template directory or apply a different naming convention. You can refer to [[https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/View/Helper/Root/Content.php|the Content helper's source code]] for details. An example of advanced features in action can be found in the [[https://github.com/vufind-org/vufind/blob/dev/module/VuFind/src/VuFind/View/Helper/Root/HelpText.php|HelpText view helper]], which now uses the Content helper's advanced features to display VuFind's help pages.
 +
 +===== Video =====
 +
 +This topic is discussed in the [[videos:managing_static_content|Managing Static Content]] tutorial video.
 ---- struct data ---- ---- struct data ----
 ---- ----
  
configuration/static_pages.txt · Last modified: 2023/07/27 12:30 by demiankatz