Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/11/23 in all areas

  1. https://github.com/nabeelio/phpvms/blob/15563e1181dd4b6ae38e161fadb733c6a8392333/resources/views/layouts/default/dashboard/index.blade.php#L83 https://github.com/FatihKoz/DisposableTheme/blob/50ad455eb8ae4f3565723d0dbc1e70f13fee4016/resources/views/layouts/Disposable_v3/dashboard/index.blade.php#L40C44-L40C44 {{ Widget::latestNews(['count' => 3]) }} @widget('latestNews', ['count' => 3]) Both will end up loading the Latest News widget with last 3 news you entered.
    1 point
  2. This is not related to an addon route or page (because DBasic.news is a page to display all news, not a widget to place somewhere) What you need to do is, placing latest news widget (which is a part of phpvms v7 itself) to your home.blade.php. You can check the default theme's dashboard/index.blade.php or disposable theme's dashboard/index.blade.php to see how widgets are placed in blades. Also Dispo Basic's readme file explains the general logic about placing widgets and configuring them. Even though it gives examples for its own widgets, similar calls can be used for default widgets (like latest news, latest pireps, latest pilots, livemap etc) Good luck
    1 point
×
×
  • Create New...