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