nephila / djangocms-blog

django CMS blog application - Support for multilingual posts, placeholders, social network meta tags and configurable apphooks
https://djangocms-blog.readthedocs.io
BSD 3-Clause "New" or "Revised" License
392 stars 192 forks source link

Restrict related posts to just the current site #691

Open g3rb3n opened 2 years ago

g3rb3n commented 2 years ago

Description

Currently all post from all sites are shown as option for related content. We would like to limit that to just the posts from the current site.

Use cases

A setup that has many sites with unrelated content for cross posting.

Proposed solution

Include an option is settings to enable this feature. Filter the options in form.py based on the current site in the request.

Alternatives

None.

Additional information

None.

fsbraun commented 2 years ago

An optional restriction to a specific blog config might also be of interest - if you have multiple blogs on one site. Would the right place be the blog config changing the config from using related posts to