GithubHelp home page GithubHelp logo

symfony-cmf / tree-browser-bundle Goto Github PK

View Code? Open in Web Editor NEW
22.0 15.0 17.0 857 KB

Integrates javascript tree browser with PHPCR and PHPCR-ODM.

Home Page: https://cmf.symfony.com

License: Other

CSS 2.96% PHP 14.08% JavaScript 72.79% Shell 1.35% Makefile 2.42% Twig 6.39%
symfony symfony-bundle symfony-cmf fancytree

tree-browser-bundle's Introduction

This repository is no longer maintained

Due to lack of interest, we had to decide to discontinue this repository. The CMF project focusses on the Routing component and RoutingBundle, which are still in active use by other projects.

This repository will no longer be upgraded and marked as abandoned, but will be kept available for legacy projects or if somebody wants to experiment with the CMF.

You can contact us in the #symfony_cmf channel of the Symfony devs slack.

Symfony CMF Tree Browser Bundle

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

Branch Travis Coveralls
master Build Status Coverage Status

This package is part of the Symfony Content Management Framework (CMF) and licensed under the MIT License.

The TreeBrowserBundle provides tree navigation for the Content Repository.

Requirements

  • PHP 7.1 / 7.2
  • Symfony 2.8 / 3.3 / 3.4 / 4.0
  • See also the require section of composer.json

Documentation

For the install guide and reference, see:

See also:

Support

For general support and questions, please use StackOverflow.

Contributing

Pull requests are welcome. Please see our CONTRIBUTING guide.

Unit and/or functional tests exist for this package. See the Testing documentation for a guide to running the tests.

Thanks to everyone who has contributed already.

License

This package is available under the MIT license.

tree-browser-bundle's People

Contributors

cordoval avatar dantleech avatar dbu avatar electricmaxxx avatar emmanuelvella avatar fbourigault avatar gabrielsch avatar halundran avatar ivan1986 avatar jakuza avatar kea avatar krizon avatar lsmith77 avatar nacmartin avatar sharsie avatar shieldo avatar th3mouk avatar uwej711 avatar wjzijderveld avatar wouterj avatar xabbuh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tree-browser-bundle's Issues

rename to TreeBrowserBundle

because this bundle abstracts from phpcr to be a generic tree bundle, i suggest we rename this to TreeBrowserBundle to reflect the fact. it will also make the naming easier as i am trying to rebuild the phpcrbrowser with the help of this bundle.

would that be ok with everybody?

/cc @jakuza

chance to debug one incredible slow child section

I got a problem with the treebrowser. Got a path, and that has got not many items, there are some paths with even more, when i open that my complete page stands for some (10-15) seconds. Is ther a chance to debug the ajax-request and determine the issue?

Compact widget tooltip display under page content

When using the compact TreeSelectType inside a sonata admin form, the tooltip is displayed under groups title:
capture d ecran de 2016-08-23 22-53-55

IMHO, it's not about this bundle to care about every display case but, I think there are two solutions:

  1. Have sonata integration bundle override the template to fix the issue
  2. Provide in this bundle a bootstrap3 template as Symfony ship those templates.

ModelManager as sonata dependency

When trying to extract the sonata stuff from routing-bundle i touched the tree-browser for the first time and got to the point that i have to inject the model_manager through the options. Otherwise i got:

Argument 1 passed to Sonata\AdminBundle\Form\DataTransformer\ModelToIdTransformer::__construct() must be an instance of Sonata\AdminBundle\Model\ModelManagerInterface, null given, called in /home/maximilian/OpenSource/Cmf/routing-bundle/vendor/sonata-project/doctrine-phpcr-admin-bundle/Form/Type/TreeModelType.php on line 60 and defined

There i see that the tree-browser has a strong dependency on the sontat-admin stuff.

So, can we wrap that manager somehow to decouple it?

optionally add a switch to enable/disable drag and drop

since accidentally moving nodes around the tree can break a lot of things and because it might not be obvious how to restore (note: we could offer an undo) it might be good to offer an optional switch to enable/disable move mode

Move Tree form type to this bundle?

It sounds much more logical to move the Tree form type from the SonataDoctrinePhpcrBundle to this bundle, so it can be used by any library depending on TreeBrowserBundle.

integrate jstree plugin cookies

The jstree has a cookies plugin that allows to store information about the tree state in cookies. That way the tree stays opened and nodes will be loaded automatically. This requires the jquery.cookie.js plugin to be present.

Context menu does not handle "all" option for valid children

The context menu which should allow you to create new child nodes and delete nodes does not currently handle the configuration option where you set "all" in the sonata_doctrine_phpcr_admin.document_tree for valid children.

sonata_doctrine_phpcr_admin:
    document_tree:
        Symfony\Cmf\Bundle\SimpleCmsBundle\Doctrine\Phpcr\Page:
            valid_children:
                - all

This will result in NO 'Create' option appearing in the submenu, whereas what it should do is add all of the items in config.types to the submenu. This should be a relatively simple change in the init.js file.

This might be as simple as assigning valid_children to config.types if its value is "all" on line 107 (right before the the each loop)

valid_children = config.types[nodetype].valid_children === 'all' ? config.types : config.types[nodetype].valid_children;

Not sure if there would be some better way of letting this script know about the special all value but i think that would solve the issue.

Symfony CMF StaticContent show all child blocks in PHPCTRee?

Does anybody know how I can make all child blocks show up on the CMF Tree in the Sonata Admin for the StaticContent class? The way our system uses the Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent class is to just use it as a content document that we can attach other blocks to. I thought that was the purpose of the ContentBundle. Instead only blocks inside of this additionalInfoBlock container block appear in the tree. Unless I am doing something wrong.

I have looked at
Symfony/Cmf/Bundle/ContentBundle/Resources/config/doctrine-model/StaticContent.phpcr.xml:


There has to be way to get all the child blocks show. I just dont want to start hacking the PHPCRTree class to do this. Do I extend StaticContent and hopefully it will show all children? How do I go about this if that is the answer. Or is there another setting.

See this image below of what I can see in jackrabbitexplorer vs what is in the CMF Tree in the Sonata admin
screen shot 2014-01-15 at 1 49 30 pm

I have tried from other posts changing the configuration settings:

I first tried....

sonata_doctrine_phpcr_admin:
document_tree_defaults: [locale]
document_tree:
Doctrine\ODM\PHPCR\Document\Generic:
valid_children:
- all
Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent:
valid_children:
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\StringBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\SimpleBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ContainerBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ReferenceBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ActionBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\SlideshowBlock
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\RssBlock

No luck so I tried....

sonata_doctrine_phpcr_admin:
document_tree_defaults: [locale]
document_tree:
Doctrine\ODM\PHPCR\Document\Generic:
valid_children:
- all
Symfony\Cmf\Bundle\ContentBundle\Doctrine\Phpcr\StaticContent:
valid_children:
- all

Also, no luck.

I think it has to do with StaticContent or the json being returned as children which are just those additionalInfoBlock but not all children of StaticContent.

Handle root node not found

It seems currently that if I specify a non-existant node as the root_node in doctrine_phpcr_type_tree_model the backend throws an Exception. I guess it would be good to catch this error and tell the user that the specified root node does not exist.

[exception] 500 | Internal Server Error | Doctrine\Common\Persistence\Mapping\MappingException
[message] The class 'Doctrine\Common\Util\ClassUtils' was not found in the chain configured namespaces Doctrine\ODM\PHPCR\Document, Symfony\Cmf\Bundle\MenuBundle\Document, Symfony\Cmf\Bundle\ContentBundle\Document, Symfony\Cmf\Bundle\BlockBundle\Document, Symfony\Cmf\Bundle\SimpleCmsBundle\Document, Symfony\Cmf\Bundle\BlogBundle\Document, Symfony\Cmf\Bundle\CreateBundle\Document, Sandbox\MainBundle\Document, Symfony\Cmf\Bundle\RoutingExtraBundle\Document, Symfony\Component\Routing
[1] Doctrine\Common\Persistence\Mapping\MappingException: The class 'Doctrine\Common\Util\ClassUtils' was not found in the chain configured namespaces Doctrine\ODM\PHPCR\Document, Symfony\Cmf\Bundle\MenuBundle\Document, Symfony\Cmf\Bundle\ContentBundle\Document, Symfony\Cmf\Bundle\BlockBundle\Document, Symfony\Cmf\Bundle\SimpleCmsBundle\Document, Symfony\Cmf\Bundle\BlogBundle\Document, Symfony\Cmf\Bundle\CreateBundle\Document, Sandbox\MainBundle\Document, Symfony\Cmf\Bundle\RoutingExtraBundle\Document, Symfony\Component\Routing
                at n/a
                    in /home/daniel/www/cmf-sandbox/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php line 38

                at Doctrine\Common\Persistence\Mapping\MappingException::classNotFoundInNamespaces('Doctrine\Common\Util\ClassUtils', array('Doctrine\ODM\PHPCR\Document', 'Symfony\Cmf\Bundle\MenuBundle\Document', 'Symfony\Cmf\Bundle\ContentBundle\Document', 'Symfony\Cmf\Bundle\BlockBundle\Document', 'Symfony\Cmf\Bundle\SimpleCmsBundle\Document', 'Symfony\Cmf\Bundle\BlogBundle\Document', 'Symfony\Cmf\Bundle\CreateBundle\Document', 'Sandbox\MainBundle\Document', 'Symfony\Cmf\Bundle\RoutingExtraBundle\Document', 'Symfony\Component\Routing'))
                    in /home/daniel/www/cmf-sandbox/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php line 114

                at Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain->loadMetadataForClass('Doctrine\Common\Util\ClassUtils', object(ClassMetadata))
                    in /home/daniel/www/cmf-sandbox/vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadataFactory.php line 128

                at Doctrine\ODM\PHPCR\Mapping\ClassMetadataFactory->doLoadMetadata(object(ClassMetadata), null, false, array())
                    in /home/daniel/www/cmf-sandbox/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php line 302

                at Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata('Doctrine\Common\Util\ClassUtils')
                    in /home/daniel/www/cmf-sandbox/vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadataFactory.php line 96

                at Doctrine\ODM\PHPCR\Mapping\ClassMetadataFactory->loadMetadata('Doctrine\Common\Util\ClassUtils')
                    in /home/daniel/www/cmf-sandbox/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php line 205

                at Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor('Doctrine\Common\Util\ClassUtils')
                    in /home/daniel/www/cmf-sandbox/vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadataFactory.php line 81

                at Doctrine\ODM\PHPCR\Mapping\ClassMetadataFactory->getMetadataFor('Doctrine\Common\Util\ClassUtils')
                    in /home/daniel/www/cmf-sandbox/vendor/sonata-project/doctrine-phpcr-admin-bundle/Sonata/DoctrinePHPCRAdminBundle/Model/ModelManager.php line 50

                at Sonata\DoctrinePHPCRAdminBundle\Model\ModelManager->getMetadata('Doctrine\Common\Util\ClassUtils')
                    in /home/daniel/www/cmf-sandbox/vendor/sonata-project/doctrine-phpcr-admin-bundle/Sonata/DoctrinePHPCRAdminBundle/Tree/PhpcrOdmTree.php line 213

                at Sonata\DoctrinePHPCRAdminBundle\Tree\PhpcrOdmTree->getDocumentChildren(null)
                    in /home/daniel/www/cmf-sandbox/vendor/sonata-project/doctrine-phpcr-admin-bundle/Sonata/DoctrinePHPCRAdminBundle/Tree/PhpcrOdmTree.php line 97

                at Sonata\DoctrinePHPCRAdminBundle\Tree\PhpcrOdmTree->getChildren('/cms/blog')
                    in /home/daniel/www/cmf-sandbox/vendor/symfony-cmf/tree-browser-bundle/Symfony/Cmf/Bundle/TreeBrowserBundle/Controller/TreeBrowserController.php line 49

                at Symfony\Cmf\Bundle\TreeBrowserBundle\Controller\TreeBrowserController->processNode('/cms/blog', 'getChildren')
                    in /home/daniel/www/cmf-sandbox/vendor/symfony-cmf/tree-browser-bundle/Symfony/Cmf/Bundle/TreeBrowserBundle/Controller/TreeBrowserController.php line 64

                at Symfony\Cmf\Bundle\TreeBrowserBundle\Controller\TreeBrowserController->childrenAction(object(Request))
                    in  line 

                at call_user_func_array(array(object(TreeBrowserController), 'childrenAction'), array(object(Request)))
                    in /home/daniel/www/cmf-sandbox/app/bootstrap.php.cache line 1426

                at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
                    in /home/daniel/www/cmf-sandbox/app/bootstrap.php.cache line 1390

                at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
                    in /home/daniel/www/cmf-sandbox/app/bootstrap.php.cache line 1566

                at Symfony\Bundle\FrameworkBundle\HttpKernel->handle(object(Request), '1', true)
                    in /home/daniel/www/cmf-sandbox/app/bootstrap.php.cache line 617

                at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
                    in /home/daniel/www/cmf-sandbox/web/app_dev.php line 29

support route defaults

if i prefix my admin routes with /{_locale}/admin then i need to be able to pass the _locale to the Routing.generate() call

moving nodes has confusing results

maybe its the visualization, but to me it seems like in the end the node is moved one level deeper than i intend. also there should be some visualization that the move is in progress.

json_encode error with special characters

Hi !

I have a content with this german title : Allgemeine Geschäftsbedingungen

Then I won't be able to retrieve the three with TreeBrowserController::childrenAction :

Malformed UTF-8 characters, possibly incorrectly encoded" at /var/www/goldbroker/releases/20140213181047/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/JsonResponse.php line 97

New added subnode isn't visible inside admin panel

One node in our system can have more than 1000 subnodes so we want to create custom (empty) subnode in ordert to categorize our subnodes by year and months.
Instead of

  1. Node
    1.1. subnode1
    1.2 subnode2

we want to have

  1. Node
    1.1. year
    1.1.1. January
    1.1.1.1. sunode1
    1.1.2. February
    1.1.2.1. subnode2

This is where problem appear. If we add subnode with createPath this node isn't visible inside ADMIN panel although it exists in content repository.

when dump content repository http://cl.ly/image/3X3y3Q2q1c1n you will see subNode '2013' which doesn't exist inside admin panel http://cl.ly/image/1c0P0A3g3405

Use ResourceRestBundle

This also implies removing all back-end stuff from this bundle and SonataDoctrinePhpcrAdminBundle 2.0.

Add some cache thing

Currently, if 3 trees are displayed on a page, all 3 make their own requests to get the nodes. There should be some global cache system that allows one reqeusts to fill the nodes of all 3 trees.

Add root node

One should be able to specify the rootnode of the tree, currently it's always /.

Think about how to use Bower

The current bower implementation can only be used internally, we still have to ship all front-end packages with each release. That's because the bower.json of the app doesn't know the requirements of packages installed by Composer.

While discussing this problem on IRC, @dantleech came up with an idea of creating a symfony-cmf-tree-browser Bower package, which would require all libraries that this bundle requires. People could then just do this in their app's bower.json:

{
    "dependencies": {
        "symfony-cmf-tree-browser": "2.*"
    }
}

This will give them all front-end packages needed for the TreeBrowserBundle.

This means that we require people to use Bower or bowerPHP. We have to think if we want that.

update id after move

in phpcr, the document/node path changes when moving. we should allow the move response to update the id of the moved node.

btw, error handling is bad, there is no message when a move failed, and the status code from the server is even a 200 OK.

how to configure allowed children?

as mentioned in #4, the configuration about what are valid children for nodes seems not to work as expected. @jakuza would be glad if you could investiage. the change is now in the sandbox

A better front-end library

Currently, we use jsTree as the front-end library, but I'm not happy about it and after speaking with @dbu and @dantleech I discovered they don't either.

This morning, I started looking at some alternatives, also speaking with the core dev of Typo3 Neos. They currently use DynaTree, but are not happy about it. Mostly, since it's no longer maintained. He gave me some alternatives he found while looking for a replacement. There sure can be others, but I listed the once that jumps out when I searched a bit. I'm happy to know what you think (and if we should move to another lib at all).


FancyTree

This library seems to be recommended by a lot of people. It's full of features and has an easy to use and understand interface.

Pros

  • It has support for lazy loading in core
  • Core extensions provide drag 'n drop functionality

Cons

  • It requires jQuery
  • Lazy loading requires writing the AJAX calls yourself
  • Context menu is provided by a 3rd party extension
  • Creating nodes has to be implemented

Ext JS Trees

This is the tree library of the Ext JS framework.

Pros

  • It has a good API
  • It works really well with lazy loading and a server API
  • Being bound to the Ext JS framework, trees can be nicely abstracted in JavaScript objects.

Cons

  • The Ext JS brings in complexity

jqTree

Just another jQuery tree plugin which seems to work pretty well.

Pros

  • It's the most simple of the proposed libaries
  • It supports context menu and drag 'n drop in core

Cons

  • It's written with jQuery
  • It doesn't seem to support lazy loading
  • It has very little documentation

Missing vendor fancytree assets

Just updated to use "symfony-cmf/tree-browser-bundle": "2.0.@dev" and it seems the vendor/fancytree assets are missing when i do an assets install for the bundle. I'm using symfony-cmf 1.2. , do i have to upgrade?

Add support for drag/drop

I'm unsure how many people are using this feature, but as people could rely on it, it should be readded for 2.0.

clean up javascript

we have 2 similar but different js files init.js and select.js. at least we should rename them to admintree.js and selecttree.js to reflect what is in them. ideally we would manage to extract a common base class or something (me no javascript expert, sorry)

additionally we should provide reasonable defaults for all config options where it makes sense or complain if required options miss, to make this more developper-friendly.

resource is not loading after update the dev-master

I just update the composer , Now I am getting below error. So I checked the phpcrbrowser.xml but there is only phpcr.xml file in vendor/symfony-cmf/tree-browser-bundle/Symfony/Cmf/Bundle/TreeBrowserBundle/Resources/config location.
So I changed the phpcr.xml from phpcrbrowser.xml as below. Still error remains.

phpcrbrowser:
    resource: @SymfonyCmfTreeBrowserBundle/Resources/config/routing/phpcr.xml
    prefix: /admin/browser


Error

Cannot import resource "@SymfonyCmfTreeBrowserBundle/Resources/config/routing/phpcrbrowser.xml" from "/var/www/contest/app/config/routing.yml". Make sure the "SymfonyCmfTreeBrowserBundle" bundle is correctly registered and loaded in the application kernel class. 

Empty tree

Can anyone explain me why /_cmf_tree/phpcr_odm_tree/children?root=/cms returns nothing whereas /_cmf_tree/phpcr_tree/children?root=/cms does return my tree.

Since sonata admin tries to call /_cmf_tree/phpcr_odm_tree/children?root=/cms, the tree does not load.

What's the difference between the two urls?

Drag and drop re-ordering does not work if you position the mouse in a certain way

When using the tree browser bundle with drag and drop re-ordering there appears to be a bug where the re-ordering doesnt work unless you position the mouse so that it is over another node.

Here is a screenshot of the drag and drop position that would work (note how the "Another Page" node is highlighted because the mouse is over it). If you were to release at this point the "Styles" node would be re-positioned properly.

Drag and Drop works

Here is a screenshot of where it would not work. This happens if you move your mouse slightly down from the previous screenshot and the "Another Page" node is no longer highlighted. The result of this is a no-op, nothing happens when you release the drag.

Drag and Drop doesnt work

It appears this bundle includes a version of the jquery jstree plugin which is 1.0-RC3. I cannot reproduce the issue on the jstree site but I have not been successful in upgrading the jstree plugin that is bundled here (it just causes the tree to disappear).

I can reproduce this on the liip cmf sandbox

http://cmf.liip.ch/en/admin/dashboard

While it may seem like this issue would be an edge case it has actually been triggered independently by a significant portion of the people we have depoloyed our CMS to and while demoing our CMS. I think this is because the highlight that appears when it would work actually somewhat makes it look like you are going to move the page you are dragging INSIDE of the highlighted page, so people move it down until the highlight disappears but then the reposition does not work.

@dantleech or @dbu any thoughts on why upgrading to jstree 1.0, 2.0 or 3.0 doesnt work? It seems like making this upgrade would be worthwhile since the version of jstree we are using here is not an official release and is probably the source of this bug.

Just for additional info I tried removing ALL other CSS from the page to ensure this wasnt a styling issue but that did not solve the problem.

move vs rename

reading the doc of the move operation i would assume it to have the same semantics as in PHPCR (it includes the target node name as well).
https://github.com/symfony-cmf/TreeBrowserBundle/blob/master/Tree/TreeInterface.php#L30

however the implementations do not do this, and i guess its because in the jstree we move something with an id to become child of a new id. but i think that is an implementation detail of the jstree and should be handled in javascript in the frontend. alternatively we have to improve the doc.

the added benefit of move as in PHPCR would be that it can also be used to rename a node. currently the interface does not allow to rename a node.

https://github.com/symfony-cmf/TreeBrowserBundle/blob/master/Tree/PHPCRTree.php#L90
https://github.com/sonata-project/SonataDoctrinePhpcrAdminBundle/blob/master/Tree/PhpcrOdmTree.php#L118

wrong root path ?

Cloned Sandbox few days ago and played around.
Just to test runned "composer update" today and updated successfully.
After that treebrowser in admin panel turns to this
treebrowser

In webprofile ajax request logs get this exceptions:

Detected the following problem: Hm. No clue what goes wrong. Maybe this is a real 404?

exception 'Puli\Repository\Api\ResourceNotFoundException' with message 'No PHPCR-ODM document could be found at "/false/cms/routes"' in /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/vendor/symfony-cmf/resource/Repository/PhpcrOdmRepository.php:177
Stack trace:
#0 /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/vendor/symfony-cmf/resource/Repository/PhpcrOdmRepository.php(49): Symfony\Cmf\Component\Resource\Repository\PhpcrOdmRepository->getDocument('//false/cms/routes')
#1 /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/vendor/symfony-cmf/resource-rest-bundle/Controller/ResourceController.php(57): Symfony\Cmf\Component\Resource\Repository\PhpcrOdmRepository->get('//false/cms/routes')
#2 [internal function]: Symfony\Cmf\Bundle\ResourceRestBundle\Controller\ResourceController->getResourceAction('default', '/false/cms/routes')
#3 /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(153): call_user_func_array(Array, Array)
#4 /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#5 /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(169): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#6 /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/web/app_dev.php(39): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#7 {main}

Next exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' with message 'No resource found at path "/false/cms/routes" for repository "default"' in /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/vendor/symfony-cmf/resource-rest-bundle/Controller/ResourceController.php:61
Stack trace:
#0 [internal function]: Symfony\Cmf\Bundle\ResourceRestBundle\Controller\ResourceController->getResourceAction('default', '/false/cms/rout...')
#1 /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(153): call_user_func_array(Array, Array)
#2 /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#3 /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(169): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#4 /home/bubuntu/Documents/websites/BleedingEdgeSymfonyCMF/web/app_dev.php(39): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#5 {main}

Update jsTree plugin

The version of jsTree bundled with this repository is 1.0-rc3 (current v is 3.3.2).
Is there a particular reason why this repository was never updated to a newer version of jsTree?

I'm having a hard time finding jsTree examples that still work.

This will be part of an important project for me, I'd be happy to experiment with a newer version and contribute back to the community.

Root nodes don't work

When the root node is not /, it's not added to the input field and wrong values will be submitted.

TypeError: $(...).cmfTree is not a function

On dashboard im getting following error, even tho admintree, jstree and selecttree files are loaded.. i'm not sure what other files are required for this?

TypeError: $(...).cmfTree is not a function

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.