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

KunstmaanSitemapBundle

After installing this bundle, you can go to the '/en/sitemap' url on your website, a sitemap XML based on the Sitemap protocol will be generated.

You can hide pages from the sitemap by implementing the HiddenFromSitemap interface, this interface will allow you the hide the page and/or its children from the sitemap.

XML

Once the bundle is installed, you will be able to view the generated sitemap XML on the '/en/sitemap.xml' route.

Page

The bundle also has a SitemapPage which can be added to your website, simply add the SitemapPage as a possible child to one of your pages :

    public function getPossibleChildTypes()
    {
        return array(
            array(
                'name' => 'Sitemap Page',
                'class'=> "Kunstmaan\SitemapBundle\Entity\SitemapPage"
            )
        );
    }

And override its template by copying the view.html.twig of the SitemapPage to the the following location 'app/Resources/KunstmaanSitemapBundle/views/SitemapPage'.

{% extends 'YourWebsiteBundle:Page:layout.html.twig' %}

{% block content %}
    <ul class="sitemap">
        {% if nodemenu is defined %}
            {% for topNode in nodemenu.getTopNodes() %}
                {% for node in topNode.getChildren() %}
                    {{ include('KunstmaanSitemapBundle:SitemapPage:entry.html.twig', {'entry' : node})  }}
                {% endfor %}
            {% endfor %}
        {% endif %}
    <ul>
{% endblock %}

Twig extension

This bundle also supplies two new twig extensions, both methods accept a NodeMenuItem as parameter and will return a boolean.

hide_from_sitemap(nodemenuitem)
hide_children_from_sitemap(nodemenuitem)
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.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
babenkoivan/elastic-client
innmind/static-analysis
innmind/coding-standard
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit