FEATURE: temporarily load trainees into all pages
This commit is contained in:
@@ -80,12 +80,12 @@ class Handler implements TemplateHandler
|
|||||||
*/
|
*/
|
||||||
public static function beforeRender(Content & $content)
|
public static function beforeRender(Content & $content)
|
||||||
{
|
{
|
||||||
if ($content->isHomepage) {
|
// if ($content->isHomepage) {
|
||||||
$category = Category::where('url', 'trenersky-tym')
|
$category = Category::where('url', 'trenersky-tym')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
$content->traineeTeamCategory = $category;
|
$content->traineeTeamCategory = $category;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user