We recently committed https://github.com/backdrop/backdrop-issues/issues/3764.
But belated request/idea: working on contexts PR and I want to use this to autocomplete, but filtered by entity type. Currently once you start typing it shows you every piece of content/term/whatever.
But what if we changed the path to path-autocomplete/% and passed the type of content to the path_autocomplete($string = '', $type = NULL) function to filter by that type? Or even path-autocomplete/%/% and path_autocomplete($string = '', $type = NULL, $exclude = FALSE) to allow a negative filter.
In a form you could set '#autocomplete_path' => 'path-autocomplete/node to get only nodes, or, as in the case I'd like to accomplish, '#autocomplete_path' => 'path-autocomplete/' . $context->type.
Recent comments
Hi @opentype. Thanks for confirming it worked. It is helpful for others if you can also mark the answer using the "accept this answer" button as this will show that the question has an answer...
Page navigation also above the page content?
Thanks for the detailed instructions. It worked.
Page navigation also above the page content?
Hello opentype. Welcome to Backdrop CMS. This would either require a sub-theme (have a look at Thesis which is a starter sub-theme with nothing changed) or a custom module. Assuming...
Page navigation also above the page content?