I'm thinking about a support for nested sets in admin bundle. I need
this for an upcoming project...and maybe I could help...
First and must important question:
- are there any implementations already done, or in the making, that I
could join?
Some personal thoughts:
- should obviously rely on Tree behavior and the
StofDoctrineExtensionsBundle
- I think that the way to go is creating a new Admin abstract base
class that extends the main admin class to implement the different
logic. So you can easily switch from a "normal" admin interface and a
nested set one by extending a different base class.
- Edit and creation should be the same. the differences comes in the
list view. For example...no pagination or filter is needed.
- I would like to use the jsTree library. I've already use it for
symfony1, and it's really really great. http://www.jstree.com/
- I think that the work should be done in the sub-bundles
"DoctrineORMAdminBundle" and "DoctrineMongoDBAdminBundle" because the
tree implementation of the orm is redically different in mongodb, and
by now doctrine extensions doesn't support (officially) the odm.
Regards,
Matteo.
Hi everybody...
I'm thinking about a support for nested sets in admin bundle. I need
this for an upcoming project...and maybe I could help...
First and must important question:
- are there any implementations already done, or in the making, that I
could join?
Some personal thoughts:
- should obviously rely on Tree behavior and the
StofDoctrineExtensionsBundle
- I think that the way to go is creating a new Admin abstract base
class that extends the main admin class to implement the different
logic. So you can easily switch from a "normal" admin interface and a
nested set one by extending a different base class.
- Edit and creation should be the same. the differences comes in the
list view. For example...no pagination or filter is needed.
- I would like to use the jsTree library. I've already use it for
symfony1, and it's really really great. http://www.jstree.com/
- I think that the work should be done in the sub-bundles
"DoctrineORMAdminBundle" and "DoctrineMongoDBAdminBundle" because the
tree implementation of the orm is redically different in mongodb, and
by now doctrine extensions doesn't support (officially) the odm.
Regards,
Matteo.
--
You received this message because you are subscribed to the Google Groups "sonata-devs" group.
To post to this group, send email to sonat...@googlegroups.com.
To unsubscribe from this group, send email to sonata-devs...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sonata-devs?hl=en.
Anyway the main thing was to know if there was some ongoing projects
to achieve this. I will do my homeworks to understand how adminbundle
works (by the way it's really great) and try to find the correct way
to make it work.
On 5 Dic, 12:12, Thomas Rabaix <tho...@rabaix.net> wrote:
> On Mon, Dec 5, 2011 at 11:58 AM, matteosister <matt...@gmail.com> wrote:
> > Hi everybody...
>
> > I'm thinking about a support for nested sets in admin bundle. I need
> > this for an upcoming project...and maybe I could help...
>
> > First and must important question:
> > - are there any implementations already done, or in the making, that I
> > could join?
>
> No implementation so far. I think the CMF project wants to do something for
> the PHPCR implementation.
>
>
>
> > Some personal thoughts:
> > - should obviously rely on Tree behavior and the
> > StofDoctrineExtensionsBundle
> > - I think that the way to go is creating a new Admin abstract base
> > class that extends the main admin class to implement the different
> > logic. So you can easily switch from a "normal" admin interface and a
> > nested set one by extending a different base class.
>
> I don't see why you want to create a new Admin class. Can you elaborate a
> bit more about what you want to achieve ? The first step will be to add a
> dedicated Form Type.
>
>
>
>
>
>
>
>
>
> > - Edit and creation should be the same. the differences comes in the
> > list view. For example...no pagination or filter is needed.
> > - I would like to use the jsTree library. I've already use it for
> > symfony1, and it's really really great.http://www.jstree.com/
--
You received this message because you are subscribed to the Google Groups "sonata-devs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sonata-devs/-/mI7sTLE4zcsJ.
To post to this group, send email to sonat...@googlegroups.com.
To unsubscribe from this group, send email to sonata-devs...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sonata-devs?hl=en.
As a side note I think that this jquery plugin is far more better then
the one used in the bundle:
https://github.com/vakata/jstree
> This is great...but...inside the TreeBundle there isn't an interface
> right now...only a bunch of js/css/images files...
> maybe it's inside a non-public branch?
> Anyway I love the idea to use only unobstrusive js implementation
> without touching the code. But how do you deal with filters (in a
> treeview doesn't make much sense) and pagination (you always need the
> full list)?
Oh sorry. We moved it in the end:
https://github.com/symfony-cmf/symfony-cmf/blob/master/src/Symfony/Cmf/Bundle/PHPCRBrowserBundle/Tree/TreeInterface.php
But this is certainly not the right place for this interface if we want to enable different database backends to use it. Or maybe we can in the end make the browser Bundle more generic.
> As a side note I think that this jquery plugin is far more better then
> the one used in the bundle:
> https://github.com/vakata/jstree
ok noted. i have opened a ticket on the Bundle to evaluate your suggestion:
https://github.com/symfony-cmf/TreeBundle/issues/1
regards,
Lukas Kahwe Smith
m...@pooteeweet.org
This would be one of the main features in the PHPCR Admin Bundle.
Right now what is implemented is only the possibility of a js tree
embedded in the list view but without interaction with the Admin
Bundle. We are working on this...
Also we would want to be able to add new fields in a node, which is
something PHPCR allows, but not using PHPCR-ODM, so we can go
different ways:
* Implementing a phpcr-myadmin (like phpmyadmin for mysql) outside
Sonata Admin Bundle, without using the ODM to deal with the specific
features of phpcr.
* Implement that phpcrmyadmin into SAB, but not using the ODM in this part.
* Implement some tree view into SAB, using the ODM, losing some features.
Ideally we would love to have it integrated into the Admin Bundle so
we don't reinvent the wheel for every AB implementation. Then, if we
could agree about the features and interfaces to implement it would be
great.
Nacho
right so in the end it might make sense to move the tree interface into SonataAdminBundle. then again the tree interface is something one might also want to use in the frontend. another option could be to move it into the DoctrineExtensions. of course we could also just have a separate repo for just the interface but this is also painful ..
just blogged about this very problem:
http://pooteeweet.org/blog/2056
- TreeInterface for PHPCR I think would be more flexible if is done
outside Doctrine, so you can add more properties to nodes even if they
are not in the document. At least for the phpcrmyadmin part.
I think the Tree interface could be a place where you specify the
routes for the functionalities: fetch childrens of a node, fetch node
properties, add a node, add property, move node,... and then the js
uses them. If a route is not specified, then you don't have that
functionality (e.g. "add property" makes sense in PHPCR, but not with
other infraestructures).
hi,
> - TreeInterface for PHPCR I think would be more flexible if is done
> outside Doctrine, so you can add more properties to nodes even if they
> are not in the document. At least for the phpcrmyadmin part.
with the tree interface in TreeBundle, this is how it would happen.
even though for most use cases involving doctrine, adding properties
that are not part of the document makes no sense :-)
but i am pretty sure there are use cases outside doctrine.
> I think the Tree interface could be a place where you specify the
> routes for the functionalities: fetch childrens of a node, fetch node
> properties, add a node, add property, move node,... and then the js
> uses them. If a route is not specified, then you don't have that
> functionality (e.g. "add property" makes sense in PHPCR, but not with
> other infraestructures).
we miss one piece of the puzzle here: the tree controller. the routes
are part of that controller. i think the js tree and the controller are
pretty much generic. the tree interface defines how the controller can
talk with storage. and there we probably need implementations for phpcr
and for phpcr-odm, as well as the other odms and orms.
i wonder if the concept of nodes and properties is not too specific?
maybe we should switch to a concept of getting the children and getting
the edit *form*. then the TreeInterface would know how to build a form
and the controller would just forward to TreeInterface again.
and just something that comes to my mind: when talking about adding
things, we get close to what the VIE / create.js frontend editing does
with the help of backbone.js. if we add backbone.js here, the whole
communication with the backend becomes different again...
but maybe we should just ignore that for now to not overcomplicate things.
cheers,
david
- --
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk74S3QACgkQqBnXnqWBgIvgAgCfT79fW5nQl98ctre1ilim7zmK
i5QAoLUxBikCbNlbgJh1TSw/bi9ZmRXc
=ZjNX
-----END PGP SIGNATURE-----
I'll ask tomorrow on IRC for some tip.
As a side note: how much do you like couchdb's Futon UI? Its way to
add fields on-the-fly is interesting and plain, don't you think?
--
Jacopo Romei
http://www.sviluppoagile.it/
Inviato da dispositivo mobile.
Sent from mobile device.