Search

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PathDescription
Silversolutions/Bundle/EshopBundle/Resources/views/Newsletter/newsletter_box.html.twig

Renders newsletter box. By default displayed in the footer, but can be displayed using eZ flow, as well see Newsletter Box.

Silversolutions/Bundle/EshopBundle/Resources/views/Newsletter/newsletter_message.html.twig
Renders a simple page with success/error messages after user subscribed/unsubscribed to newsletter
Silversolutions/Bundle/EshopBundle/Resources/views/Emails/ConfirmationMail_SubscribeNewsletter.html.twig
HTML confirmation email that is send to the user in the DOI process
Silversolutions/Bundle/EshopBundle/Resources/views/Emails/ConfirmationMail_SubscribeNewsletter.txt.twig
Text confirmation email that is send to the user in the DOI process

...

Anchor
newsletter_box
newsletter_box
Newsletter Box

The newsletter box is can be rendered in the footer as esi block , but and can be rendered in the eZ flow block as well. The box is cached per user.

...

Code Block
titleSilversolutions/Bundle/EshopBundle/Resources/views/block/text_and_banner_50.html.twig
{# image_alias and view will be accessible in the newsletter_box.html.twig #}
{# therefore is is possible to display different width depending on the view #}

{{ render(
  controller(
    'ez_content:viewLocation',
    {
      'locationId': item.locationId,
      'viewType': 'block_item',
      'params' : {'image_alias' : image_alias, 'view' : 50}
    })
  ) 
}} 

View 50

View 100

How to render a newsletter form

...

You can use a render statement to render the newlsetter form in a template

...