Closed arashsoheili closed 2 years ago
I figured this out. I can make a PR of this is useful to others.
Hey @arashsoheili have you solved your issue? If so could you please share the solution here to make it easier for others? Probably this is something I should include into the doc? Otherwise let's close this issue...
@corvis I will make a PR today.
Miss call the
use Mautic\CoreBundle\Factory\ModelFactory;
UPDATED: in class EmailSubscriber
to work partially
Yet i get none tags from that.
{% TWIG_BLOCK %}
Oi {{lead.firstname}}
{% set tags = lead.tags | json_decode %}
Suas Tags:
<ul>
{% for item in tags %}
Item: {{item}}
{{ include('dc:270410h') }}
{% endfor %}
</ul>
{% END_TWIG_BLOCK %}
Changed
{% set tags = lead.tags | json_decode %}
To
{% set tags = lead.tags %}
In Debuger log it says expect string type but it array.
Now all it WORKS!
Looking for this to work, any chance it could be merged and added to the docs @corvis?
This has been added to the 1.2-beta branch.
Anyway to access the lead tags. It doesn't seem to be on the lead property. How can this be added. I can make a PR if you guide me a bit.