Page 1 of 1

Dynamic content in template by user

Posted: Tue Jul 26, 2022 10:01 am
by digipublica
Hi,

need something like this in a template:

if (customer_id=1)
{
this html
}
else
{
other html
}

how can i do this?

thx.

Re: Dynamic content in template by user

Posted: Tue Jul 26, 2022 1:45 pm
by maschoff
You can use #if #else #end in EMM webforms (see user manual for more details). If you need it for mail content, you have to wait for OpenEMM 22.10 or 23.04.

Re: Dynamic content in template by user

Posted: Wed Jul 27, 2022 9:34 am
by digipublica
We want to have an archive on the website.
The problem ist that we have an "unsubscibe from the newsletter"-Link in the newsletter, which should not be shown on the website (iframe).
Is there another way to solve the problem?

The newsletter at the archive on the website will be taken from the openEMM-Archive from a recipient as described in the manual. Is there a way without the User?

When will OpenEMM 22.10 or 23.04 be released?

Re: Dynamic content in template by user

Posted: Wed Jul 27, 2022 11:29 am
by maschoff
You could try to hide the unsubscribe link with a CSS class (which will be not interpreted in emails)

ETAs for future OpenEMM versions will be communicated in the OpenEMM wiki, but the version numbers should give you an indication.

Re: Dynamic content in template by user

Posted: Fri Jul 29, 2022 8:49 am
by digipublica
thx for the hint

added to the template
<style>
.archivhidden24{
display:none;
}

</style>

<div id="archiv" class='archivhidden[agnDB column="customer_id"/]'>

works fine
[agnDB column="customer_id"/]
was what i searched for.