File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -73,5 +73,12 @@ public function register()
7373 return new CacheDecorator ($ repository , $ laravelCache );
7474 });
7575
76+ /**
77+ * Return the page linked to this module (for @inject in views)
78+ */
79+ $ app ->singleton ('typicms.places.page ' , function (Application $ app ) {
80+ return TypiCMS::getPageLinkedToModule ('places ' );
81+ });
82+
7683 }
7784}
Original file line number Diff line number Diff line change 11@extends (' pages::public.master' )
2- <?php $ page = TypiCMS :: getPageLinkedToModule ( ' places' ) ? >
2+ @inject ( ' page' , ' typicms. places.page ' )
33
44@section (' bodyClass' , ' body-places body-places-index body-page body-page-' . $page -> id )
55
Original file line number Diff line number Diff line change 11@extends (' core::public.master' )
2- <?php $ page = TypiCMS :: getPageLinkedToModule ( ' places' ) ? >
2+ @inject ( ' page' , ' typicms. places.page ' )
33
44@section (' title' , $model -> title . ' – ' . trans (' news::global.name' ) . ' – ' . $websiteTitle )
55@section (' ogTitle' , $model -> title )
You can’t perform that action at this time.
0 commit comments