Quote from: ppaulHow does this fit together?:
1. no comparision/competition to a development thingie, but
2. a "Why not" to the "we can do everything" approach, which is, exactly, the development thingies thing.
I did slip in the difference - with MODx
and PHP you can do anything. With just PHP you can do anything. With just MODx, you can’t. Therefore with both you can do anything.
Servoy creates applications and you need to use *their* web client. And it’s all commercial.
Quote from: ppaul at Jul 17, 2006, 11:28 AM
The challenge is that for real integration the table-data must be managed like the documents. Users, permissions, workflow etc.
Well, that would be nice but it is NOT essential. Imagine a Template Variable that was a dropdown of "Apples", "Oranges", and "Bananas". Currently Manager users with the right permissions can add and edit those choices directly in the "Input Option Values". So if the same users can use a table editor to add to a custom fruit table, it just makes things neater. Yes, for many applications, workflow and permissions issues mean that it is easier to code up a custom editor. But for many web applications, a simple table-editor *is* useful; and is potentially also useful while a custom editor is being written.
Quote from: ppaul at Jul 17, 2006, 11:28 AMAnd typically, some of these permissions might depend on the content of the table: if, for instance, you have one user responsible for "cars" and another one responsible for "planes", both stored in a "facilities-table" for instance. And business logic gets also quite close.
Very true. It would be good to be able to have multiple config files for one table. In my mind anything approaching business logic is in config files. So it is *enabling* logic, not getting bogged down in it. In theory one user could have access to cars, another planes. The config file could just limit what is displayed - ie "SELECT ... WHERE vehicle_type = 1". Also, a template for new items would enable a custom Add New button that created a row with the "Plane" id. And the user’s id in "created_by". The Database Table Editor need not be defined by tables - there could easily be a list of editors configured: "Car Editor", "Plane Editor", "Boat Editor".
I’m not sure what the datagrid-widget has to do with the Table Editor, as I’m not handling this as parts of a document. May I remind you that I’m discussing a proposed backend feature for MODx admins, not something that could be added to a public MODx website.
Quote from: ppaul at Jul 17, 2006, 11:28 AMThe consequence will most likely be that MODx will not be a CMS anymore, but a PHP/MySQL framework.
What does it say underneath the MODx logo at the top of this page? I think you’ll find that MODx is intended to be both. Making data management easier does not in any way affect usage of MODx purely as a CMS; you will not need to learn anything about the Database Table Editor if you do not wish to edit foreign tables.
And to your latest input:
Quote from: ppaul at Jul 17, 2006, 12:28 PM
But one has to be an "uber-geek" like [OpenGeek] to use it - at least compared to what a common MODx user has to accomplish right now to get his site up and running.
To be frank - in my mind, one has to be an uber-geek to
need it, and ideally an uber-geek creating a feature for someone not particularly geeky at all. If you’re not an uber-geek, you don’t need to touch the table config at all. That is, until someone releases an easily installable plugin that uses an extra data table editable with Table Editor, in which case all you’d see of the config was a file to FTP. An example off the top of my head: a Swear Word filter for usercomments. You wouldn’t need to care about the config stuff in the background. You’d just go to Data > SwearWords and add new words and substitutions. In the end, that is going to be less geeky than editing the snippet. But fundamentally,
if you have no data that isn’t content, you do not need to use it at all.
Quote from: ppaul at Jul 17, 2006, 12:28 PMBut in the end: they do not make it easier but harder than to develop individual solutions. Their "wrapper/integration" levels are mostly crap, compared to the underlying tech they hide away.
MODx does not hide away PHP. So if you find the framework gets in the way, don’t use it.
EDIT: Actually you added a lot to the previous post that makes it clearer what you mean by crap; and also made it clearer that your concern is the shift to xPDO rather than just the Database Table Editor. Yes, languages that have been around long enough to get a full shelf of documentation are easier to use.