Translations:Динамический контент через RSS ленту (пользовательская версия)/4/en

Материал из SmartPlayer

Working with "Text" Type Content"

First, you need to find the "Content" section and select the appropriate type of content in it. In our case, it's text.

Block "Content" in your personal account

The next step is for the user to create new text content using the button.

Text content

After clicking the "Add New Text" button, a settings window will open.

Text settings window

Inside the window, the first thing to pay attention to is the line - "Choose source type". In this line, we choose the "URL-source" option. After the performed manipulations, we insert our Swagger URL into the "RSS source" section and click the preview icon.

Source options
Swagger (or OpenAPI) is a tool for creating, documenting, and testing web APIs. It helps developers easily understand and work with APIs by providing a visual representation and automatically generated documentation.

Next, the SmartPlayer server parses the URL. The data from the parsed link will look something like this:

Example of a parsed URL


The next step is to choose the right line to create a query template from it.

An example of the required string for the template


After clicking on the highlighted line, a template with parameters will be formed. It will be displayed in the empty line at the top. Before the parameters, in the line, you need to specify in text what information will be displayed.

Example template

As a result, inside the template, there will be a static part of the line - which the user specifies, and a dynamic part of the line - which is the template.