Bitrix: automatic site map creation (agent)
One of the options in Bitrix-1C is Google Sitemap.
How do I create an agent that will create this sitemap automatically? There is, in view, that there to register, there it is necessary to register the code of some function...
2
1 answers
You will not be able to write the function code due to its absence.
You need to go to /bitrix/modules/search/admin/search_sitemap.php
and convert the code that runs on $_REQUEST["Generate"]=="Y"
to a function.
A fairly simple implementation is described here: https://dev.1c-bitrix.ru/community/blogs/oracle/254.php?commentId=19459#19459
2
Author: Andrewus, 2016-04-06 06:52:02