Feature #17874
closedAdd suggest-like feature to TCEforms
0%
Description
The current way of inserting records into relation-fields is quite complicated - you have to open the element browser, go your way to the page where the record is stored and insert it. This can be really time-consuming, especially when having a deeply nested, complicated structure of pages.
This patch adds a feature like seen in Google suggest or other applications. When enabled, it displays an input field below (and - planned - right to) the list of related records. See the attached screenshot for an example.
The feature uses script.aculo.us to display the selector and an extended version of alt_doc_ajax.php originally made by Oliver Hader.
To test it, apply the attached patch to TYPO3 4.1.x or 4.2-dev. The patch has been made against 4.1, but it also applies to trunk without any serious hassle.
Then install the extension demo_ajaxselect, which is also attached to this report. Insert a record of type "Demo record for AJAX selector" to have a record with two ajax-capable fields. You also have to add the following configuration to TSconfig (some of it should be set by default when this patch gets into core):
TCEMAIN {
default.ajaxSelector {
# limits the selection to page 1 and its subpages
pid = 1
# sets the default renderlet for all records
AJAXclass = ajax_select
}
pages.ajaxSelector {
# only select the subpages of the pid defined above when selecting pages
# other records will still be fetched from all subpages
pidDepth = 0
}
- define some alternative settings for the extensions a21glossary and party
tx_a21glossary_main.ajaxSelector {
AJAXclass = tx_a21glossary_ajaxselect
pid = 23
}
tx_party_parties.ajaxSelector {
AJAXclass = tx_party_ajaxselect
}
}
IMPORTANT: To be able to fully test the extension, please install a21glossary and party (from typo3xdev SVN).
(issue imported from #M6872)
Files