sulu | Core framework that implements functionality | Content Management System library
kandi X-RAY | sulu Summary
kandi X-RAY | sulu Summary
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
Top functions reviewed by kandi - BETA
- 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 .
sulu Key Features
sulu Examples and Code Snippets
Community Discussions
Trending Discussions on sulu
QUESTION
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:45Thumbnails 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:
QUESTION
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:14If 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:
QUESTION
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:29Did 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:
QUESTION
I have three entities Provision
, Gatekeeper
and Data
.
ANSWER
Answered 2021-Nov-11 at 17:35This 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:
QUESTION
This question is a followup.
I have two entities DataSet
and DataGroup
.
ANSWER
Answered 2021-Sep-10 at 15:06Thanks 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.
QUESTION
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:48As 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:
- Configure the
MassiveSearchBundle
to index the data of your custom entity. TheMassiveSearchBundle
documentation should explain how to do this. - Register the index in the
SuluSearchBundle
to make it searchable via the administration interface. This step is described in the Sulu documentation.
QUESTION
I have custom entity and tag field defined as:
...ANSWER
Answered 2021-Jun-09 at 10:26You can use the TagManager service (id: sulu_tag.tag_manager
or Sulu\Bundle\TagBundle\Tag\TagManagerInterface
):
QUESTION
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:41Best way is to take a look at existing sulu entities with tags e.g. Account
or Contact
.
The property can be implemented like this:
QUESTION
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:47There are basically three things to do:
You have to add a new
Translation
entity for your custom entity. So if you have anEvent
entity, you need an additionalEventTranslation
entity. See https://github.com/sulu/sulu-workshop/tree/master/src/EntityYou 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#L74You need to adjust your custom entity's admin controller (it will receive a
locale
request parameter now) to persist the localized properties to theCustomEntityTranslation
instead of theCustomEntity
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
QUESTION
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:15Yes 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.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sulu
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page