getgrav / getgrav/grav-plugin-simplesearch

Integration with Breadcrumbs ?

Open
#62 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
46
Forks
55
Avg merge
5h 44m
Merged PRs (30d)
1

Description

Hello there,

I am very new to Grav, have a bit of experience with Twig and PHP. I installed SimpleSearch as well as the [breadcrumbs plugin](https://github.com/getgrav/grav-plugin-breadcrumbs) and wondered if there was an (easy) way to integrate those two, I might otherwise get into the code and go for an "ugly" fix but it might be something great to implement !

Anyway, here are the facts: the breadcrumbs works fine with all the pages but the search pages. There is no breadcrumb. I wonder if the SimpleSearch plugin could expose a path similar to those being parsed by breadcrumb ?

A few examples:

Browsing normal stuff -- default breadcrumbs behaviour, not related to search.
`Home > Products > Web > Documentation > API Endpoints`

Search without restricted directory
Ex: looking for "Help"
`Home > Search: "Help"`

Search with a restricted directory, ex: `route: Home/Products/Web`

`Home > Products > Web > Search: "Help"`

I hope I was clear, my english is perfectible !

Anyways thank you for such an awesome plugin !

BTW This is a suggestion, not an issue :smile:

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the SimpleSearch plugin and the linked Grav Breadcrumbs plugin to understand how search routes and breadcrumb paths are exposed. Reproduce searches with and without a restricted directory, then verify that the resulting pages provide breadcrumb paths matching the examples in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.