Data at Your Fingertips: Explore Our New Reporting and Statistical Capabilities By Ryan Ashbrook Tuesday at 01:29 PM
Todd R Posted January 5 Share Posted January 5 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 Link to comment Share on other sites More sharing options...
Nathan Explosion Posted January 6 Share Posted January 6 {$content->container()->_title} Link to comment Share on other sites More sharing options...
Daniel F Posted January 6 Share Posted January 6 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❤️ Nathan Explosion 1 Link to comment Share on other sites More sharing options...
Todd R Posted January 11 Author Share Posted January 11 Thank you so much @Daniel F - this worked perfectly!! Link to comment Share on other sites More sharing options...
Recommended Posts