We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc95f9 commit b5e96a5Copy full SHA for b5e96a5
Model/Post.php
@@ -990,6 +990,18 @@ public function getDynamicData()
990
}
991
$data['tags'] = $tags;
992
993
+ $relatedPosts = [];
994
+ foreach ($this->getRelatedPosts() as $relatedPost) {
995
+ $relatedPosts[] = $relatedPost->getDynamicData();
996
+ }
997
+ $data['related_posts'] = $relatedPosts;
998
+
999
+ $relatedProducts = [];
1000
+ foreach ($this->getRelatedProducts() as $relatedProduct) {
1001
+ $relatedProducts[] = $relatedProduct->getData();
1002
1003
+ $data['related_products'] = $relatedProducts;
1004
1005
$categories = [];
1006
foreach ($this->getParentCategories() as $category) {
1007
$categories[] = $category->getDynamicData();
0 commit comments