Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision |
configuration:static_pages [2021/07/29 11:06] – [Embedding Static Content] demiankatz | configuration:static_pages [2021/11/09 11:33] – demiankatz |
---|
| |
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 ---- |
---- | ---- |
| |