detail.php: make terms configurable