10.1 Erreur de sitemap blog vide

This commit is contained in:
Fred Tempez 2020-05-18 17:48:08 +02:00
parent a25523b638
commit 5647416cbc
1 changed files with 8 additions and 8 deletions

View File

@ -39,14 +39,14 @@
<?php endforeach; ?> <?php endforeach; ?>
<!-- ou articles d'un blog--> <!-- ou articles d'un blog-->
<?php if ($this->getData(['page', $parentId, 'moduleId']) === 'blog' ) { ?> <?php if ($this->getData(['page', $parentId, 'moduleId']) === 'blog' &&
<?php !empty($this->getData(['module',$parentId])) ) { ?>
foreach($this->getData(['module',$parentId]) as $articleId => $article): ?> <?php foreach($this->getData(['module',$parentId]) as $articleId => $article): ?>
<?php if($this->getData(['module',$parentId,$articleId,'state']) === true) {?> <?php if($this->getData(['module',$parentId,$articleId,'state']) === true ): ?>
<li> <li>
<a href="<?php echo helper::baseUrl() . $parentId. '/' . $articleId;?>"><?php echo $article['title']; ?></a> <a href="<?php echo helper::baseUrl() . $parentId. '/' . $articleId;?>"><?php echo $article['title']; ?></a>
</li> </li>
<?php } ?> <?php endif; ?>
<?php endforeach; <?php endforeach;
} ?> } ?>
</ul> </ul>