Documentation

BuildRSS

array
CBlog::BuildRSS(
 int    ID,
 string type = "RSS .92",
 int    numPosts = 10,
);

The method returns generated RSS in the type format of the blog ID. Non-static method.

Method parameters

ParameterDescriptionAvailable from version
ID Blog ID.
type Format of returned RSS. Can have the following values:
  • RSS .92
  • RSS 2.0
  • ATOM .03
    Optional. By default, RSS is generated in the RSS .92 format.
  • numPosts Number of messages for export.
    Optional. By default, last 10 messages are returned.
    blogTemplate Optional parameter. Default value - "".
    postTemplate Optional parameter. Default value - "".
    userTemplate Optional parameter. Default value - "".
    bSoNet Optional parameter. Default value - false.
    arParams Optional parameter.

    Returned value

    Generated blog post RSS is returned.

    Examples of use

    <?
    echo CBlog::BuildRSS("2", "RSS 2.0", 25);
    ?>


    © «Bitrix24», 2001-2024
    Up