<trans-unit id="menu_type.I.8" xml:space="preserve">
<source>Sitemaps of selected pages</source>
</trans-unit>
+ <trans-unit id="menu_type.I.9" xml:space="preserve">
+ <source>Pages for selected categories</source>
+ </trans-unit>
<trans-unit id="list_type" xml:space="preserve">
<source>Plugin:</source>
</trans-unit>
<trans-unit id="accessibility_bypass_text" xml:space="preserve">
<source>Link text to bypass block</source>
</trans-unit>
+ <trans-unit id="selected_categories" xml:space="preserve">
+ <source>Selected categories</source>
+ </trans-unit>
<trans-unit id="ALT.imgOptions" xml:space="preserve">
<source>Image Options</source>
</trans-unit>
NO.wrapItemAndSub = <li class="csc-section">|</li>
}
}
+
# "Sitemaps of selected pages - liststyle"
8 < .2
8 {
special = directory
special.value.field = pages
}
+
+ # Menu of categorized pages
+ 9 < .default
+ 9 {
+ special = categories
+ special.value.field = selected_categories
+ special.sorting = title
+ special.order = asc
+ stdWrap {
+ outerWrap = <ul class="csc-menu csc-menu-9">|</ul>
+ }
+ }
}
20.stdWrap {
NO.wrapItemAndSub = <li class="csc-section">|</li>
}
}
+
# "Sitemaps of selected pages - liststyle"
8 < .2
8 {
special = directory
special.value.field = pages
}
+
+ # Menu of categorized pages
+ 9 < .default
+ 9 {
+ special = categories
+ special.value.field = selected_categories
+ special.sorting = title
+ special.order = asc
+ stdWrap {
+ outerWrap = <ul class="csc-menu csc-menu-9">|</ul>
+ }
+ }
}
20.stdWrap {
NO.wrapItemAndSub = <li class="csc-section">|</li>
}
}
+
# "Sitemaps of selected pages - liststyle"
8 < .2
8 {
special = directory
special.value.field = pages
}
+
+ # Menu of categorized pages
+ 9 < .default
+ 9 {
+ special = categories
+ special.value.field = selected_categories
+ special.sorting = title
+ special.order = asc
+ stdWrap {
+ outerWrap = <ul class="csc-menu csc-menu-9">|</ul>
+ }
+ }
}
20.stdWrap {
}
}
break;
+ case 'categories':
+ /** @var \TYPO3\CMS\Frontend\ContentObject\Menu\CategoryMenuUtility $categoryMenuUtility */
+ $categoryMenuUtility = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\Menu\\CategoryMenuUtility');
+ $temp = $categoryMenuUtility->collectPages($value, $this->conf['special.'], $this);
+ break;
case 'rootline':
$range = isset($this->conf['special.']['range.']) ? $this->parent_cObj->stdWrap($this->conf['special.']['range'], $this->conf['special.']['range.']) : $this->conf['special.']['range'];
$begin_end = explode('|', $range);
return $result;
}
+ /**
+ * Returns the sys_page object
+ *
+ * @return \TYPO3\CMS\Frontend\Page\PageRepository
+ */
+ public function getSysPage() {
+ return $this->sys_page;
+ }
+
+ /**
+ * Returns the parent content object
+ *
+ * @return \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
+ */
+ public function getParentContentObject() {
+ return $this->parent_cObj;
+ }
}
array(
'LLL:EXT:cms/locallang_ttc.xlf:menu_type.I.7',
'6'
+ ),
+ array(
+ 'LLL:EXT:cms/locallang_ttc.xlf:menu_type.I.9',
+ '9'
)
),
'default' => '0'
'size' => '30',
'max' => '255'
)
+ ),
+ 'selected_categories' => array(
+ 'label' => 'LLL:EXT:cms/locallang_ttc.xlf:selected_categories',
+ 'config' => array(
+ 'type' => 'select',
+ 'foreign_table' => 'sys_category',
+ 'foreign_table_where' => 'AND sys_category.sys_language_uid IN (0,-1) ORDER BY sys_category.title ASC',
+ 'size' => 10,
+ 'autoSizeMax' => 50,
+ 'maxitems' => 9999,
+ 'renderMode' => 'tree',
+ 'treeConfig' => array(
+ 'parentField' => 'parent',
+ 'appearance' => array(
+ 'expandAll' => TRUE,
+ 'showHeader' => TRUE,
+ ),
+ ),
+ )
)
),
'types' => array(
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended',
'subtype_value_field' => 'menu_type',
'subtypes_excludelist' => array(
- '2' => 'pages'
+ '0' => 'selected_categories',
+ '1' => 'selected_categories',
+ '2' => 'pages, selected_categories',
+ '3' => 'selected_categories',
+ '4' => 'selected_categories',
+ '5' => 'selected_categories',
+ '6' => 'selected_categories',
+ '7' => 'selected_categories',
+ '8' => 'selected_categories',
+ '9' => 'pages',
)
),
'mailform' => array(
'canNotCollapse' => 1
),
'menu' => array(
- 'showitem' => 'menu_type;LLL:EXT:cms/locallang_ttc.xlf:menu_type_formlabel, --linebreak--, pages;LLL:EXT:cms/locallang_ttc.xlf:pages.ALT.menu_formlabel',
+ 'showitem' => 'menu_type;LLL:EXT:cms/locallang_ttc.xlf:menu_type_formlabel, --linebreak--, pages;LLL:EXT:cms/locallang_ttc.xlf:pages.ALT.menu_formlabel, --linebreak--, selected_categories',
'canNotCollapse' => 1
),
'menu_accessibility' => array(
accessibility_bypass_text varchar(30) DEFAULT '' NOT NULL,
l18n_parent int(11) DEFAULT '0' NOT NULL,
l18n_diffsource mediumblob,
+ selected_categories text,
PRIMARY KEY (uid),
KEY t3ver_oid (t3ver_oid,t3ver_wsid),