Jump to content

Recommended Posts

Posted

We have a lot of forums that our users subscribe to for email updates and as of now, the only way to tell what forum the message came from is a small grey line that says "Posted in xxx" within the body of the message.

I'd like to see the ability to either choose how you want the subject to appear (Board name, forum name, topic, poster, etc), or to fully customize the subject line.  Right now I can edit the value for the mailsub__core_notification_new_content setting to show the name of the board in the subject by using the following:

[{setting="board_name"}] {$content->mapped("title")|raw}

But apparently there isn't an equal variable that I can pass to show the name of the forum.  This is my goal for my emails:

  • [Forum Name 1] Here is my topic
  • [Forum Name 2] Here is another topic
Posted

I would go with {$content->containerWrapper()?->_title} since not all content has a container, so calling container() could throw an Exception while containerWrapper() will return NULL.

 

I love the new PHP features, Nullsafe operator FTW❤️

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...