Search

Page tree
Skip to end of metadata
Go to start of metadata

Templates list:

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

Renders newsletter box. 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

Related routes:

siso_newsletter_subscribe:
    path:     /newsletter/subscribe
    defaults:
        _controller: SisoNewsletterBundle:Newsletter:subscribeNewsletter
        breadcrumb_path: siso_newsletter_subscribe
        breadcrumb_names: subscribe newsletter

siso_newsletter_unsubscribe:
    path:     /newsletter/unsubscribe
    defaults:
        _controller: SisoNewsletterBundle:Newsletter:unsubscribeNewsletter
        breadcrumb_path: siso_newsletter_unsubscribe
        breadcrumb_names: common.unsubscribe_newsletter

siso_newsletter_update:
    path:     /newsletter/update
    defaults:
        _controller: SisoNewsletterBundle:Newsletter:updateNewsletter
        breadcrumb_path: silversolutionsCustomerDetail/siso_newsletter_update
        breadcrumb_names: My profile/common.update_newsletter

siso_newsletter_doi:
    path:     /newsletter/doi
    defaults:
        _controller: SisoNewsletterBundle:Newsletter:doubleOptInNewsletter
        breadcrumb_path: silversolutionsCustomerDetail/siso_newsletter_subscribe
        breadcrumb_names: My profile/subscribe newsletter

Newsletter Box

The newsletter box can be rendered as an esi block and can be rendered in the Page Builder as well. The box is cached per user.

Therefore the block SesTextAndBanner has been extended, so objects from type silver.module can be added to this block as well.

All paramaters from the block template are forwarded and accesible here, example:

Silversolutions/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


{{ render(
    controller(
        'SisoNewsletterBundle:Newsletter:renderNewsletterBox',
        {'params' : { 'display_hr' : true }}
    )
) }}
  • No labels