codefog / contao-news_categories

Extend the Contao news module with categories
MIT License
31 stars 25 forks source link

Search result only finds content on the 1st page #244

Closed netSpeedyTV closed 1 year ago

netSpeedyTV commented 1 year ago

Problem with the search when setting the results to x per page. Search only find content on the 1st page. I don't know if it's because of the module, but if I set it up so that it doesn't split the news but all are on one page, it works.

fritzmg commented 1 year ago

Contao does not index the content of newslists by default, unless you adjusted the template.

netSpeedyTV commented 1 year ago

i have done this, after that search work but only for the 1 . Page, but if i use pagination it not find the other results on page 2. 3. xxx <?php $this->extend('block_searchable'); ?>

Maybe i need to add more for the pagination so it works.

fritzmg commented 1 year ago

In any case this has nothing to do with this extension. You should seek help on the Contao Community Forum or Community Slack. For example, may be you enabled the Canonical Tag and did not add the query parameter for the pagination to the allowed query parameters. The Search Indexer will only index the canonical URLs.

netSpeedyTV commented 1 year ago

ok sry, but thx so i will look for that.