Hi,
need something like this in a template:
if (customer_id=1)
{
this html
}
else
{
other html
}
how can i do this?
thx.
Dynamic content in template by user
Moderator: moderator
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: Dynamic content in template by user
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
-
- Posts: 4
- Joined: Tue Apr 19, 2022 10:24 am
Re: Dynamic content in template by user
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?
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?
-
- Site Admin
- Posts: 2628
- Joined: Thu Aug 03, 2006 10:20 am
- Location: Munich, Germany
- Contact:
Re: Dynamic content in template by user
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.
ETAs for future OpenEMM versions will be communicated in the OpenEMM wiki, but the version numbers should give you an indication.
OpenEMM Maintainer
-
- Posts: 4
- Joined: Tue Apr 19, 2022 10:24 am
Re: Dynamic content in template by user
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.
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.