-
- 415 Posts
This is an example of the use of xPDO width the class makeform an maketable.
It display fields table which you can add/edit/delete and include pagination, sortby, order, result/page, search engine...
call it from a page :
[!xFDMlist? &tbl=`sitecontent` &showfields=`id,longtitle,pagetitle` &configfile=`xFDMsample.config.php`!]
This is just a sample of what I understand from the great xPDO.
-
- 7,075 Posts
Already ported FDM to xPDO ?
Great news
I’ll try it as soon as I can
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
- 4,205 Posts
This looks sweet. I am very curious about how xpdo fits into the story. Thanks for the example.
-
- 32 Posts
We surly need more samples What and How xPDO works. I’am waiting for some more advance doc about xPDO. is there any chance we can see this soon?
-
- 2,204 Posts
I’m a bit scared, I just get the hang of the modx api and then 097 wil come and whipe away all this i know now and lets me learn another way of thinking.
I know it wil be hard to learn but also I know that xpdo will be so much faster than the "oldway"
Dimmy
-
- 415 Posts
xPDO don’t change all things in modx, it just improve the way it access to the db, note that xPDO is useable with different kind of databases (and not restricted to mysql), so I don’t watch the code of 0.9.7 but I think that the core team will conserve some compatibility so the function of dbapi can be written with few change.
I know that xPDO is really new in concept and in use but some (big) improvements needs some changes. Don’t be afraid, xPDO is just a better way of web development thinking.
I found it hard on first time, it is really different of what I know (and different of the old one), but try it, test it, ask about it and you will discover its power.
The sample in the first post allow to list, search, add, edit delete fields in any table and the code is only 170 lines long (not complete, I agree but ...) !