agoat / contao-customcontentelements-bundle

Contao 4 custom content elements
GNU Lesser General Public License v3.0
3 stars 4 forks source link

Access custom database tables #179

Open akroii opened 3 years ago

akroii commented 3 years ago

First: great extension! In Rocksolid Eustom Elements you can list via 'inputType' => 'tableWizard' data from another table or extension.

It would be nice if your extension could do this as well ☺

agoat commented 3 years ago

What would be the benefit? How is the content in the table edited?

It would need some kind of relation of the data in the db table and what to output. The next would probably some kind of filter or database query limits to select specific data.

IMO this is out of scope of this extension! To include data from another table would be better done in a custom extension.

akroii commented 3 years ago

The benefit of this feature would be, that a single database entry could be selected. Like a module, but only as CE Element. You can pick one single entry. Perhaps it could be defined which DB cells are brought to the frontend.

Sometimes my customers want to keep some information (from a backend-module) stay visible. In Module, i dont have any chance to make entries stay visible (sortable by date, it will be not visible anymore).

akroii commented 2 years ago

Sorry, I've done a mistake. I mean not'inputType' => 'tableWizard' but options_callback. i mean to access custom tables like tl_test or ctlg_bla.

agoat commented 2 years ago

I will look into this, when development continues..