господа ну что?
27.07.2009 13:06:37
Бренды:
<? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); $APPLICATION->SetTitle("Бренды"); $APPLICATION->SetAdditionalCSS("/css/service.css"); ?><? $ServiceIBlockID = 5; $CurrentSectionID = false; CModule::IncludeModule("iblock"); if($_REQUEST['sid']) { $CurrentSectionID = IntVal($_REQUEST['sid']); $CurrentSection = GetIBlockSection($CurrentSectionID); } elseif($_REQUEST['scode']) { $list = CIBlockSection::GetList(array(), array("CODE"=>$_REQUEST['scode'])); $CurrentSection = $list->GetNext(); $CurrentSectionID = $CurrentSection['ID']; } CModule::IncludeModule("iblock"); if($_REQUEST['eid']) { $CurrentElementID = IntVal($_REQUEST['eid']); $Item = GetIBlockElement($CurrentElementID); } elseif($_REQUEST['ecode']) { $list = CIBlockElement::GetList(array(), array("SECTION_ID"=>$CurrentSectionID, "CODE" => $_REQUEST['ecode'])); $Item = $list->GetNext(); } $APPLICATION->AddChainItem($CurrentSection['NAME'], '/brands/'.($CurrentSection['CODE']?$CurrentSection['CODE']:$CurrentSection['ID']).'/'); if($Item) { $APPLICATION->SetTitle($Item['NAME']); ?> <div class="svc_w100proH"> <div class="service"><?=$Item['DETAIL_TEXT']?></div> </div> <? } ?> <?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?> Я так понял далее этот компонент выводит серии в брендах в виде списка: <? require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); $APPLICATION->SetTitle("Бренды"); $APPLICATION->SetAdditionalCSS("/css/service.css"); ?> <? $ServiceIBlockID = 5; $CurrentSectionID = false; $CurrentSectionCode = false; if($_REQUEST['sid']) $CurrentSectionID = IntVal($_REQUEST['sid']); if($_REQUEST['scode']) $CurrentSectionCode = $_REQUEST['scode']; set_keywords_and_description_from_propertys($ServiceIBlockID, $CurrentSectionID); CModule::IncludeModule("iblock"); if($CurrentSectionID) { $CurrentSection = GetIBlockSection($CurrentSectionID); $CurrentSectionCode = $CurrentSection['CODE']; } else { $list = CIBlockSection::GetList(array(), array("CODE"=>$CurrentSectionCode)); $CurrentSection = $list->GetNext(); $CurrentSectionID = $CurrentSection['ID']; } $APPLICATION->AddChainItem($CurrentSection['NAME']); $APPLICATION->SetTitle($CurrentSection['NAME']); ?> <div class="svc_full"> <!--<h1 class="service"><?=$CurrentSection['NAME']?></h1>--> <?=$CurrentSection['DESCRIPTION']?> </div> <? $items = GetIBlockElementList($ServiceIBlockID, $CurrentSectionID); while($arItem = $items->GetNext()) { ?> <div class="svc_w100proH"> <?if(IntVal($arItem['PREVIEW_PICTURE']) > 0):?> <?endif;?> <div style="margin-left: 100px;"> <h2 class="service"> <div class="service"><?=$arItem['PREVIEW_TEXT']?></div> </div> </div> <? } ?> <?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?> |
|
|
20.07.2009 13:44:25
я могу решить проблему вписав в нужном инфоблоке следующие модификации как на изображении? |
|||
|