recherche dans blog ou news avec data_module
This commit is contained in:
parent
7a3a53f552
commit
86db68efeb
|
@ -18,7 +18,7 @@
|
|||
|
||||
class search extends common {
|
||||
|
||||
const VERSION = '3.4';
|
||||
const VERSION = '3.5';
|
||||
const REALNAME = 'Recherche';
|
||||
const DELETE = true;
|
||||
const UPDATE = '0.0';
|
||||
|
@ -88,9 +88,9 @@ class search extends common {
|
|||
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '3.2' ]);
|
||||
}
|
||||
// Mise à jour 3.4
|
||||
if (version_compare($versionData, '3.4', '<') ) {
|
||||
if (version_compare($versionData, '3.5', '<') ) {
|
||||
// Mettre à jour la version
|
||||
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '3.4' ]);
|
||||
$this->setData(['module',$this->getUrl(0),'config', 'versionData', '3.5' ]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -321,10 +321,10 @@ class search extends common {
|
|||
}
|
||||
|
||||
// Articles d'un blog ou de news
|
||||
if ( $this->getData(['page', $parentId, 'moduleId']) === 'blog' || $this->getData(['page', $parentId, 'moduleId']) === 'news'
|
||||
&& $this->getData(['module',$parentId,'posts']) ) {
|
||||
foreach($this->getData(['module',$parentId,'posts']) as $articleId => $article) {
|
||||
if($this->getData(['module',$parentId,'posts',$articleId,'state']) === true)
|
||||
if ( ($this->getData(['page', $parentId, 'moduleId']) === 'blog' || $this->getData(['page', $parentId, 'moduleId']) === 'news')
|
||||
&& $this->getData(['data_module',$parentId,'posts']) ) {
|
||||
foreach($this->getData(['data_module',$parentId,'posts']) as $articleId => $article) {
|
||||
if($this->getData(['data_module',$parentId,'posts',$articleId,'state']) === true)
|
||||
{
|
||||
$url = $parentId. '/' . $articleId;
|
||||
$titre = $article['title'];
|
||||
|
|
Loading…
Reference in New Issue