Fonction getHomePageId en test
This commit is contained in:
parent
313d23bf2b
commit
3ed6da19a6
|
@ -478,6 +478,18 @@ class common {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retourne l'Id de la homePage de la langue courante
|
||||
* @return string
|
||||
*/
|
||||
public function getHomePageId () {
|
||||
foreach($hierarchy as $hierarchyPageId) {
|
||||
if ($this->setData(['page',$hierarchyPageId,"homePage"]) === true) {
|
||||
return ($hierarchyPageId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Accède à une valeur des variables http (ordre de recherche en l'absence de type : _COOKIE, _POST)
|
||||
* @param string $key Clé de la valeur
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
'selected' => $this->getData(['page', 'homePageId']),
|
||||
'disabled' => true
|
||||
]); ?>
|
||||
<?php echo $this->getHomePageId(); ?>
|
||||
</div>
|
||||
<div class="col8">
|
||||
<?php echo template::text('configTitle', [
|
||||
|
|
|
@ -77,7 +77,7 @@ echo template::formOpen('pageEditForm'); ?>
|
|||
'selected' => $this->getData(['page', $this->getUrl(2), 'modulePosition'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<?php echo template::checkbox('pageHomePage', true, 'Page d\'accueil', [
|
||||
'checked' => $this->getData(['page', $this->getUrl(2), 'homePage']),
|
||||
|
|
Loading…
Reference in New Issue