Hi..,
I want to automatically load information from an iBlock in a newsletter. Say there is an iBlock called newsletter-items. The user of the Bitrix site adds 3 new articles in this Iblock, then go's to services/newsletter/Newsletter categories, presses "automatic generation". The template of the newsletter makes sure there is a header and footer, and in the middle the text/images are loaded from the iBlock newsletter-items.
Is this a scenario that is possible with Bitrix? And if so.. Is there any more information about it.
Maby with this kind of code:
with kind regards,
Lars
I want to automatically load information from an iBlock in a newsletter. Say there is an iBlock called newsletter-items. The user of the Bitrix site adds 3 new articles in this Iblock, then go's to services/newsletter/Newsletter categories, presses "automatic generation". The template of the newsletter makes sure there is a header and footer, and in the middle the text/images are loaded from the iBlock newsletter-items.
Is this a scenario that is possible with Bitrix? And if so.. Is there any more information about it.
Maby with this kind of code:
| Quote |
|---|
|
<?$SUBSCRIBE_TEMPLATE_RESULT = $APPLICATION->IncludeComponent( "bitrix:subscribe.news", "", Array( "SITE_ID" => "s1", "IBLOCK_TYPE" => "news", "ID" => "", "SORT_BY" => "ACTIVE_FROM", "SORT_ORDER" => "DESC", ), null, array( "HIDE_ICONS" => "Y", ) );?></P> <? if($SUBSCRIBE_TEMPLATE_RESULT) return array( "SUBJECT"=>$SUBSCRIBE_TEMPLATE_RUBRIC["NAME"], "BODY_TYPE"=>"html", "CHARSET"=>"iso-8859-1", "DIRECT_SEND"=>"Y", "FROM_FIELD"=>$SUBSCRIBE_TEMPLATE_RUBRIC["FROM_FIELD"], ); else return false; |
with kind regards,
Lars








