Разрешить группе пользователей загружать фото в Комплексный компонент Фотогалерея 2.0

Отправлено planktun от ср, 08/03/2016 - 06:26

"GALLERY_GROUPS" => array(1,6) - id групп пользователей

 

<?$APPLICATION->IncludeComponent(
    "bitrix:photogallery",
    "collections-complex",
    Array(
        "USE_LIGHT_VIEW" => "N",
        "IBLOCK_TYPE" => "collections",
        "IBLOCK_ID" => "5",
"GALLERY_GROUPS" => array(1,6),
        "SECTION_SORT_BY" => "SORT",
        "SECTION_SORT_ORD" => "ASC",
        "ELEMENT_SORT_FIELD" => "name",
        "ELEMENT_SORT_ORDER" => "asc",
        "PATH_TO_USER" => "",
        "DRAG_SORT" => "N",
        "USE_COMMENTS" => "N",
        "SEF_MODE" => "Y",
        "CACHE_TYPE" => "A",
        "CACHE_TIME" => "3600",
        "DATE_TIME_FORMAT_DETAIL" => "d.m.Y",
        "DATE_TIME_FORMAT_SECTION" => "d.m.Y",
        "SET_TITLE" => "N",
        "SHOW_LINK_ON_MAIN_PAGE" => array(),
        "SECTION_PAGE_ELEMENTS" => "500",
        "ELEMENTS_PAGE_ELEMENTS" => "500",
        "PAGE_NAVIGATION_TEMPLATE" => "",
        "ALBUM_PHOTO_SIZE" => "250",
        "THUMBNAIL_SIZE" => "200",
        "JPEG_QUALITY1" => "100",
        "ORIGINAL_SIZE" => "0",
        "JPEG_QUALITY" => "100",
        "ADDITIONAL_SIGHTS" => array(),
        "PHOTO_LIST_MODE" => "N",
        "SHOWN_ITEMS_COUNT" => "6",
        "SHOW_NAVIGATION" => "N",
        "USE_RATING" => "N",
        "SHOW_TAGS" => "N",
        "UPLOADER_TYPE" => "applet",
        "APPLET_LAYOUT" => "extended",
        "UPLOAD_MAX_FILE_SIZE" => "16",
        "USE_WATERMARK" => "N",
        "WATERMARK_RULES" => "USER",
        "PATH_TO_FONT" => "default.ttf",
        "WATERMARK_MIN_PICTURE_SIZE" => "800",
        "SEF_FOLDER" => "/collections/",
        "VARIABLE_ALIASES" => Array("index"=>Array(),"section"=>Array(),"section_edit"=>Array(),"section_edit_icon"=>Array(),"upload"=>Array(),"detail"=>Array(),"detail_edit"=>Array(),"detail_list"=>Array(),"search"=>Array(),),
        "SEF_URL_TEMPLATES" => Array("index"=>"index.php","section"=>"#SECTION_ID#/","section_edit"=>"#SECTION_ID#/action/#ACTION#/","section_edit_icon"=>"#SECTION_ID#/icon/action/#ACTION#/","upload"=>"#SECTION_ID#/action/upload/","detail"=>"#SECTION_ID#/#ELEMENT_ID#/","detail_edit"=>"#SECTION_ID#/#ELEMENT_ID#/action/#ACTION#/","detail_list"=>"list/","search"=>"search/"),
        "COMPONENT_TEMPLATE" => "collections-complex",
        "VARIABLE_ALIASES" => Array(
            "index" => Array(),
            "section" => Array(),
            "section_edit" => Array(),
            "section_edit_icon" => Array(),
            "upload" => Array(),
            "detail" => Array(),
            "detail_edit" => Array(),
            "detail_list" => Array(),
            "search" => Array(),
        )
    )
);?>

Теги