Questions tagged [symfony-cmf]

The Symfony2 Content Management Framework (CMF) project makes it easier for developers to add CMS functionality to applications built with the Symfony2 PHP framework.

The Symfony2 Content Management Framework (CMF) project makes it easier for developers to add CMS functionality to applications built with the Symfony2 PHP framework. Key development principles for the provided set of bundles are scalability, usability, documentation and testing.

As of 25 October 2014, the latest stable release is 1.2.

Useful links

174 questions
1
vote
1 answer

Can i use orm entites with SonataDoctrinePhpcrAdminBundle?

How to start using orm enites with Sonata-Admin-bundle if alredy use SonataDoctrinePhpcrAdminBundle ? This is possible ? my composer.json "minimum-stability": "dev", "require": { "php": ">=5.3.3", "symfony/symfony": "2.2.*", …
user974397
  • 13
  • 4
1
vote
1 answer

Method getPhpcrSession class ObjectManager

So I don't have getPhpcrSession method in ObjectManager from where I am trying to get this method. I have found it in here And I need it so that I could implement Block and Content Bundles. I have found on the Net original ObjectManager class and it…
FortuneSoldier
  • 502
  • 3
  • 21
1
vote
1 answer

How does Symfony CMF saves into database?

I get that it saves into PHPCR through Doctrine ODM. But I get that it is all saved in app.sqlite, but I don't see how does it works conceptually ? Why does it need the database at all when everything is saved in app.sqlite? Why do I need to make…
FortuneSoldier
  • 502
  • 3
  • 21
1
vote
2 answers

Symfony CMF Routing

I don't get the difference between Dynamic Router and Chain Router in Symfony2 CMF. I could see that there is a difference in syntax, but I don't get concept. Can someone tell me the difference conceptually?
FortuneSoldier
  • 502
  • 3
  • 21
1
vote
1 answer

Symfony CMF - How to retrieve current node in a controller

I'm trying to retrieve the route node in a Symfony CMF controller. My route was created like : $route = new MultilangRoute(); $route->setDefault('_controller', 'AcmeMainBundle:Demo:news'); $dm->persist($route); How can I get the MultilangRoute…
manuquentin
  • 894
  • 1
  • 11
  • 19
0
votes
0 answers

Replace Symfony 5 default router

Using the CMF code as a reference I am trying to replace the default router with the chain router...not just decorate... public function process(ContainerBuilder $container) { // NOT available using alias for some reason??? $definition =…
Alex.Barylski
  • 2,843
  • 4
  • 45
  • 68
0
votes
0 answers

Symfony CMF/Routing - remove trailing slash

We run symfony v4.4.3, symfony-cmf 2.1.1 and symfony-cmf/routing-bundle 2.0.0. We are using the cmf routing to load routes from db. Symfony 4 should redirect from url with trailing slash to the same url without trailing slash, but it does not…
Huholoman
  • 76
  • 5
0
votes
1 answer

Doctrine don't update properties of cmf SeoBundle object after setting

I use symfony cmf seoBundle. My entity class use SeoAwareTrait. When I try to update my seo properties(i use code below) I get result with old values of properties. $entity = $this->galleryManager->findByLink($link); …
0
votes
1 answer

Symfony CMF chain router: getting 404 error despite route matching

I am building an app with Symfony 4 that can be extended by plugins. Plugins are essentially bundles, but they are just dropped into a folder and don't have to be activated (for example, in config/bundles.php or in config/routes/). In order for…
paolo
  • 2,528
  • 3
  • 17
  • 25
0
votes
1 answer

Symfony CMF Dynamic Router no contentDocument

Following the Dynamic Router doc, I can: Create a route linked to my content (Page entity) Persist it with ORM Load my controller matching the route But as my controller should expect the $contentDocument parameter, I have nothing. Here's how I…
loicb
  • 587
  • 2
  • 6
  • 24
0
votes
1 answer

Symfony - SeoBundle built EMPTY sitemap

I installed SeoBundle and configured the bundle to build a sitemap (docs). AppKernel.php: new Sonata\SeoBundle\SonataSeoBundle(), new Symfony\Cmf\Bundle\CoreBundle\CmfCoreBundle(), new Symfony\Cmf\Bundle\SeoBundle\CmfSeoBundle(), Full bundle…
user3076049
0
votes
1 answer

SeoBundle - title and description are not set

I have configured SeoBundle as stated in docs: sonata_seo: page: title: Default title metas: name: description: Defualt description keywords: key1, key2 cmf_seo: title: seo.title …
user3076049
0
votes
1 answer

Duplicate OneToOne relation by Doctrine and SymfonySeoBundle

I add SEO data to my entity following this article http://symfony.com/doc/current/cmf/bundles/seo/seo_aware.html. class Provider implements SeoAwareInterface { /** * @var SeoMetadataInterface * *…
0
votes
1 answer

Symfony CMF: Unrecognized option "use_sonata_admin" under "cmf_routing.dynamic.persistence.phpcr"

I try to install Symfony CMF with SonataDoctrinePHPCRAdminBundle() and CmfTreeBrowserBundle(). According to docs there's an option in app/config.yml to prevent administrative routes be view-able in admin interface: #…
boehpyk
  • 156
  • 1
  • 9
0
votes
0 answers

Get the user in a RouteProviderInterface implementation

Is it possible to get the user in a RouteProviderInterface implementation? My RouteProviderInterface implementation loads a number of new Routes, nothing special. But I want to customize the Routes based on a user setting, if a user is logged in. If…
BigJ
  • 1,990
  • 2
  • 29
  • 47