Geeklog-Core / geeklog

Geeklog - The Secure CMS.
https://www.geeklog.net
25 stars 19 forks source link

Improve "You Might Also Like Feature" for Articles #1062

Open eSilverStrike opened 4 years ago

eSilverStrike commented 4 years ago

Right now "You Might Also Like" feature of the articles uses meta tag keywords to determine other recent articles that are most related to the being viewed.

Not all sites use meta keywords (they can be disabled) so we should offer a config option that allows topics to be used as well (since the are like a keyword).

I wonder if we should add an api that would allow the tags plugin to be also used here?

For example the Config Option Could be

"You Might Also Like" is Based on: Disabled Meta Keywords Topics Meta Keywords (if any), Else Topics

This feature does require a lot of processing power so in the config option we should mention caching should be enabled for articles or it is recommended to disable this feature.

evilware-com commented 3 years ago

You could just write your own plugin.

just create a table inside your geeklog db call it it could literally be a simple table of article ids that reference an article id or you could do an sql query for topic containing LIKE (title words) and see what happens. Or you could change the code to just pull other articles in the same catagory.