Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platzhaler unsubscribe wird nicht ersetzt #38

Open
chrisrex opened this issue Jun 3, 2021 · 3 comments
Open

Platzhaler unsubscribe wird nicht ersetzt #38

chrisrex opened this issue Jun 3, 2021 · 3 comments

Comments

@chrisrex
Copy link

chrisrex commented Jun 3, 2021

Hallo,
ich nutze REX_YNEWSLETTER_UNSUBSCRIBE[groups="" redirectToID=5 output=html] im Newsletterartikel.
In der versendeten e-Mail kommt nur der Platzhalter {{ ynewsletter.unsubscribe }}
SPROG will nicht ersetzen.

Auch der eigene Outputfilter zeigt keine Wirkung:

rex_extension::register('OUTPUT_FILTER', "meineUpdateFunction", rex_extension::LATE);
function meineUpdateFunction($ep) {
    # dump($ep); // auskommentieren, um alle Informationen des EP-Objekts zu erhalten
    $subject = str_replace("{{ ynewsletter.unsubscribe }}","Newsletter abmelden",$ep->getSubject());
    return $subject;
}
@ynamite
Copy link
Contributor

ynamite commented Oct 21, 2021

Same, funktioniert bei mir auch nicht oder ich lese die Doku falsch.
Irgendwelche Infos dazu @dergel?

Sonstige REX_VARs wie REX_MEDIA[1] werden ersetzt.

@dergel
Copy link
Member

dergel commented Oct 25, 2021

ist REX_YNEWSLETTER_UNSUBSCRIBE im template oder modul ?

@ynamite
Copy link
Contributor

ynamite commented Oct 25, 2021

@dergel mein Fehler (wurde schon im Slack-Channel beantwortet), hatte nicht realisiert, dass die Platzhalter erst beim Versand ersetzt werden. Klappt nun bei mir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants