Set up a multilingual site. During installation, install localized content.
// Get Category (en-gb)
$category = JCategories::getInstance('Content')->get(8, true);
var_dump(
// Should be NULL
$category->getSibling(true)->title,
// Should be Uncategorised
$category->getSibling(false)->title
);
// Get Category (en-gb)
$category = JCategories::getInstance('Content')->get(8);
var_dump(
// Should be NULL
$category->getSibling(true)->title,
// Should be Uncategorised
$category->getSibling(false)->title
);
1 and 2) Uncategorised should be left sibling:
NULL string(13) "Uncategorised"
NULL string(16) "Category (en-gb)"
NULL NULL
3.9 nightly, PHP 7.3.8
Labels |
Added:
?
|
Labels |
Added:
J3 Issue
|
Status | New | ⇒ | Discussion |
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-03-25 17:43:01 |
Closed_By | ⇒ | SharkyKZ |