185 questions
-4
votes
1
answer
30
views
How to add html class on each table row, for resources list view in Sulu admin UI [closed]
I've created entity, with controller and Admin class, form details and list.
Entities are correctly shown in one html table in Sulu admin area. The question is: is there a way to add html class on ...
0
votes
1
answer
42
views
Get URL to a Sulu page by content id
If I want to create a link to a page in a Sulu twig template, I can use the <sulu-link /> tag, which is fine for most usecases. But sometimes I do not want an anchor tag rendered, but only the ...
0
votes
2
answers
197
views
Can not build admin CMS due to core.js issue
We recently upgraded to sulu cms 2.4.20 (I know, it is outdated) and are trying to manually build the admin js.
Unfortunatly we get the following very persistent errors connected to the jsrouting-...
0
votes
1
answer
59
views
SULU frontend with twig and react
I'm working on a SULU project that uses Twig for the frontend and has a custom webpack for it. I need to use React for certain components, components that require more interaction, state management, ...
0
votes
0
answers
37
views
Sulu CMS 2.5+ add custom links to existing sitemap.xml file
Given I have Sulu CMS 2.5+ project.
I have some pages created via admin. I can see the links to pages in /sitemap.xml.
Also, I have some custom pages which are not handled via SULU core. Let's say I ...
0
votes
1
answer
137
views
Redirect to login instead of 403
I am using Sulu CMF and have a custom controller for the sales process on a website. Only logged-in users with a specific security context may access the pages served by the controller, so the ...
0
votes
1
answer
62
views
Page accessible even though permissions is not granted on Sulu CMF
I have a website created with Sulu CMF. In the webspace settings, security is enabled.
<security permission-check="true">
<system>my_site</system>
</security>
...
-1
votes
1
answer
69
views
Sulu CMF - Reuse content of different webspace
I have Sulu CMF in place with two webspaces, one for US and one for EU. Some pages of the two webspaces are identical, so instead of creating the pages individually for each webspace, I used the page ...
0
votes
0
answers
60
views
Invalidate parent page cache when children get updated
I made a page structure like this:
Parent Category page
Child Page 1
Child Page 2
The parent page use {% set pages = sulu_navigation_tree(uuid) %} to get a list of children page. From that i'm ...
0
votes
1
answer
154
views
How to integrate a website written in React.js into Sulu CMS?
I have a website written in React.js and I need to throw it into Sulu CMS. I have researched how to do this and found ways to do it using API. It seems to me there are much simpler options...
I found ...
-1
votes
1
answer
54
views
Is PHPPageBuilder fit with Kunstmaan or Sulu frameworks? [closed]
I was making some search about PHPPageBuilder, and I saw that it claims to be compatible with all PHP projects.
But does it fit with Kunstmaan or Sulu framework? Because I'm making all my project if ...
0
votes
2
answers
140
views
Remember me function for custom user login in Sulu CMS
I created a website with a user login using Sulu CMF. For the user login, I would like to create a "remember me" checkbox. According to Symfony docs, all that need to be done is
adjust ...
0
votes
1
answer
125
views
When multiple users access the Sulu CMF site, the user context suddenly changes
In order to create a restricted area on a website, I set up User Context Caching following this guide.
https://docs.sulu.io/en/2.5/cookbook/user-context-caching.html
The login, logout works, but when ...
-1
votes
1
answer
99
views
Anonymous users can access restricted URLs on Sulu CMF
I'm trying to create a password-protected area of a webpage using Sulu CMF and have problems making it work properly.
I followed this guide: https://docs.sulu.io/en/2.5/cookbook/user-context-caching....
0
votes
1
answer
141
views
Sulu CMF - Sort order in flat navigation
Beside the main navigation, I want to use a second navigation context to display links in the footer of the homepage.
{% for item in sulu_navigation_root_flat('footer_support', 4) %}
<li><...
1
vote
0
answers
33
views
Setting the custom url dynamically?
The Sulu cookbook says that you can configure the base domain for custom urls in the webspace, e.g.
<custom-urls>
<custom-url>example.com/*</custom-url>
</custom-urls>
So we ...
1
vote
2
answers
206
views
Symfony Sulu Varnish using ESI
We are using Symfony (Sulu) with Varnish as reverse proxy, with tag based invalidation (xkey) which works as expected. Now we want to use ESI for dynamic blocks on our website, separate from the "...
0
votes
1
answer
309
views
SULU CMS - How to solve AWS log problem maxbanton/cwh with Symfony 6/PHP8
I have a project developed in Sulu CMS v2.5.10, and I updated my Symfony to v6, and PHP to v8.2, and in project I have package:
maxbenton/cwh v2.0.4
App is returning next error:
!! PHP Fatal error: ...
0
votes
1
answer
89
views
How to add an internal link to navigation and jump to a specific section of the target page (anchor link) in Sulu?
I am using Sulu as CMS and I want to add an internal link to the main navigation, but the browser should scroll to a specific section of the page.
I do not see any way to add the "#..." part ...
1
vote
0
answers
22
views
Can't set mandatory to true in page_excerpt
I have this page_excerpt.xml located under config/forms/ which works fine:
<?xml version="1.0" ?>
<form xmlns="http://schemas.sulu.io/template/template"
xmlns:xsi=&...
-1
votes
1
answer
41
views
Sulu - Authentication gives no 403
I implemented the authentication in my Sulu app. It works, i can login and logout. The Pages I restricted through the admin page dont show in the Navigation, just as I wanted.
The problem is that you ...
0
votes
1
answer
143
views
How to Display a Document (PDF) in the Browser with Sulu CMS
Is there a simple way to Display a Document like a PDF that was included with the media_selection type. I want it to be displayed in the browser.
Maybe I just didn´t saw it the documentation.
I can ...
0
votes
1
answer
69
views
sulu_snippet_load_by_area returns null
I am facing the same issue described in this one Empty snippet when using "sulu_snippet_load_by_area"
I have this snippet
<?xml version="1.0" ?>
<template xmlns="http:...
-2
votes
1
answer
221
views
How do i get the User information for a LoginPage in Sulu?
im new to Sulu and Symfony. I want to build a site where the admin adds Useres in the adminpage and then the registerd User can login in the Page.
It looks like thats what the User and Role System is ...
0
votes
1
answer
148
views
How to show an error message in a custom view in Sulu admin frontend?
I have added a custom view to a Sulu admin frontend, where I do some very custom things. Now, I want to be able to show an error message at the top of the site.
It should look like this:
But I do not ...
3
votes
1
answer
290
views
How do I add smart content fixtures in Sulu CMS?
I am creating the homepage fixtures for a Sulu application.
I have created a service page type, and I have created a custom type to use on the homepage called service_slider, which is a slider of ...
0
votes
1
answer
180
views
How to define a default sorting in a Sulu admin list view
I have created a REST controller for a custom entity that should be administrated by the backend of the Sulu CMS. My implementation is analog to this example.
Now I want to define a default sorting at ...
0
votes
0
answers
88
views
The controller for URI "/ovio" is not callable: Controller "ovio.controller" does neither exist as service nor as class
I am building an api bundle for sulu but when im configuring routes to my controller i get the error 'The controller for URI "/ovio" is not callable: Controller "ovio.controller" ...
0
votes
1
answer
389
views
How to create a link to a page managed by Sulu?
I am using Sulu as CMS and added some pages. Additionally I have some custom Symfony actions with their own twig templates.
Now I want to add a link into the twig template that directs the user to one ...
0
votes
0
answers
117
views
Symfony ~ SULU - Property from "route" to "resource_locator"
In the exemple i made in the pictures, i change the property "url" of "Mathématique" page type from "route" type to "resource_locator" but this one is skipped ...
0
votes
1
answer
286
views
sulu CMS admin ui not showing data
i'm trying display the list from the controller, all the routes are loading but the data is not displaying
#[Route(path: '/admin/api/products', methods: ['GET'], name: 'app.get_products')]
...
0
votes
1
answer
191
views
Disable form fields in Sulu's admin frontend after the entity has been persisted
I'd like to connect the key of a category in the Sulu CMS with specific business logic. But therefore the key must not be changeable in the admin area. Is there a way to disable a form field once the ...
1
vote
1
answer
376
views
How to load the following sulu snippet in the twig.html file
I have created the following social media snippet with sulu (headless cms) and now I want to use it in my twig.html file. The only problem is that I don't understand which variables I use to get it ...
0
votes
1
answer
126
views
How can I use the a cache manager in Symfony?
I my contoller I try to clear the cache when updating a page
protected function mapDataToEntity(array $data, Project $entity): void{
$entity->setName($data['name']);
$cacheManager = $...
1
vote
1
answer
172
views
No permission to webspace after changing webspace key
I am new to Sulu and trying to learn using it for a new project. After playling around a bit I wanted to change the platform key.
After that, the admin interface didn't show the Webspaces tab anymore.
...
3
votes
1
answer
2k
views
form_errors() not displaying errors
I've run into a somewhat bizarre and frustrating problem with Symfony (6.1.4) forms. I'm also using Sulu CMS (hence the call to renderStructure() in my controller below) but the issue I'm having seems ...
0
votes
2
answers
434
views
Sulu CMS - Change the default locale provider
I need to open the language version of the site according to the browser language and IP address.
I'm trying to use my Locale Provider as suggested in the documentation.I copy the ...
0
votes
1
answer
349
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
299
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
457
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
104
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 ...
0
votes
2
answers
848
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>
...
1
vote
1
answer
486
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
527
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
377
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
258
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
205
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;
...
1
vote
1
answer
396
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
122
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
268
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 ...