Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Bundles Cms Laravel Package

kunstmaan/bundles-cms

Kunstmaan CMS is a full-featured, multilingual CMS built on the Symfony full-stack framework. It offers page and form assembly, versioning, workflow, translation tools, and media management, plus integrations with community bundles.

View on GitHub
Deep Wiki
Context7

Creating Nodes in Your Code

We've provided a PageCreatorService that simplifies the creation of nodes with multiple translations. You can use this class in your own code like controllers, service methods in your Entities but perhaps most notably in migrations. You can implement the ContainerAwareInterface in your migrations and fetch the service from there.

A sample of how you would create a page with an internal name, hooked right under the homepage, for dutch and english and publish it immediately.

        $nodeRepo = $em->getRepository('KunstmaanNodeBundle:Node');
        $homePage = $nodeRepo->findOneBy(array('internalName' => 'homepage'));

        $overviewPage = new ContentPage();
        $overviewPage->setTitle('My Satellites');

        $translations = [];
        $translations[] = ['language' =>  'en', 'callback' => function($page, $translation, $seo) {
            $translation->setTitle('My collection of satellites');
            $translation->setSlug('my-collection-of-satellites');
        }];
        $translations[] = ['language' =>  'nl', 'callback' => function($page, $translation, $seo) {
            $translation->setTitle('Mijn collectie satellieten');
            $translation->setSlug('mijn-collectie-satellieten');
        }];

        $options = [
            'parent' => $homePage,
            'page_internal_name' => 'satellites',
            'set_online' => true,
            'creator' => 'Admin'
        ];

        $pageCreator->createPage($overviewPage, $translations, $options);

Check the PagePartBundle documentation for a service that does something similar but for adding pageparts to a page.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor
spatie/laravel-javascript-views