sulu | Core framework that implements functionality | Content Management System library

 by   sulu PHP Version: 2.5.9 License: MIT

kandi X-RAY | sulu Summary

kandi X-RAY | sulu Summary

sulu is a PHP library typically used in Web Site, Content Management System, Symfony, Framework applications. sulu has no bugs, it has a Permissive License and it has medium support. However sulu has 5 vulnerabilities. You can download it from GitHub.

Sulu is a highly extensible open-source PHP content management system based on the Symfony framework. Sulu is developed to deliver robust multi-lingual and multi-portal websites while providing an intuitive and extensible administration interface to manage the full content lifecycle. Have a look at the official Sulu website for a comprehensive list of Sulu's features, core values and use cases. This repository contains the core framework of the Sulu content management system. The framework implements the functionality that is built into the Sulu content management system and therefore is a dependency of all Sulu projects. If you want to start a new Sulu project, you might be interested in the sulu/skeleton template repository. If you are planning to extend your existing Sulu project, visit the Sulu organization on GitHub for a complete list of official Sulu bundles.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              sulu has a medium active ecosystem.
              It has 984 star(s) with 310 fork(s). There are 54 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 430 open issues and 1950 have been closed. On average issues are closed in 145 days. There are 42 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of sulu is 2.5.9

            kandi-Quality Quality

              sulu has 0 bugs and 0 code smells.

            kandi-Security Security

              sulu has 5 vulnerability issues reported (0 critical, 2 high, 3 medium, 0 low).
              sulu code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              sulu is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              sulu releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not available.
              It has 131213 lines of code, 11009 functions and 3525 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed sulu and discovered the below as its top functions. This is intended to give you an instant insight into sulu implemented functionality, and help decide if they suit your requirements.
            • Unaccent a string
            • Prepend contact configuration .
            • Initializes the field descriptors .
            • Find entities by filters .
            • Returns the route collection for the given request .
            • Convert row to array .
            • Modify a media entity .
            • Initializes the contact field fields .
            • Initializes the Doctrine FieldDescriptors .
            • Find url by resource locator .
            Get all kandi verified functions for this library.

            sulu Key Features

            No Key Features are available at this moment for sulu.

            sulu Examples and Code Snippets

            No Code Snippets are available at this moment for sulu.

            Community Discussions

            QUESTION

            How to persist users' uploads in a sulu application deployed with docker?
            Asked 2022-Mar-17 at 17:45

            I set up the symfony-docker configuration in a sulu application. Everything works fine in development thanks to the bind mount of the app root directory. But in production, the media files uploaded by the user are not persisted when containers are restarted.

            I tried adding a volume like that, in docker-compose.yml (in the php service or in the caddy service):

            ...

            ANSWER

            Answered 2022-Mar-17 at 17:45

            Thumbnails are not generated on upload they are generated the first time you request them. This saves a lot of space as not every image is needed in every size.

            An example docker setup for development only can be found here:

            https://github.com/dunglas/symfony-docker/blob/main/docker-compose.yml

            In a normal linux setup you need to make sure that your webserver user / php fpm user is allowed to access the public/uploads directory this is done via:

            Source https://stackoverflow.com/questions/71516508

            QUESTION

            Select value in xml field with mysql
            Asked 2022-Feb-02 at 13:14

            I have a field in a sulu cms database.

            Table phpcr_nodes and field props

            This field is stocked in XML like this:

            ...

            ANSWER

            Answered 2022-Feb-02 at 13:14

            If you need to write queries to PHPCR you should use the jackalope abstraction and its query builder so you can write normal SQL 2 queries and jackalope will convert them based on your adapter into the correct SQL query.

            If you are interested how jackalope is converting SQL 2 query into SQL queries have a look at its QOMWalker implementation:

            https://github.com/jackalope/jackalope-doctrine-dbal/blob/master/src/Jackalope/Transport/DoctrineDBAL/Query/QOMWalker.php

            Source https://stackoverflow.com/questions/70954479

            QUESTION

            Child page extends base.html.twig BUT content of base.html.twig is not rendered
            Asked 2021-Dec-20 at 07:25

            I am working with sulu cms and symfony. Just started with the project. This is my base.html.twig

            ...

            ANSWER

            Answered 2021-Dec-16 at 14:29

            Did you create the sulu project using the create-project command like in the docs. Then you should be under dev environment. Check that by go into your local .env.local and check if there it is set to APP_ENV=dev so changes will automatically be detected and no cache clear is required. This is for development only!!!

            If you are on a prod server make sure the clear all cache. This includes admin and website cache:

            Source https://stackoverflow.com/questions/70377334

            QUESTION

            Sulu CMS - Visiblity condition from underlying value of resource single selection
            Asked 2021-Nov-15 at 15:43

            I have three entities Provision, Gatekeeper and Data.

            ...

            ANSWER

            Answered 2021-Nov-11 at 17:35

            This is not possible you only have access to the raw form data. For a single selection the gatekeeper value contains only the id of the selected element. Not any data of the element behind this element.

            All data you have access to it, you see in save (POST/PUT) request of the form.

            The only thing which is possible would be using resource_store_properties_to_request to filter the result of your data_selection by the gatekeeper id, this requires that your data api need to keep the gatekeeper parameter in mind to filter by it:

            Source https://stackoverflow.com/questions/69932345

            QUESTION

            Sulu CMF - Pass parameter to autocomplete field in FormOverlayList add form
            Asked 2021-Sep-10 at 15:06

            This question is a followup.

            I have two entities DataSet and DataGroup.

            ...

            ANSWER

            Answered 2021-Sep-10 at 15:06

            Thanks a lot for the detailed description! Unfortunately, I am afraid that it is not possible to implement what you are trying to do while using the built-in autocomplete component at the moment.

            The resource_store_properties_to_request param reads the values from the data of the form that renders the autocomplete component. If you are creating a new DataGroup entity, the data of the form is empty (because there is now existing data for a new entity) and therefore the resource_store_properties_to_request param is not able to read a dataSetId value.

            I am sorry to say, but I think you would need to implement a custom autocomplete field-type that reads the dataSetId value from the current url to achieve the desired functionality. If you are interested in doing this, I would recommend to have a look at the basic field-type example in the sulu-demo repository.

            Source https://stackoverflow.com/questions/69120159

            QUESTION

            Sulu: Including custom entity in admin search
            Asked 2021-Aug-31 at 07:48

            While evaluating Sulu (read: I’m a Sulu newbie), I added a custom entity. In the entity’s list XML configuration I used searchability="yes" on some properties, which works for defining which properties are used for filtering the list of entities.

            But (other than I would have expected) this attribute does not have any effect on the global admin search. So my question ist: how can I achieve that my custom entities are found in the global Sulu admin search?

            I did not find any information on this in the cookbook nor in the sulu-demo repository.

            ...

            ANSWER

            Answered 2021-Aug-31 at 07:48

            As you have already noticed, the properties in the list configuration are used only for displaying the list in the administration interface. The list configuration is separated from the global search functionality.

            The search functionality of the administration interface is implemented by the SuluSearchBundle. It builds upon another bundle called the MassiveSearchBundle. If you want to integrate your custom entity with the global search functionality, you need to do two things:

            1. Configure the MassiveSearchBundle to index the data of your custom entity. The MassiveSearchBundle documentation should explain how to do this.
            2. Register the index in the SuluSearchBundle to make it searchable via the administration interface. This step is described in the Sulu documentation.

            Source https://stackoverflow.com/questions/68979919

            QUESTION

            How to store tags to custom entity?
            Asked 2021-Jun-09 at 14:03

            I have custom entity and tag field defined as:

            ...

            ANSWER

            Answered 2021-Jun-09 at 10:26

            You can use the TagManager service (id: sulu_tag.tag_manager or Sulu\Bundle\TagBundle\Tag\TagManagerInterface):

            Source https://stackoverflow.com/questions/67900009

            QUESTION

            Sulu: adding tags field to custom entity
            Asked 2021-Jun-08 at 13:41

            How to add tags field to custom entity? What kind of (doctrine) field type it should be? I can't find any documentation nor example about that.

            Update:

            I followed @Prokyon's instructions and added field to my custom entity and not it looks like this:

            ...

            ANSWER

            Answered 2021-Jun-08 at 13:41

            Best way is to take a look at existing sulu entities with tags e.g. Account or Contact.

            The property can be implemented like this:

            Source https://stackoverflow.com/questions/67886969

            QUESTION

            Sulu: how to make custom entity translatable?
            Asked 2021-May-28 at 13:47

            So I have my custom entity type, created it by following official tutorial:

            https://docs.sulu.io/en/2.2/book/extend-admin.html

            However entity I got is not translatable like i.e. standard pages or articles. I also didn't any info on how to make it translatable. Expected behavior is just to work as those standard types. How to achieve that?

            ...

            ANSWER

            Answered 2021-May-28 at 13:47

            There are basically three things to do:

            1. You have to add a new Translation entity for your custom entity. So if you have an Event entity, you need an additional EventTranslation entity. See https://github.com/sulu/sulu-workshop/tree/master/src/Entity

            2. You need to tell Sulu, that your custom entity is translatable by adding the available locales to the view in your AppAdmin class, see https://github.com/sulu/sulu-workshop/blob/master/src/Admin/EventAdmin.php#L74

            3. You need to adjust your custom entity's admin controller (it will receive a locale request parameter now) to persist the localized properties to the CustomEntityTranslation instead of the CustomEntity iself, see https://github.com/sulu/sulu-workshop/blob/master/src/Controller/Admin/EventController.php

            So as conclusion, Sulu is only responsible for showing the locale switcher in the upper right corner and appending the current selected locale as locale parameter to your api calls. Everything else is completely up to you, you have to implement that like in a normal symfony application

            Source https://stackoverflow.com/questions/67739199

            QUESTION

            Sulu: custom data provider, enableTypes() parameters
            Asked 2021-May-28 at 07:40

            I'm following official sulu documentation about creating custom data provider:

            https://docs.sulu.io/en/2.2/cookbook/smart-content-data-provider.html#dataprovider

            Here, inside ExampleDataProvider class, inside getConfiguration() method there is chunk of code:

            ...

            ANSWER

            Answered 2021-May-27 at 14:15

            Yes you are right, this is for the filtering by types. These types are e.g. the template-keys for pages and the title is for the translation in the admin ui.

            The selected types can be used in your CustomDataProvider with the Sulu/Component/Content/SmartContent/QueryBuilder to filter the items by a specific type.

            The DataProviderRepositoryTrait uses the type-filtering on the these lines. You can also overwrite the appendTypeRelation method, if the alias is not correct for your custom entity.

            But if you don't need filtering by types, you can just ignore it.

            Source https://stackoverflow.com/questions/67723206

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install sulu

            The sulu/skeleton repository provides a pre-configured project template to quick-start your development. Visit the official Sulu documentation to find out how to use the project template for starting your own Sulu project.

            Support

            The sulu/skeleton repository provides a pre-configured project template to quick-start your development. Visit the official Sulu documentation to find out how to use the project template for starting your own Sulu project.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Content Management System Libraries

            Try Top Libraries by sulu

            sulu-standard

            by suluPHP

            skeleton

            by suluPHP

            sulu-demo

            by suluPHP

            sulu-minimal

            by suluPHP

            SuluFormBundle

            by suluPHP