Dynamic content in template by user

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

digipublica
Posts: 4
Joined: Tue Apr 19, 2022 10:24 am

Dynamic content in template by user

Post 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.
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Dynamic content in template by user

Post 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.
OpenEMM Maintainer
digipublica
Posts: 4
Joined: Tue Apr 19, 2022 10:24 am

Re: Dynamic content in template by user

Post 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?
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Dynamic content in template by user

Post 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.
OpenEMM Maintainer
digipublica
Posts: 4
Joined: Tue Apr 19, 2022 10:24 am

Re: Dynamic content in template by user

Post 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.
Post Reply