Questions tagged [sulu]
Sulu is a content management platform based on Symfony made for businesses.
150
questions
0
votes
1
answer
43
views
How to persist users' uploads in a sulu application deployed with docker?
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 ...
0
votes
1
answer
40
views
Sulu CMS - Page icon for navigation context
I want to present a set of selectable icons to choose one from for each page. When selected, the icon should be available in navigation context data, e.g. via Sulu\HeadlessBundle:
{
"...
0
votes
1
answer
42
views
Select value in xml field with mysql
I have a field in a sulu cms database.
Table phpcr_nodes and field props
This field is stocked in XML like this:
<?xml version="1.0" encoding="UTF-8"?>
<sv:node xmlns:sv=&...
0
votes
1
answer
22
views
ArticleBundle Draft article list visibility
Helo, developers...
I am using SULU CMS, and as an option I installed ArticleBundle... Now, it is, basically working, but I have strange thing going on...
Everything I am describing now is in admin ...
1
vote
0
answers
44
views
Sulu CMS - Custom form field validator?
I have a text_area form field that has some non-trivial requirements for validity:
A list of disallowed characters
A list of allowed special characters
A maximum character count, but some characters ...
0
votes
2
answers
141
views
Child page extends base.html.twig BUT content of base.html.twig is not rendered
I am working with sulu cms and symfony. Just started with the project.
This is my base.html.twig
<!DOCTYPE html>
<html lang="{{ app.request.locale|split('_')[0] }}">
<head>
...
0
votes
0
answers
19
views
Remove filters between tabs in Sulu ArticleBundle
I have a situation. I use ArticleBundle, and as part of it, I added one type, and now I have articles listed in tabs by type. Problem is when I use some filter, or pagination on one tab, it stays when ...
0
votes
1
answer
23
views
How to load a default snippet from a template in sulu?
I'm trying to use a snippet to store a contact address meant to be displayed in the footer of every page.
Following the doc (https://docs.sulu.io/en/2.3/cookbook/default-snippets.html), I created a ...
0
votes
1
answer
60
views
Sulu CMS - Visiblity condition from underlying value of resource single selection
I have three entities Provision, Gatekeeper and Data.
class Provision {
private Gatekeeper $keeper; // ManyToOne
private Collection $points; // ManyToMany
}
class Gatekeeper {
private int ...
0
votes
1
answer
82
views
Empty snippet when using "sulu_snippet_load_by_area"
The snippet return "null" when I try to get it in my varaible.
{% set snippets = sulu_snippet_load_by_area('banner') %}
{{ dump(snippets) }}
and
<key>banner</key>
<meta>...
-1
votes
1
answer
79
views
how to create a twig template header in all page in SULU?
I want to create an header with can be display or not in all page thanks to a checkbox in back office. I create the twig component and the link can be change in BO. I don't know how to applie with ...
-1
votes
1
answer
61
views
Sulu CMF - Pass parameter to autocomplete field in FormOverlayList add form
This question is a followup.
I have two entities DataSet and DataGroup.
class DataSet {
string $name;
Collection $groups; // Collection<int, DataGroup>
}
class DataGroup {
string $name;
...
0
votes
1
answer
118
views
Sulu: Including custom entity in admin search
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 ...
0
votes
1
answer
76
views
Sulu CMF - CRUD Filtered Multi-Item-Selection for association entities
I have three entities:
class DataSet {
string $name;
Collection $points; // List<DataPoint>
Collection $groups; // List<DataGroup>
}
class DataGroup {
string $name;
Collection $...
1
vote
1
answer
98
views
Sulu CMF - Filtered Single autocomplete selection for associated entity
I have two entities:
class DataSet {
string $name;
Collection $groups; // List<DataGroup>
}
class DataGroup {
string $name;
DataSet $set;
DataGroup $nextGroup;
}
I created some basic ...
0
votes
1
answer
46
views
Additional field in articles from custom template
I have a problem. In elastic search, we have data returned as follows:
"uuid": "8f39a450-64c2-407c-9836-32ed3b4db1ce",
"locale": "de",
"title": "...
0
votes
1
answer
71
views
Excerpt and taxonomies on SULU Admin
how can I hide or disable "Excerpt and taxonomies" tab on SULU Admin UI, on my custom page template?
0
votes
1
answer
37
views
How do I enable Sulu API to guest accounts?
I am looking to find a way how to enable Sulu (Admin?) API accessible outside admin area.
To be more specified, to be accessible without account (session).
For example route "/admin/api/snippets&...
0
votes
1
answer
83
views
sulu 2.2: Ist there a way that categories in the category_selection content type are sorted automatically by name?
Is there a way that the displayed categories of the category_selection content type are sorted by name rather then id? They are loaded via ajax from the api like http://localhost:8000/admin/api/...
0
votes
1
answer
29
views
ListBuilder not filtering with createInExpression
I have asked already on Slack, but maybe someone will answer here.
I wanted to filter list in adminUI so I can get only items I need, and I used createInExpression. Code I set is:
if($request->...
0
votes
1
answer
74
views
How to use single_media_upload
I am looking for an example for simple use of single_media_upload in SULU AdminUI.
I have a player form, and it has single_media_selection type of field, and it works OK.
Now, how can I use ...
0
votes
1
answer
49
views
Any example for sulu 2.x under kubernetes?
I'm in trouble having sulu 2.x working in kubernetes.
There is an example for sulu 1.4 here but there are some 1.4 specificities.
I'm wondering if their is any example for sulu 2.x ?
If not, any ...
0
votes
3
answers
101
views
How to store tags to custom entity?
I have custom entity and tag field defined as:
/**
* @ORM\ManyToMany(targetEntity="Sulu\Bundle\TagBundle\Tag\TagInterface")
* @ORM\JoinTable(name="venue_tags",
* ...
0
votes
1
answer
70
views
Sulu: adding tags field to custom entity
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 ...
-1
votes
2
answers
85
views
One to many selected items
I have 2 entities:
Teams (id, name, short_name...)
TeamMembers (id, teams_id, player_id)
In admin, I have multiselect field, and on submit it sends ids array. How can I save it in related table?
Here ...
3
votes
2
answers
154
views
Sulu media display in list
I created an Entity, PlayerInfo. Inside of that, I have photo field and defined MediaInterface, and use it with that. In adminUI everything is shown OK, in Frontend too, but when I got an idea to show ...
0
votes
1
answer
52
views
Sulu: Entity has no field or association error
I'm following Sulu example here: https://github.com/sulu/sulu-workshop/
trying to set translations for custom entity type.
My entity file has getter for field "home_team" defined like:
/**
*...
0
votes
1
answer
101
views
Sulu: How to get related article tag url?
I'm getting related (tagged) news articles like this:
<property name="related" type="smart_content">
<!-- @see https://docs.sulu.io/en/2.2/reference/content-types/...
0
votes
1
answer
208
views
Sulu: how to make custom entity translatable?
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 ...
0
votes
2
answers
103
views
Sulu: custom data provider, enableTypes() parameters
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,...
0
votes
1
answer
115
views
Sulu: error when trying to use custom data provider
I'm following docs from here: https://docs.sulu.io/en/2.2/cookbook/smart-content-data-provider.html
Trying to make custom data provider for my custom entity type "MatchEvent":
I did it how ...
0
votes
1
answer
92
views
Sulu smart field type sorting order?
I'm using smart content for displaying custom article type (news). At documentation:
https://docs.sulu.io/en/2.2/reference/content-types/smart_content.html#
it says "Depending on the DataProvider ...
0
votes
1
answer
108
views
Sulu: how to query custom entity type?
I have defined custom entity type "matches" and it is back-end editable, everything works as expected.
Now I need a way to query content in that type. Can smart content field type do that? I ...
0
votes
2
answers
136
views
Sulu, strange hash related error when trying to save page / post?
Until recently everything was working well. Now, when I try to save (create or update) any page or post I get error message at top of the form "Error - There was an error when trying to save the ...
0
votes
1
answer
76
views
Sulu: how to implement "load more" button with smart content?
So I defined my field like this:
<property name="news" type="smart_content">
<!-- @see https://docs.sulu.io/en/2.2/reference/content-types/smart_content.html --...
0
votes
1
answer
125
views
Sulu: custom entity type - FOS rest api routes are missing
I followed Sulu documentations for adding custom entity types to Sulu and at point:
https://docs.sulu.io/en/2.2/book/extend-admin.html#configure-resources
when calling : bin/adminconsole debug:router |...
1
vote
1
answer
93
views
Sulu: Where to place XML file for custom entity?
I'm following documentation for adding custom entities in Sulu:
https://docs.sulu.io/en/2.2/book/extend-admin.html#list-configuration-and-controller
and it describes how to create XML file that ...
1
vote
1
answer
65
views
Sulu2.2 Media Upload page turns blank after loading
Using Chromium, Chrome and Firefox on Ubuntu I get the following error in the Console when trying to open the Admin Media Upload pages:
Error: The list field transformer with the key "icon" ...
0
votes
1
answer
87
views
How to replace the user/contact form in Sulu?
I want to know how to change/replace the user/contact form in Sulu i.e. https://sulu.rocks/admin/#/contacts/1/details.
I want to remove the fields for Addresses, Bank accounts, etc.
I tried to copy ...
1
vote
1
answer
342
views
Adjust ckeditor configuration in Sulu 2.2.1
I try to setup font color with CKeditor5 in Sulu CMS (version 2.2.1), I followed this doc to do this.
So first I've added this line into assets/admin/package.json file (into "dependencies" ...
0
votes
0
answers
40
views
Sort selected contacts as ordered in admin
It's possible to sort contacts when using the contact selection content type in SULU Admin.
However, I found no reference or example how the set order can be used in the respective display-loop.
How ...
0
votes
1
answer
74
views
Create a Block with data from database in Sulu
I need to build a block with data from (Symfony) Entity.
For example a carousel with last 3 item/record from database.
This block can appear in more than just a page.
I know that I can use a custom ...
-1
votes
1
answer
166
views
How add new option at sulu administration interface?
What steps should I follow to add a new option to the left menu of the SULU administration panel? Following the documentation I did not succeed.
0
votes
1
answer
306
views
Sulu image format variations always stored locally even when master image stored on S3
We have configured Sulu to store uploaded media files in S3, however when various image sizes and formats are generated (according to the image formats specified in /config/image-formats.xml) the ...
1
vote
1
answer
178
views
Sulu cache always misses
I'm attempting to set up caching Sulu CMS pages. Locally I have set the environment to prod (tried with dev but switched to prod in case this was the problem), but with cache debug turned on.
config/...
1
vote
0
answers
55
views
Hide Sulu media collection tiles when permissions don't allow viewing of that collections' media
Using Sulu 2.2.3, on the All Media page, all users can see all media collections even if a users' permissions don't allow them to see the images within the collection.
Permissions are working fine - ...
1
vote
1
answer
76
views
Finding related articles
I am using Sulu 2.2 with the article bundle and have defined multiple article types, one of them has a single_article_selection type of field which I use to feature other articles.
ex : article 'A' is ...
0
votes
0
answers
116
views
What is wrong with my SuluSyliusConsumerBundle configuration?
I have a Sulu and a Sylius application which I am trying to integrate using the SuluSyliusBundle and RabbitMQ. I have added the following configs...
messenger.yaml
framework:
router:
resource: &...
2
votes
1
answer
135
views
Symfony security uses the wrong sql table alias during authentication
I am trying to make my own User entity which extends the SuluUser entity (so I can add some properties). After following the instructions from the Sulu documentation: Extend Entities I then created my ...
0
votes
1
answer
102
views
How to make Sulu page no-index by default
I am using Sulu 2.1 with Symfony 4.4
I want to make certain page types have the no-index option on by default when they are first created. Currently no-index is off by default.
Is it possible to ...