FriendsOfREDAXO / yform_quick_edit

YForm QuickEdit
MIT License
17 stars 0 forks source link

Nicht nur auf YForm-Pages beschränken #11

Open alxndr-w opened 1 year ago

alxndr-w commented 1 year ago

Feature description / Feature Beschreibung Gibt es eine Möglichkeit, yform_quick_edit auch auf Seiten zu aktivieren, die nicht in YForm verankert sind? Bspw meine ganzen YForm basierten Addons.

eaCe commented 1 year ago

Momentan wird es nur auf der einen Seite geladen. Man könnte zusätzlich einen EP hinzufügen, umeigene Pfade zu übergeben

alxndr-w commented 10 months ago

Dann muss ich mir das mal für alle meine Addons vormerken.

alxndr-w commented 10 months ago

Ich habe das ausprobiert, es scheint nicht zu funktionieren.

eaCe commented 10 months ago

Hm, ich werde das mal mit einem deiner Addons testen. Danke für den Hinweis

eaCe commented 10 months ago

@alxndr-w bei einem Test mit deinem Neues Addon scheint es zu funktionieren:

grafik

Hier mal der Code dazu:

rex_extension::register('YQE_IS_ALLOWED', function (rex_extension_point $ep) {
    $condition = 'index.php?page=neues/entry' === rex_url::currentBackendPage() ||
        'index.php?page=yform/manager/data_edit' === rex_url::currentBackendPage();
    $ep->setSubject($condition);
});
alxndr-w commented 9 months ago

Seltsam, es klappt einfach nicht. An welcher Stelle hast du den Code hinzugefügt? Page, boot.php von neues oder wo anders?

eaCe commented 9 months ago

boot vom Project Addon. Pack es zusätzlich vielleicht mal in den Packages loaded EP

alxndr-w commented 4 months ago

Ich habe es nochmal versucht, es klappt nicht. Auch nicht, wenn's im Project-Addon liegt oder / und umschlossen ist vom Packages Loaded EP