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

KunstmaanArticleBundle

Generating a new Article section

Generate the classes for an overview and its detail pages. The detail page is a content page with pageparts and a summary text field. The overview page contains a paginated list of its articles and shows for each article its title and summary and will link to the article page for its full content.

The Articles CRUD can be found under 'Modules' after generation. It's required you create an overview page before you can add new articles. Add your generated overview page as a possible child to any page in your website.

Command

The 'namespace' parameter is required and will determine in which bundle the files will be generated.

The 'entity' parameter is required in order to generated the class names. Most used entity names are "News", "Press", ...

The 'prefix' parameter is optional and will allow you to add a prefix to all table names used by the generated classes.

bin/console kuma:generate:article --namespace=Namespace\\NamedBundle --entity=Entity --prefix=tableprefix_

Generated files

Assuming we generated articles using the following parameters :

bin/console kuma:generate:article --namespace=Kunstmaan\\NewsBundle --entity=news --prefix=news_

The following files will be generated :

  • Kunstmaan/NewsBundle/AdminList/NewsAuthorAdminListConfigurator.php
  • Kunstmaan/NewsBundle/AdminList/NewsPageAdminListConfigurator.php
  • Kunstmaan/NewsBundle/Controller/NewsAuthorAdminListController.php
  • Kunstmaan/NewsBundle/Controller/NewsPageAdminListController.php
  • Kunstmaan/NewsBundle/Entity/Pages/NewsAuthor.php
  • Kunstmaan/NewsBundle/Entity/Pages/NewsOverviewPage.php
  • Kunstmaan/NewsBundle/Entity/Pages/NewsPage.php
  • Kunstmaan/NewsBundle/Form/NewsAuthorAdminType.php
  • Kunstmaan/NewsBundle/Form/Pages/NewsPageAdminType.php
  • Kunstmaan/NewsBundle/Helper/Menu/NewsMenuAdaptor.php
  • Kunstmaan/NewsBundle/Repository/NewsPageRepository.php
  • Kunstmaan/NewsBundle/Repository/NewsOverviewPageRepository.php
  • Kunstmaan/NewsBundle/Resources/config/routing.yml
  • Kunstmaan/NewsBundle/Resources/config/services.yml
  • Kunstmaan/NewsBundle/Resources/views/AdminList/NewsPageAdminList/list.html.twig
  • Kunstmaan/NewsBundle/Resources/views/Pages/NewsOverviewPage/view.html.twig
  • Kunstmaan/NewsBundle/Resources/views/Pages/NewsPage/view.html.twig

Entities

ArticleOverviewPage

The overview page can contain PageParts. The paginated list of articles will be shown under these PageParts. The articles will be shown by 10 per page and shows a teaser for each article containing the title, which will link to the article, and its summary.

ArticlePage

The ArticlePage is the full content page of the article and will show all the PageParts on this page. The summary will now be shown.

The ArticlePage also has a field to select its ArticleAuthor.

ArticleAuthor

The article author has a name and a link.

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