getgrav / grav-plugin-relatedpages

Grav RelatedPages Plugin
http://getgrav.org
MIT License
17 stars 7 forks source link

Plugin stopped working after 1.7 update #27

Open tomceek opened 3 years ago

tomceek commented 3 years ago

The plugin stopped working after the 1.7 update. Probably, related to the changed path of the pages. Any help would be grateful.

{% for related_path, score in related_pages %} {% set related = grav['pages'].get(related_path) %} {% set related_image = related.media.images|first %} {% if related %} ...

rhukster commented 3 years ago

Seems to work for me in my testing. I guess I need more details.

Penworks commented 1 year ago

Update March 2023 for any new readers: it definitely works in 1.7.4, but Im not sure why its picking up words in the content if content is set to false. It still picks up words that are tags (eg images tag and 'images' the word). But, still good. Ive put it in the page foot so that each post has its own set of 'suggested posts'.