open_workshop/open_workshop_dokuwiki/hooks.py
matthias.lotz 253d289633 feat(dokuwiki): Flexible overview table with configurable columns
- Made overview table columns fully configurable via system parameters
- Added wiki_page_id placeholder for internal DokuWiki links
- Removed DokuWiki template dependency for overview table
- Added _register_hook to initialize parameters on module load/update
- Updated README with new configuration approach
- System parameters: overview_page_id, overview_title, overview_columns, overview_column_data
- Default columns: Name (with link), Status, Security Category, Area, Location, Image
2025-12-20 12:49:58 +01:00

16 lines
376 B
Python

# -*- coding: utf-8 -*-
def pre_init_hook(env):
"""
Hook der VOR der Modul-Installation/Update ausgeführt wird.
"""
pass
def post_init_hook(env):
"""
Hook der nach der Modul-Installation/Update ausgeführt wird.
Initialisiert die DokuWiki-Parameter falls sie nicht existieren.
"""
env['res.config.settings']._init_dokuwiki_parameters()