Reputation: 618
I have 2 different folders with newsrecords: one is used for news and one is for events, they get an own template so they have own detail pages.
SOLR index queue is setup as shown in the extension manual 1
How can I define multiple detail pages for newsrecords in the Solr index queue? E.g. based on storagePid or category.
Upvotes: 1
Views: 478
Reputation: 618
The queue can indeed have where conditions:
additionalWhereClause = pid = {$events.storagePid}
Upvotes: 1
Reputation: 2557
Simply define another custom record type.
plugin.tx_solr.index.queue {
events < .news
events {
// ...
}
}
Your visitors will also benefit from the distinction between events and real news. It's easy to provide a filter for the record types in Solr ("Facets"). And you will be able to have different templates for the matches.
Upvotes: 2