Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It might be a good idea to wait with this until Views gets into core, but I took a look at some of what is necessary to get Advanced Forum running on a fresh 8.x site with Views 8.x-3.x.
Probably not complete by far, but the changes in this patch made at least the main page and an empty forum load without error after enabling the module.
- Remove references to {system} (also removing the no-longer-working 5.x update hooks that are ready for pruning anyway)
- Use cache() object instead of cache_ functions
- taxonomy_get_parents_all -> taxonomy_term_load_parents_all
- Get forum vocabulary vid from config instead of variable system
- Convert *.view files to *.yml config files and remove hook_views_default_views().
- ctools_context_required -> ContextRequired (also load this class)
Comment | File | Size | Author |
---|---|---|---|
#1 | 1815424-2-advanced_forum-d8.patch | 173.25 KB | cburschka |
advanced_forum_d8.patch | 170.26 KB | cburschka | |
Comments
Comment #1
cburschkaOops. Far from working state - the seeming success came from accidentally disabling the broken module.
This revision actually displays a (non-empty) forum overview, properly generates a title and assigns fora to their respective containers.
However, it can't display a forum: The view isn't available. It's right there in the config/*.yml files; not sure how to register it with the Views module.
(I failed at adjusting the "fake node" trick in the theme preprocessor to the new entity system. Best I could do was to just load it, possibly hitting performance.)