Skip to main content

Display Records Plugin

Aktualisiert vor 3 Monaten

../../_images/logo_typotonic9.jpg

Display Records Plugin

This is the main plugin for displaying records through TypoTonic. It can be used to display either records in a list or show detailed information of a record. It delivers different methods for displaying records.

../../_images/plugin_display_records_wizard1.jpg

Configuration

Plugin Type¶This selects the type of which data is injected to the fluid template. It can be one of the following:

ListMultiple Records injected to <span class="pre">{records}</span>DetailFixed Record from selection is injected to <span class="pre">{record}</span>Dynamic DetailDynamic injected record from Url Parameter to <span class="pre">{record}</span>Raw FluidUse the power of TYPO3 Fluid as usual without implementing a record through some selection. This option lets you show fluid code and injects variables without recordsDatatype¶Please select a datatype for the records you want to show in the plugin.

Record¶This configuration only shows up in the single record context plugin type, such as <span class="pre">List</span> or <span class="pre">Detail</span>

Page for Detail View¶Records can be linked to a detail page which has a "Dynamic Detail" Plugin. The Detail View PageId is configurable with fluid conditions. A configured detail page will be used when the according condition is valid.

Conditions are valid when they are empty or the expression is valid.

To link a record, you can use a TypoTonic ViewHelper:

<span></span><span class="p"><</span><span class="nt">t:link.record</span> <span class="na">record</span><span class="o">=</span><span class="s">"{record}"</span> <span class="na">pageUid</span><span class="o">=</span><span class="s">"{detailPid}"</span> <span class="na">additionalParams</span><span class="o">=</span><span class="s">"{paramOne:'One'}"</span><span class="p">></span>{record.title}<span class="p"></</span><span class="nt">t:link.record</span><span class="p">></span>

See the ViewHelpers section for more information about the available TypoTonic ViewHelpers.

Record Storage Page¶Please select the record storage page where the records are stored.

Field/Value Filter Settings

Available Markers¶If you selected variables to inject, you will get an information here, of what markers are available for you fluid code.

Filter Condition¶You can build a filter for selecting the records, that will be shown in the frontend. Adding filters will modify the Query Builder to fetch only the data, you want.

Condition for activating the filter (Fluid)¶Please enter a filter condition, when the filter needs to be activated under different circumstances. When leaving the condition empty, the filter is automatically activated.

Conditions are valid when they are empty or the expression is valid.

../../_images/filters.jpg

Repository Settings

Limit¶Limits the count of displayed record to the value, you have configured in this field.

Sorting¶You can configure multiple sortings by adding new configurations in this field. Each sorting configuration can be activated though a variable (e.g. GET/POST) and offers you the possibility to create multiple sorting configurations that can be combined.

Condition for activating the filter (Fluid)¶Please enter a filter condition, when the filter needs to be activated under different circumstances. When leaving the condition empty, the filter is automatically activated.

Conditions are valid when they are empty or the expression is valid.

Here is an example on how to configure a default sorting and changing the sorting direction, when the page gets an parameter "argument" <span class="pre">?argument=title-down</span> (The variable "argument" has to be created and assigned in the plugin settings)

../../_images/sorting.jpg

Template Settings

Template Selection¶The fluid templates for TypoTonic. Record(s) and Variables will be injected automatically. You can either manually select a template file or select a predefined template. There is also a way to switch templates on certain conditions with the help of the template variables.

Template SelectionDescriptionDebug TemplateShow debugging information (Default)Select a custom template pathYou can select a file in your filesystemEnter custom fluid codeThe code, you can enter in the Fluid Field will be used for renderingYour configured templateIf you configured templates in TypoScript, these will appear in the dropdown after the above mentioned optionsRender this Template without Sitetemplate¶If this option is set, the complete output of this plugin will showed without rendering the whole site template. Everything else, located on this page will be ignored in the output.

Template Switch¶This setting gives you the possibility to use different templates on conditions. The condition is written in fluid. If a condition matches, the selected template will be used instead of the above selected template in 'Template Selection'.

Variable Injection¶Select the variables, that will be injected into the fluid template. When condition-fields are shown, you will get an information above, what variables are available.

Overrides

The overrides can be used to override plugin setting with variables. When a variable exists and contains information, the override will directly be used.

Developer Settings

Debug¶When activated, debugging information about the SQL Query is shown above the rendered page.

Custom Headers¶With this option, you are able to send and overwrite the headers of the response. This adds the possibility to generate XML or JSON Files if you set the <span class="pre">Content-Type</span> header or to force a download by using <span class="pre">Content-Disposition</span>

War diese Seite hilfreich?

Helfen Sie uns dabei, die Dokumentation zu verbessern.

Feedback senden