visualbuilder / email-templates

Email Template Editor for Filament
GNU General Public License v3.0
74 stars 19 forks source link

Creating conditionals in the editor #26

Closed Feddman closed 2 weeks ago

Feddman commented 3 weeks ago

Is there possibility to create a conditional in the editor like:

##if company.name ##

  ## company.name ##
  ## company.address ##
  ## and so on ##

##endif  
cannycookie commented 2 weeks ago

Just use a blade view and return that as a rendered attribute for the template: see here:- https://github.com/visualbuilder/email-templates/issues/25