mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-07 12:28:42 +00:00
Pass uri query parameter
This commit is contained in:
parent
0426c06677
commit
9d75c1af95
|
|
@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td><?= $this->getText('Date'); ?>
|
||||
<tbody>
|
||||
<?php $count = 0; foreach($newsList as $key => $news) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/news/article?id=' . $news->getId());
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/news/article?{?}id=' . $news->getId());
|
||||
$color = 'darkred';
|
||||
if($news->getType() === \Modules\News\Models\NewsType::ARTICLE) { $color = 'green'; }
|
||||
elseif($news->getType() === \Modules\News\Models\NewsType::HEADLINE) { $color = 'purple'; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user