hasComposition()

* renderRegion()
* draft and published-state handling
* document and placement scheduling
* disabled-placement filtering
* ordered region rendering
* safe fallback when composition tables or document views are missing
* compatibility with common alternative column names
This commit is contained in:
Mark Gregory
2026-07-27 09:43:42 +01:00
parent a211b10e29
commit c972808d0a
22 changed files with 455 additions and 754 deletions
@@ -1,4 +1,7 @@
<?php
declare(strict_types=1);
namespace Modules\Content\Providers;
use Illuminate\Support\ServiceProvider;
@@ -9,14 +12,18 @@ final class ContentServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->mergeConfigFrom(module_path('Content','Config/config.php'),'content');
$this->mergeConfigFrom(__DIR__.'/../Config/config.php', 'content');
$this->app->singleton(PageRenderer::class);
}
public function boot(): void
{
$this->loadMigrationsFrom(module_path('Content','Database/Migrations'));
$this->loadViewsFrom(module_path('Content','Resources/views'),'content');
$this->loadRoutesFrom(module_path('Content','Routes/web.php'));
if ($this->app->runningInConsole()) $this->commands([InstallSaaslandContent::class]);
$this->loadRoutesFrom(__DIR__.'/../Routes/web.php');
$this->loadViewsFrom(__DIR__.'/../Resources/views', 'content');
$this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');
if ($this->app->runningInConsole()) {
$this->commands([InstallSaaslandContent::class]);
}
}
}