Feature #15193
closedThere is no API to list tables in the Web->Page module
Added by Michael Stucki about 19 years ago. Updated over 13 years ago.
0%
Description
Some extensions like tt_products can display the table records in the page module of the backend.
This is very nice but would also be nice for a lot of other extensions. But unfortunately, the feature is hardcoded.
It would be great to have an API or at least a simple hook for this.
(issue imported from #M1822)
Files
error-typo3-2.png (9.83 KB) error-typo3-2.png | Administrator Admin, 2006-02-22 20:26 | ||
apiPageModule.diff (6.23 KB) apiPageModule.diff | Administrator Admin, 2006-03-16 18:04 | ||
1822_v2.diff (5.96 KB) 1822_v2.diff | Administrator Admin, 2010-02-06 15:47 | ||
T3X_test_pm_recordlist.t3x (2.45 KB) T3X_test_pm_recordlist.t3x | Administrator Admin, 2010-02-06 15:47 |
Updated by Ingo Renner about 19 years ago
what about
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_irfaq_q']0 = array(
'fList' => 'q,a,q_from,expert',
'icon' => TRUE
);
...taken as an example from irfaq
Updated by Franz Holzinger about 19 years ago
reuse the TCA: The palettes already exist.
---------------
'overview' => Array (
'Standard' => '2',
'Extended' => '3'
),
'palettes' => Array (
'1' => Array('showitem' => 'starttime, endtime, fe_group'),
'2' => Array('showitem' => 'price2, special_preparation, directcost, tax, offer, highlight'),
'3' => Array('showitem' => 'subtitle, www, itemnumber, inStock'),
'4' => Array('showitem' => 'size, unit, unit_factor, gradings, bulkily, weight'),
'5' => Array('showitem' => 'accessory2'),
'6' => Array('showitem' => ''),
)
----------
Updated by Sebastian Kurfuerst about 19 years ago
If I see this correctly, the method mentioned by Ingo already exists :-)
Sebastian
Updated by Franz Holzinger about 19 years ago
But you cannot set the function menu with this.
case 'tt_products':
$h_func = t3lib_BEfunc::getFuncMenu($this->id,'SET[tt_products]',$this->MOD_SETTINGS['tt_products'],$this->MOD_MENU['tt_products'],'db_layout.php','');
break;
Updated by Franz Holzinger about 19 years ago
But you cannot set the function menu with this.
if (!isset($dblist->externalTables[$table])) {
...
case 'tt_products':
$h_func =
t3lib_BEfunc::getFuncMenu($this->id,'SET[tt_products]',
$this->MOD_SETTINGS['tt_products'],$this->MOD_MENU['tt_products'],'db_layout.php','');
break;
Updated by Franz Holzinger about 19 years ago
function menuConfig() {
// MENU-ITEMS:
$this->MOD_MENU = array(
...
'tt_products' => array (
0 => $LANG->getLL('m_default'),
'ext' => $LANG->getLL('m_tt_products_ext')
),
cannot be configured from outside.
Updated by Sebastian Kurfuerst about 19 years ago
Hi,
yes, you are right with this. It would be really cool if you wrote a patch making this possible :-)
Sebastian
Updated by Franz Holzinger almost 19 years ago
I have sent the patch already to the CORE list in December 2005.
So lets wait until someone will find the time to look on it.
Updated by Franz Holzinger over 18 years ago
The Web->Page module does not work correctly with TYPO3 4.0beta3. See attached image.
Updated by Michael Stucki over 18 years ago
Hi Franz,
The Web->Page module does not work correctly with TYPO3 4.0beta3.
See attached image.
You being a core dev, I would say that you should look at this issue and propose a fix for it.
- michael
Updated by Robert Markula over 18 years ago
Hi!
What's the status of this? It would be a nice usability enhancement, especially when looking for 4.5.
Updated by Roger Bunyan over 18 years ago
+1
It would be nice to have the option to put records on page view
roger
Updated by Ernesto Baschny over 18 years ago
I think we are moving in circles here. There is already an API to put records on page module. See the first comment of this bug report. The link to the documentation about is changed to:
What seems to be missing is an API to have different "views" of those records, like tt_news and other "hardcoded" extensions are able to do.
This has been discussed in the core list, but I don't think anything has been integrated, as this thread was a bit of a mess. Maybe we could get Franz Holzinger to recreate a patch to the current trunk of SVN and provide a RFC so it can be discussed in core again.
Updated by Andreas Stauder over 18 years ago
For me this patch makes really sense. The patch is already available, easy to test, increases the usability for important extensions. So why not intergrate it in V4.1?
Updated by Ernesto Baschny over 18 years ago
Someone just has to make an organized summary and current patch (for current 4.0 trunk) about it and we can discuss it in the core list. I would suggest Franz as he was originally interested in it.
With "organized summary" I mean some clear text which all core developers can understand without having to install extensions or do much research. This is usually the easiest and fastes way to get it into the core.
Updated by Andreas over 17 years ago
I would really go for this patch in the next typo3 version. better listings on the page module would be very smooth thing - especially since the typo3 vers.5 with the more flexible ajax interface will still take some time ;-)
Updated by Franz Holzinger about 17 years ago
I have resent this patch again to the Core list that it comes into TYPO3 4.2.
Please have a look at it and tell me if something is still unclear. If you want an additional feature then I generally agree but want to deliver that in a separate patch.
Regards,
Franz
Updated by Franz Holzinger about 16 years ago
I have uploaded a new extension patch1822 into TER. So you can test and use it without applying the patch.
Updated by Jonas Felix almost 16 years ago
I just found this patch in static_info_table. Cool patch! What's about this into core?
Updated by Oliver Hader over 15 years ago
I think it is irrevant...
It's possible by using $TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']...
Updated by Xavier Perseguers almost 15 years ago
Franz, could you have a look at what Olly said in may 2009 and provide a new patch if needed? it would be so nice to get rid of this "patch" in TER and not having it anymore as an option in static_info_tables... :-)
Updated by Steffen Kamper almost 15 years ago
I renewed the patch and wrote a demo extension using fe_users as example.