new

TurboPages

Generate RSS feed for turbo pages Yandex
The author
Егор
Packages
1
Downloads
8
Usually answers within 2 hours
Автор дополнения
Packages
1
Downloads
8
Usually answers within 2 hours
Version 1.0.3-pl
Release date 07.02.2019
Downloads 8
Views 123
Warning! This component requires PHP version 7.0 or higher! If your site uses PHP less than required, the installation of this package could break it.
An extension with which you can create an rss channel suitable for the requirements of Yandex's turbo pages.

The main features of the plugin:
  • Support customization and search output
  • Support customization and menu output
  • Support for setting and displaying widgets, feedback forms
  • Support for setting and displaying various buttons (Email, phone, etc.)
  • Support for setting and displaying ad units
  • Support for customization and output of analytics systems
  • Support for customization and output of social buttons

Installing the extension:
  1. Download the installation package and install it;
  2. Create a new resource;
  3. Add a snippet [[! Turbopages?]];
  4. Perform a snippet setup;
  5. Set the content type to xml;
  6. Save and check.

If everything is set and done correctly, then after opening a previously created resource with a snippet on the site, the rss channel will be opened, the link to which will need to be added to the webmaster. I draw your attention to the fact that not some browsers may give an error: TypeError: Failed to construct 'URL': Invalid URL… This is due to the design of the rss channel for turbo pages.

Description of the snippet settings:
  • charset — the encoding of the RSS feed (Required).
  • language — The language code of the RSS feed in ISO 639-1 (Required.)
  • name — the name of the RSS feed (Required).
  • description — description of the RSS feed (Required).
  • hideContainers — do not add container resources.
  • parents — List of parents' IDs, separated by commas, which must be added to the RSS feed. By default, all are taken. If the parent ID is specified with a minus, then it will be excluded from the sample.
  • resources — A list of resource IDs, separated by commas, to be added to the RSS feed. If the resource ID is specified with a minus, it will be excluded from the selection.
  • imageTv — the name or ID of the tv fields containing the link to the image.
  • menu — menu in json format. Example: [{«url»: «domain.ru/page.html», : News> "]]. url — link, name — name.
    showDeleted — add deleted resources.
    showHidden — add hidden resources.
    showUnpublished — add unpublished resources.
    searchName — The name of the search form.
    searchUrl — search url. Example: yandex.ru/search/?text={text}. {text} — placeholder request.
    searchMethod — type of request (GET / POST).
    analystic — analytics systems in json format. Example: [{«type»: «Yandex», «id»: «1111111111»}]. type — type, id — meter identifier.
    buttonName is the name of the button.
    buttonBgColor — the background color of the button.
    buttonPrimary — highlight the button in bold.
    buttonTextColor — the text color of the button.
    buttonAction — the link for the button.
    buttonTurbo — if the page where the button leads to has a turbo page — set “Yes”.
    feedbackEmail — email recipient for the feedback form.
    feedbackCompany — legal name of the organization for the feedback form.
    feedbackLink — link to the page with the personal data processing policy (Used only if you specify the legal name of the organization in the corresponding field).
    widgetsName — the name of the widget block.
    stickWidgets — the position of the widget block.
    widgets — a list of widgets in json format. Example: [{«type»: «mail», «url», «mailto: mail@example.com»}]. type — type, url — link.
    network — ad units in json format. Example: [{«type»: «YandexADS», «id», «111», «ad_id», «div_block»}]]. type — type, id — advertisement block identifier
  • .

1.0.0

  • Initial release.

1.0.1

  • Added rating.

1.0.2

  • Added options descriptions.

1.0.3

  • Updated markup for new requirements.