Answer the question
In order to leave comments, you need to log in
How to set up bitrix:news.calendar?
My component
<?$APPLICATION->IncludeComponent(
"bitrix:news.calendar",
".default",
array(
"AJAX_MODE" => "Y",
"AJAX_OPTION_ADDITIONAL" => "",
"AJAX_OPTION_HISTORY" => "Y",
"AJAX_OPTION_JUMP" => "Y",
"AJAX_OPTION_STYLE" => "Y",
"CACHE_TIME" => "36000000",
"CACHE_TYPE" => "A",
"COMPONENT_TEMPLATE" => ".default",
"DATE_FIELD" => "DATE_ACTIVE_FROM",
"DETAIL_URL" => "",
"IBLOCK_ID" => "29",
"IBLOCK_TYPE" => "calendar",
"MONTH_VAR_NAME" => "month",
"NEWS_COUNT" => "0",
"SET_TITLE" => "Y",
"SHOW_CURRENT_DATE" => "Y",
"SHOW_MONTH_LIST" => "Y",
"SHOW_TIME" => "Y",
"SHOW_YEAR" => "Y",
"TITLE_LEN" => "0",
"TYPE" => "NEWS",
"WEEK_START" => "1",
"YEAR_VAR_NAME" => "year"
),
false
);?>
?month=05&year=2016
/events/<?=$arResult["currentYear"]?>/<?=$arResult["currentMonth"]?>/<?=$arDay["day"]?>/" class="event-link">
<?=$arDay["day"]?></a><?//=$arDay["events"][0]["url"]?> <?else:?>
<span><?=$arDay["day"]?></span>
<?endif;?></td>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question