v2.1.8Nextcloud 31–35
Typed file markers for Nextcloud.
NextInject is a small system-wide Nextcloud app for Nextcloud 31–35. It marks files and public shares based on configured filename patterns and can add matching public-share header actions.
Small surface, clear behavior.
NextInject intentionally avoids arbitrary HTML injection. Admins define typed JSON rules, choose badge presets, and enable public-share actions only where they are needed.
- substring-based rules for file names, share titles, and public-share context
- badge presets for
_AN,_RE,_LI, and additional markers - optional public-share header actions, for example
Confirm offer - JSON import and export for rule configuration
- dedicated admin page at
Settings -> Administration -> NextInject - legacy migration from
nextinject.admin_targets,elementinjector.admin_targets, and old user settings - theme compatibility for existing public-share styles such as
cta_AN,AN_open, andgimmick_active
Rules are plain JSON.
Configuration remains portable and reviewable. The frontend receives only the runtime-safe subset required for matching and rendering.
{
"id": "angebot-an",
"enabled": true,
"label": "Offer",
"matcher": {
"type": "substring",
"value": "_AN",
"caseSensitive": true
},
"surfaces": [
"files",
"public"
],
"badgePreset": "angebot",
"headerAction": {
"enabled": true,
"label": "Confirm offer",
"url": "https://example.com/confirm?file={fileName}",
"variant": "primary"
},
"description": "Offer documents and related public shares",
"priority": 300
}
- Built-in presets Offer, invoice, delivery, order, protocol, and notice markers.
- Safe migration Legacy `nextinject` and `elementinjector` settings are mapped to typed rules.
- Theme adapters Explicit filename and badge-host hooks support custom rows, repeated files, and viewer context events. See the integration contract.
Install it like a normal Nextcloud app.
Get the complete TAR.GZ or ZIP installation package and SHA-256 checksums from the latest GitHub release. The app includes its built admin UI and runtime; no server-side Node build is needed.
Requirements
- Nextcloud 31 through 35
- Admin access to the target instance
- Write access to the Nextcloud apps directory
Quick install
# Extract nextinject/ into apps/ or your custom-apps directory.
# Run these commands from your Nextcloud installation directory.
cd /var/www/nextcloud
sudo -u www-data php occ app:enable nextinject
sudo -u www-data php occ upgrade
sudo -u www-data php occ config:app:get nextinject installed_version
Configure
Open Settings -> Administration -> NextInject, review the default rules, enable the public-share action where needed, then verify a matching file such as _AN.pdf.