CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #12404

Add extensibility for plugin commands

Added by Pierrick Caillon over 2 years ago. Updated over 2 years ago.

Status:Resolved Start date:2011-01-20
Priority:Could have Due date:
Assignee:Ingo Renner % Done:

100%

Category:Frontend Plugins
Target version:1.6-dkd
TYPO3 Version: Has patch:
PHP Version: Tags:
Votes: 0

Description

I had the need to add some new elements into the results template.
Our setting is a search page which provides results from two SOLR cores and other sources.
On this page we only present the first results of each search.

I had to add two new commands:
  • the first to add a link to the full result page
  • the second to display the total number of results alone.

And for some other features, I have other things to add.

It would be great if the tx_solr_CommandResolver was able to resolve commands provided by other extentions, or to cascade it with external implementations.
And in order for this to be usefull, a way to add new commands to the plugins generated command lists.

Here an XCLASSing can really be bothersome and some hooks would be great.

I am writing some codes to illustrate this.

History

Updated by Pierrick Caillon over 2 years ago

I havee seen that in the latest 1.6-dkd, there is a way to declare new commands when there are results (through plugin.tx_solr.searchResultsViewComponents). But the commands must be put in the solr/pi_results/ folder.

Updated by Ingo Renner over 2 years ago

Pierrick Caillon wrote:

plugin.tx_solr.searchResultsViewComponents

yeah, don't rely on that though. I want to remove that as it's a little confusing... Maybe I can find some time before 1.6 for that.

Updated by Ingo Renner over 2 years ago

  • Category set to Frontend Plugins
  • Target version set to 1.6-dkd

Updated by Ingo Renner over 2 years ago

  • Subject changed from Add extensibility for plugins' commands to Add extensibility for plugin commands

Updated by Ingo Renner over 2 years ago

  • Assignee set to Ingo Renner

Updated by Ingo Renner over 2 years ago

  • Status changed from New to Accepted

Updated by Ingo Renner over 2 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

resolved in 1.6-dkd, will be in 1.3, too

Updated by Pierrick Caillon over 2 years ago

It works well despite the #13166 bug.

Also available in: Atom PDF