Files and shares
Rules can match file names, share titles, folder paths, and public-share context. Matching items get a visual badge without changing the stored file.
NextInject adds compact badges to matching files and can show safe, rule-based header actions inside public shares. It is admin-only, system-wide, and built for NC31 through NC33.
NextInject intentionally avoids arbitrary HTML injection. Admins define typed JSON rules, choose badge presets, and enable public-share actions only where they are needed.
Rules can match file names, share titles, folder paths, and public-share context. Matching items get a visual badge without changing the stored file.
Offer and invoice flows can expose a controlled header button, such as Confirm offer, with placeholders for file and context labels.
The configuration lives under Settings -> Administration -> NextInject, with import, export, defaults, and typed validation.
Configuration remains portable and reviewable. The frontend receives only the runtime-safe subset required for matching and rendering.
{
"id": "angebot",
"label": "Offer",
"matcher": "_AN",
"surfaces": ["files", "public"],
"badgePreset": "angebot",
"headerAction": {
"enabled": true,
"label": "Confirm offer",
"url": "https://example.com/confirm?file={fileName}",
"variant": "primary"
},
"enabled": true,
"priority": 300
}
cta_AN, AN_open, and gimmick_active are still supported.The repository includes built assets for the app runtime and admin UI, so production installs do not need a server-side Node build.
cd /var/www/nextcloud/apps
git clone https://github.com/Yxanu/nextinject.git nextinject
chown -R www-data:www-data nextinject
sudo -u www-data php occ app:enable nextinject
sudo -u www-data php occ upgrade
Open Settings -> Administration -> NextInject, review the default rules, enable the public-share action where needed, then verify a matching file such as _AN.pdf.